1
0
mirror of https://github.com/HybridDog/connected_chests.git synced 2025-06-28 22:36:17 +02:00

31 Commits

Author SHA1 Message Date
044a91fcd5 Do not crash with tenplus1's hopper mod
There are multiple hopper mods and not all of them support the set_extra_container_info function,
so the mod crashes now if it is used together with an incompatible hopper mod.

To prevent the crash, execute the code for hopper compatibility if hopper and hopper.set_extra_container_info exist and not if a mod named hopper is installed.
2024-08-25 09:48:03 +02:00
71a8a57ff1 Fix luacheck linting
luacheck currently fails because of missing globals and exceeding line length.

To fix this, I add vector and hopper to the globals, add more line breaks in the code and remove outdated comments.
2024-08-17 11:05:08 +02:00
12b8325896 Add hopper mod support 2024-08-17 10:22:35 +02:00
0e4ef74b52 Add russian translation 2024-05-22 20:13:25 +02:00
8a46cd1054 Tweak Esperanto translation 2024-05-20 11:04:50 +02:00
afb999dbbd Add Esperanto translation 2023-12-16 12:28:11 +01:00
5a5f472d61 Add translation support
Edit by HybridDog:
The description of the chest should be specfied in the second argument (the table) passed to `connected_chests.register_chest`.
2023-12-16 12:25:14 +01:00
01da3bf0b1 Change License 2023-07-15 12:45:37 +02:00
e575714eba Old code removal
Logging the loading time is not needed since Minetest writes it to the info log now.
2023-07-15 12:45:20 +02:00
c12542270b Add .luacheckrc for code linting 2023-07-15 12:44:00 +02:00
35da02ed5f Sound changes: Use a lower pitch for the big chest
I haven't changed the pitch for default_chest_locked since the sound seems to emanate from the lock and is thus unrelated to the chest size.
Additional, hardly-noticeable changes: Enable ephemeral as recommended and reduce the default_chest_close gain.
2023-07-15 12:13:55 +02:00
02f3589c7a Replace the depends.txt with a mod.conf 2021-03-11 13:58:45 +01:00
f34f3b7724 Localise "node" 2020-10-18 00:00:25 +02:00
baefd45248 Update README 2019-03-08 17:46:58 +01:00
dd0c645899 Use LBM instead of ABM to fix rare half chests 2019-03-08 17:41:20 +01:00
04c7f21624 Fix README 2019-03-08 17:20:44 +01:00
6a9f308529 Do not open half of the chest when the other side is obstructed 2018-11-03 20:14:30 +01:00
cc90805986 Add Alias for old version connected_chests (#7) 2018-09-02 10:06:43 +02:00
c3695e69ec Add default's open chest model 2018-03-13 17:36:53 +01:00
4a521fd913 Fix simple mistake 2018-02-26 20:31:41 +01:00
631d4d83f8 Chest opening: Fix chest not closing itself 2018-02-26 15:47:15 +01:00
476338593b 0.4.16 compat: Add the chest_lid_obstructed function if default doesn't expose it 2018-02-26 15:43:51 +01:00
e9aa55d4e6 Add the chest lid to connected default chests
The back texture doesn't fit yet
As side effect, fix broken listring functionality
2018-02-17 20:50:50 +01:00
836de75a20 Add comments and fix a bit code style 2018-02-12 10:44:29 +01:00
244e7fbf3a Update for new minetest_game 2017-12-04 14:15:34 +01:00
24c17ac7d6 Do not override tube fields in the original chest nodedef 2017-08-30 13:06:30 +02:00
DS
e7718a0aa5 disallow rotating and connect tube at front of both sides (#3) 2017-08-03 16:12:51 +02:00
187cac3c45 Use new setting functions 2017-06-18 12:39:15 +02:00
22d824e24f Update README.md 2017-02-22 15:57:07 +01:00
363a206a34 allow an on_rightclick
M  init.lua
2017-01-28 20:17:43 +01:00
a0df5845cd fix adding api
M  init.lua
D  textures/connected_chests_side.png
D  textures/connected_chests_top.png
2017-01-28 20:05:35 +01:00
15 changed files with 739 additions and 362 deletions

2
.luacheckrc Normal file
View File

@ -0,0 +1,2 @@
read_globals = {"minetest", "table", "vector", "default", "hopper", "pipeworks"}
globals = {"connected_chests"}

View File

@ -1 +1,2 @@
WTFPL
connected_chest_open from default
Content which is not copied from minetest_game is licensed under MIT.

View File

@ -1,12 +1,12 @@
[Mod] connected chests [connected_chests]
[Mod] Connected Chests [connected_chests]
This mod allows making bigger default chests.
Just hold shift and place a chest onto another one's side.
This mod allows making bigger default chests.<br/>
Hold shift and place a chest onto another one's side to get a big chest.<br/>
This is not the first mod which adds big chests.
**Depends:** see [depends.txt](https://raw.githubusercontent.com/HybridDog/connected_chests/master/depends.txt)
**License:** see [LICENSE.txt](https://raw.githubusercontent.com/HybridDog/connected_chests/master/LICENSE.txt)
**Download:** [zip](https://github.com/HybridDog/connected_chests/archive/master.zip), [tar.gz](https://github.com/HybridDog/connected_chests/tarball/master)
**Depends:** see [depends.txt](https://raw.githubusercontent.com/HybridDog/connected_chests/master/depends.txt)<br/>
**License:** see [LICENSE.txt](https://raw.githubusercontent.com/HybridDog/connected_chests/master/LICENSE.txt)<br/>
**Download:** [zip](https://github.com/HybridDog/connected_chests/archive/master.zip), [tar.gz](https://github.com/HybridDog/connected_chests/archive/master.tar.gz)
![I'm a screenshot!](http://wiki.minetest.net/images/d/d1/Connected_chest.png)
@ -15,5 +15,6 @@ If you got ideas or found bugs, please tell them to me.
[How to install a mod?](http://wiki.minetest.net/Installing_Mods)
TODO:
— disallow rotating the chest with a screwdriver
TODO:
* Fix open big chest back side texture: The current .obj mesh model uses a side
texture for the back side, so the model needs change.

View File

@ -1,3 +0,0 @@
default
pipeworks?
technic?

985
init.lua

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,3 @@
# textdomain: connected_chests
Big Chest=Kestego
Big Locked Chest=Ŝlosita kestego

View File

@ -0,0 +1,3 @@
# textdomain: connected_chests
Big Chest=Большой сундук
Big Locked Chest=Большой запертый сундук

3
locale/template.txt Normal file
View File

@ -0,0 +1,3 @@
# textdomain: connected_chests
Big Chest=
Big Locked Chest=

3
mod.conf Normal file
View File

@ -0,0 +1,3 @@
name = connected_chests
depends = default
optional_depends = pipeworks,technic,hopper

View File

@ -0,0 +1,79 @@
# Blender v2.78 (sub 0) OBJ File: 'chest-open.blend'
# www.blender.org
o Top_Cube.002_None_Top_Cube.002_None_bottom
v -0.500000 0.408471 0.720970
v -0.500000 1.115578 0.013863
v -0.500000 0.894607 -0.207108
v -0.500000 0.187501 0.499999
v 0.500000 1.115578 0.013863
v 0.500000 0.408471 0.720970
v 0.500000 0.187501 0.499999
v 0.500000 0.894607 -0.207108
v -0.500000 0.187500 -0.500000
v -0.500000 -0.500000 -0.500000
v -0.500000 -0.500000 0.500000
v 0.500000 0.187500 -0.500000
v 0.500000 -0.500000 0.500000
v 0.500000 -0.500000 -0.500000
vt 0.0000 1.0000
vt 0.0000 0.0000
vt 1.0000 0.0000
vt 1.0000 1.0000
vt 1.0000 0.0000
vt 1.0000 1.0000
vt 0.0000 1.0000
vt 0.0000 0.0000
vt 0.0000 1.0000
vt 1.0000 1.0000
vt 1.0000 0.6875
vt 0.0000 0.6875
vt 1.0000 1.0000
vt 0.0000 0.6875
vt 1.0000 0.6875
vt 1.0000 0.6875
vt 1.0000 0.0000
vt 0.0000 0.0000
vt 1.0000 0.6875
vt 1.0000 0.0000
vt 1.0000 1.0000
vt 1.0000 0.6875
vt 1.0000 0.0000
vt 0.0000 1.0000
vt 0.0000 0.6875
vt 0.0000 0.6875
vt 0.0000 0.0000
vt 1.0000 0.5000
vt 1.0000 1.0000
vt 0.0000 1.0000
vt 0.0000 0.5000
vt 0.0000 0.0000
vt 1.0000 0.0000
vn 0.0000 0.7071 0.7071
vn -0.0000 -1.0000 -0.0000
vn -1.0000 0.0000 0.0000
vn 1.0000 0.0000 -0.0000
vn 0.0000 -0.7071 0.7071
vn 0.0000 0.0000 1.0000
vn -0.0000 0.7071 -0.7071
vn -0.0000 0.0000 -1.0000
vn -0.0000 -0.7071 -0.7071
vn -0.0000 1.0000 -0.0000
g Top_Cube.002_None_Top_Cube.002_None_bottom_Top_Cube.002_None_Top_Cube.002_None_bottom_Top
s off
f 6/1/1 5/2/1 2/3/1 1/4/1
g Top_Cube.002_None_Top_Cube.002_None_bottom_Top_Cube.002_None_Top_Cube.002_None_bottom_Bottom
f 11/5/2 10/6/2 14/7/2 13/8/2
g Top_Cube.002_None_Top_Cube.002_None_bottom_Top_Cube.002_None_Top_Cube.002_None_bottom_Right-Left
f 1/9/3 2/10/3 3/11/3 4/12/3
f 5/13/4 6/1/4 7/14/4 8/15/4
f 4/12/3 9/16/3 10/17/3 11/18/3
f 12/19/4 7/14/4 13/8/4 14/20/4
g Top_Cube.002_None_Top_Cube.002_None_bottom_Top_Cube.002_None_Top_Cube.002_None_bottom_Back
f 6/21/5 1/9/5 4/12/5 7/22/5
f 7/22/6 4/12/6 11/18/6 13/23/6
g Top_Cube.002_None_Top_Cube.002_None_bottom_Top_Cube.002_None_Top_Cube.002_None_bottom_Front
f 2/10/7 5/24/7 8/25/7 3/11/7
f 9/16/8 12/26/8 14/27/8 10/17/8
g Top_Cube.002_None_Top_Cube.002_None_bottom_Top_Cube.002_None_Top_Cube.002_None_bottom_Inside
f 4/28/9 3/29/9 8/30/9 7/31/9
f 7/31/10 12/32/10 9/33/10 4/28/10

Binary file not shown.

Before

Width:  |  Height:  |  Size: 88 B

After

Width:  |  Height:  |  Size: 88 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 105 B

After

Width:  |  Height:  |  Size: 105 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 B