Add recipes to World Tokens, add Flint and Flint and Steel, remove

waypoints
This commit is contained in:
IamPyu
2024-10-05 14:09:36 -06:00
parent bd75bcf381
commit 66c400d215
15 changed files with 60 additions and 68 deletions

View File

@@ -32,3 +32,4 @@ PyuTest.make_item("pyutest_tools:glass_bottle", "Glass Bottle", {}, "pyutest-gla
PyuTest.make_item("pyutest_tools:brick", "Brick", {}, "pyutest-brick.png")
PyuTest.make_item("pyutest_tools:snowball", "Snowball", {}, "pyutest-snowball.png")
PyuTest.make_item("pyutest_tools:bone", "Bone", {}, "pyutest-bone.png")
PyuTest.make_item("pyutest_tools:flint", "Flint", {}, "pyutest-flint.png")

View File

@@ -145,3 +145,19 @@ PyuTest.make_item("pyutest_tools:bomb", "Bomb", {}, "pyutest-bomb.png", {
user:set_wielded_item(stack)
end
})
PyuTest.make_item("pyutest_tools:flint_and_steel", "Flint and Steel", {}, "pyutest-flint-and-steel.png", {
stack_max = 1,
on_place = function (itemstack, user, pointed_thing)
if pointed_thing.type == "node" then
minetest.set_node(pointed_thing.above, {name = "pyutest_blocks:fire"})
minetest.sound_play({
name = "alt_place",
gain = 1
}, {
pos = user:get_pos()
})
end
end
})