Mineclonia/mods/ITEMS/mcl_tools
Nils Dagsson Moskopp 7d2ef66175
Trigger node callbacks when pumpkin is sheared
The code for shearing a pumpkin used minetest.swap_node() to replace a
faceless pumpkin with a carved pumpkin. This did not trigger the node
callbacks of the carved pumpkin, which meant that shearing a pumpkin
would not check for the snow golem or iron golem spawn conditions.

This patch replaces minetest.swap_node() in the code for shearing a
pumpkin with minetest.set_node(), which does trigger the callbacks;
therefore snow and iron golems can now spawn as a pumpkin is carved.
2022-04-14 18:52:31 +02:00
..
locale Remove enchantment table 2020-10-23 23:00:54 +02:00
sounds Add shears cut sound 2020-12-06 01:21:02 +01:00
textures Add 3d wielded nodes (not functional until Right_Hand bone is added) 2021-02-24 12:58:30 +01:00
README.md Add shears cut sound 2020-12-06 01:21:02 +01:00
aliases.lua Add tool aliases 2017-02-26 18:57:57 +01:00
crafting.lua Fix tool-related crafting recipes 2017-02-27 20:25:56 +01:00
init.lua Trigger node callbacks when pumpkin is sheared 2022-04-14 18:52:31 +02:00
mod.conf Move data from deprecated files to mod.conf 2021-05-16 13:44:04 +02:00

README.md

This mod adds tools for MineClone 2.

Credits

Other files: See main MineClone 2 README.