158 Commits

Author SHA1 Message Date
Jude Melton-Houghton
13e0337da7 Randomize digiline IDs 2022-11-26 11:06:37 -05:00
Jude Melton-Houghton
ea77c99b7e Add attribution for Esperanto translation 2022-11-16 08:05:47 -05:00
jolesh
0a7bbca141
Add Esperanto translation (#9) 2022-11-16 07:59:14 -05:00
Jude Melton-Houghton
ce0ac07f32 Remove metadata warnings when placing containers
The warnings appeared when mesecons was enabled.
2022-05-24 12:32:54 -04:00
Jude Melton-Houghton
400f3f8459 Add support for Zero modpack 2022-05-21 13:28:01 -04:00
Jude Melton-Houghton
9fb4e537fc Add jumpdrive mod compatibility 2022-04-09 17:23:49 -04:00
Jude Melton-Houghton
e53e45dd21 Add protection options 2022-04-09 17:11:26 -04:00
Jude Melton-Houghton
b605978f37 Change Lua standard to 5.1 2022-02-19 14:37:53 -05:00
Jude Melton-Houghton
c67a230016 Rework digilines
This prevents potential infinite loops, and is better supported by digilines.
This change could theoretically break stuff, but probably not.
2022-02-06 19:33:33 -05:00
Jude Melton-Houghton
3cc305d545 Reorder object count check
It makes more sense this way.

:is_player() is used now to be consistent with the rest of the code.
2022-01-21 17:38:37 -05:00
Jude Melton-Houghton
f3d2d4adc5
Update Pipeworks link 2022-01-09 12:22:02 -05:00
Jude Melton-Houghton
2045b41b8e
Add note about inside loading 2021-12-14 20:10:15 -05:00
Jude Melton-Houghton
29d7fecd4b Mix more randomness into key codes
Continuously using math.random should tap into the unpredictable usages
of other mods. I limited the number at 2^15-1 to make sure the call
works with Lua 5.1 when INT_MAX is 2^15-1.
2021-11-21 12:10:55 -05:00
Jude Melton-Houghton
3640844c1f Choose key codes randomly
This seems like a better (and backwards-compatible) method, since it
allows moving key items between worlds with no extra risk of overlap.
2021-11-06 13:23:21 -04:00
Jude Melton-Houghton
001011bc85 Make containers not ground content
This is consistent with other nodes like chests and furnaces.
2021-10-08 17:41:26 -04:00
Jude Melton-Houghton
5be0856351 Parse numeric settings more safely
The same is not necessary for mod-stored values, which are not supposed
to be edited by users.
2021-10-01 18:03:06 -04:00
Jude Melton-Houghton
d072bcc8c3 Remove unnecessary Lua version compatibility
Only Lua 5.1 and LuaJIT need support. The builtin Lua code uses
plain old "unpack" anyway.
2021-09-29 17:13:39 -04:00
Jude Melton-Houghton
3368c608b2 Give credit in README for translations 2021-09-21 08:01:30 -04:00
David
b1d5364e7d
French translation (#8) 2021-09-20 21:49:46 -04:00
Jude Melton-Houghton
b59598c5f9 Correctly alphabetize translation files
I must have correct alphabetization!
2021-09-18 11:06:53 -04:00
David
a7b2c85e81
Spanish translations (#7) 2021-09-18 11:03:47 -04:00
Jude Melton-Houghton
69f00660f1 Optimize screenshot.png a tiny bit 2021-09-17 17:20:47 -04:00
David
6b697d3fea
some minor edits to the German (#6) 2021-09-14 21:37:54 -04:00
David
2f2f2a17e2
Add German translations (#5)
These may be revised later.
2021-09-12 20:14:26 -04:00
David
d74ab8a5c2
added Welsh translations (#4)
The translation is not used at the moment because Minetest doesn't pick up on all locales, but hopefully it will in the future.
2021-09-11 09:57:29 -04:00
Jude Melton-Houghton
e2e5ad866b Clear up some code attribution 2021-09-11 09:10:50 -04:00
Jude Melton-Houghton
a84e6c4cd0 Add translation template 2021-09-10 21:26:38 -04:00
Jude Melton-Houghton
bdbe6fe981 Update some seldom-seen node descriptions 2021-09-10 20:32:19 -04:00
Jude Melton-Houghton
ad2e392ca5 Improve blank key recipe
It makes sense for the active part of the key to be at the end.
2021-09-08 06:49:35 -04:00
Jude Melton-Houghton
78cf25ba37 Merge branch 'main' of github.com:TurkeyMcMac/area_containers 2021-09-07 17:11:08 -04:00
Jude Melton-Houghton
ea6f7b5fa4 Integrate more with MineClone's APIs
I wasn't sure if their licenses allowed me, but apparently they do:
https://git.minetest.land/MineClone2/MineClone2/issues/1849
2021-09-07 17:09:50 -04:00
Jude Melton-Houghton
ee41d7ec66
Add notice of immovability 2021-09-03 20:35:43 -04:00
Jude Melton-Houghton
be5267ccd8 Accomodate different clicker collisionboxes 2021-08-31 19:06:34 -04:00
Jude Melton-Houghton
3ed32940a6 Fix a style inconsistency 2021-08-31 19:05:44 -04:00
Jude Melton-Houghton
a74294bc08 Trivially reorganize some stuff 2021-08-30 19:34:20 -04:00
Jude Melton-Houghton
cdab7f0edc Make merge copies shallow
I accidentally removed the container definition copying before this, but
I decided to extend this behavior to other definitions (I tested and
there were no issues. There is no documented need to copy e.g. the
Pipeworks tube table.)
2021-08-30 18:53:57 -04:00
Jude Melton-Houghton
e51f4003d4 Update screenshot
Its size decreased a lot, too. This time I had tone mapping on.
2021-08-29 16:13:07 -04:00
Jude Melton-Houghton
fef32435ed Correct some emergence issues
Now the 26 blocks around an inside block are emerged before the inside
is constructed. This prevents set_lighting() calls from mapgen of the
neighboring chunks from overwriting port param1 values. This problem is
usually avoided before it comes up now because I shifter the x and z
base positions to chunk centers. Even before this commit, the problem
only occurred for certain Lua mapgens such as mapgen_rivers.

I also corrected the mapgen_limit assertions.
2021-08-29 14:17:37 -04:00
Jude Melton-Houghton
61252f1acf Move object counting into container.lua
It didn't seem very miscellaneous.
2021-08-26 09:54:03 -04:00
Jude Melton-Houghton
16878f645a Correct craft dependencies
The dependencies aren't actually necessary, but they make the code
safer.
2021-08-26 09:44:57 -04:00
Jude Melton-Houghton
b9199fb097 Consistently capitalize constants
This should make the code more understandable. Hopefully I didn't miss
anything. Non-function variables that do not change and are used outside
their immediate surroundings should generally be capitalized.
2021-08-26 08:38:51 -04:00
Jude Melton-Houghton
7ffe9da10b Light up more inside nodes
The port nodes are the only ones for which this is impossible.
2021-08-25 19:10:55 -04:00
Jude Melton-Houghton
f346b27872 Simplify pipeworks stuff 2021-08-24 19:47:04 -04:00
Jude Melton-Houghton
f6888ef506 Fix comma inconsistency 2021-08-24 19:24:50 -04:00
Jude Melton-Houghton
eeaa35407e Fix README links 2021-08-24 17:48:14 -04:00
Jude Melton-Houghton
c1ceb1ee69 Remove Mesecons bug notice
The new release has the fix, although some people probably use old
versions.
2021-08-24 17:46:18 -04:00
Jude Melton-Houghton
03ddbad783 Fix placement with pipeworks not enabled 2021-08-24 17:39:31 -04:00
Jude Melton-Houghton
952a1b2ab0 Clean up some code and improve some comments 2021-08-24 15:47:10 -04:00
Jude Melton-Houghton
6f43372823 Refactor again for better dependencies (WIP) 2021-08-23 18:49:20 -04:00
Jude Melton-Houghton
e15234d77c Do a really big refactor
This is WIP since I haven't done much testing yet.
2021-08-23 09:20:24 -04:00