Commit graph

34 commits

Author SHA1 Message Date
William Goodspeed
c03f9abd18 Fix the placement check of ladder
The old code takes the first return val of `minetest.item_place_node'
which is `itemstack'. Therefore, the variable `success' in the old code
is always true. The new code takes the second val which will be nil if
an invalid node placement occured.

This check is necessary since the ladder may be placed in the front of
pointed block while there is a node with hole (slabs, fences etc.) at
the same place resulting an invalid placement and sound played when
it shouldn't be played.
2024-08-17 18:38:01 +02:00
William Goodspeed
9657c9d8bb Make ladder placable on any solid block 2024-08-17 18:38:01 +02:00
Dehydrate6684
e5a260b563
Added vines and skulk vines to ladder group 2023-11-05 14:10:58 +08:00
Dehydrate6684
9b2b8ee56e
Removed direction checks 2023-11-05 14:06:53 +08:00
Dehydrate6684
b320d008ca
Unhardcoded nil 2023-10-18 08:04:54 +08:00
Dehydrate6684
23468cc2dd
Used vector.offset instead of add/subtract 2023-10-10 09:39:16 +08:00
Dehydrate6684
0c48a46f7c
Updated code based on reviews 2023-10-09 13:55:08 +08:00
Dehydrate6684
e6653b78ee
Added directional checks 2023-09-17 17:04:24 +08:00
Dehydrate6684
a960bf2e8e
Update trapdoor climbable behavior 2023-09-16 13:16:49 +08:00
FossFanatic
319beb91ce Improve vines code 2023-02-14 18:11:43 +00:00
FossFanatic
3a24903a01 Add nil check 2023-02-13 15:46:45 +00:00
FossFanatic
d1ceacf7ba Improve some vines code 2023-02-12 08:22:07 +00:00
FossFanatic
198375a18e Change stuff in mcl_core
Simply put, this commit changes some code so that leaves don't use `param2` to see if they rot or not, and will now use the biome colours.

This commit also makes it so vines do the same (use biome colours).
2023-02-08 16:11:38 +00:00
SmokeyDope
08df1fe02f Update overworld vine breaking logic with vector.offset 2023-02-03 00:50:25 +00:00
kabou
de16eb3c5a Add compostability to node definition group.
* mcl_cake/init.lua (cake);
* mcl_core/craftitems.lua (apple);
* mcl_core/nodes_base.lua (dirt with grass);
* mcl_core/nodes_cactuscane.lua (cactus, sugarcane);
* mcl_core/nodes_climb.lua (vines);
* mcl_core/nodes_trees.lua (leaves, saplings);
* mcl_dye/init.lua (cocoa beans);
* mcl_farming/beetroot.lua (beetroot, & seeds);
* mcl_farming/carrots.lua (carrot);
* mcl_farming/melon.lua (melon, & slice, & seeds);
* mcl_farming/potatoes.lua (potato, baked potato);
* mcl_farming/pumpkin.lua (pumpkin, carved &, & seeds, & pie);
* mcl_farming/wheat.lua (wheat, cookie, bread, hay block);
* mcl_flowers/init.lua (flowers, ferns, grass, & tall variants);
* mcl_mushrooms/small.lua (red and brown mushrooms);
* mcl_mushrooms/huge.lua (red and brown huge mushrooms);
* mcl_nether/init.lua (nether wart block);
* mcl_nether/nether_wart.lua (nether wart);
* mcl_ocean/kelp.lua (kelp, dried &, & block);
* mcl_ocean/sea_pickle.lua (sea pickle);
* mcl_ocean/seagrass.lua (seagrass).
2022-04-02 03:32:56 +02:00
AFCMS
cd33d406b2 fix many codestyle issues (functions, strings, modpaths) 2021-05-29 16:12:33 +02:00
NO11
5b43303873 [mcl_core] fix function codestyle in nodes_climb.lua 2021-05-26 17:54:58 +00:00
AFCMS
f9a86947e5 [mcl_core] fix warnings 2021-05-23 00:09:07 +02:00
Wuzzy
3087621b11 Merge branch 'mcl_explosions' 2020-04-30 20:55:10 +02:00
Wuzzy
e268370452 Add fire metadata to many nodes (unused for now) 2020-04-18 23:24:42 +02:00
Elias Åström
063595ac3c Change blast resistance of nodes in mcl_core
The new blast resistance values are copied from the Minecraft wiki.

https://minecraft.gamepedia.com/Explosion
2020-04-17 20:47:12 +02:00
Wuzzy
c5e4ec5e27 Use ephemeral sounds 2020-04-07 00:55:45 +02:00
Wuzzy
bbcab7275e Make ladders rotatable 2019-12-09 17:51:35 +01:00
Wuzzy
a15c58a2dc Fix typos in mcl_core 2019-03-09 03:58:41 +01:00
Wuzzy
e4fbbeddb2 New translation system, part 6: Items, part 2 2019-03-07 23:40:57 +01:00
Wuzzy
6e8be2a2c3 Fix vine not dropping all vines when dug w/ shears 2019-02-22 06:08:48 +01:00
Wuzzy
c9812c5acf Minor vines help change 2018-01-23 06:42:46 +01:00
Wuzzy
83f7655f31 Don't rotate ladder and vine 2017-12-05 14:17:07 +01:00
Wuzzy
2a8fcd119b Fix vines destruction not destoying hanging vines 2017-11-02 23:42:20 +01:00
Wuzzy
1e2343d649 Make floating vines decay
Also destroy them immediately with leafdecay and when try try to grow but notice they have been floating the whole time.
2017-11-02 23:21:04 +01:00
Wuzzy
e9c4259c61 Clarify vine creeping condition 2017-08-12 15:35:29 +02:00
Wuzzy
a64fd0fb66 Kill depending vine below after destroying vine 2017-08-12 04:11:07 +02:00
Wuzzy
54fb702c8f Shears selfdrop dead bush, tall grass, fern, vine, leaves 2017-08-03 02:27:55 +02:00
Wuzzy
7d2ffe1c92 More mcl_core refactoring 2017-07-07 16:52:28 +02:00