0
0
Fork 0
MineClone2/mods/ITEMS/mcl_tools
Nils Dagsson Moskopp 67ae203772 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-22 18:07:37 +00:00
..
locale mcl_tools 2022-02-23 23:58:05 +01: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 many codestyle issues (functions, strings, modpaths) 2021-05-29 16:12:33 +02:00
init.lua Trigger node callbacks when pumpkin is sheared 2022-04-22 18:07:37 +00:00
mod.conf store tool wield scale in a global var 2021-04-05 10:16:56 +02:00

README.md

This mod adds tools for MineClone 2.

Credits

Other files: See main MineClone 2 README.