Add recipes to World Tokens, add Flint and Flint and Steel, remove
waypoints
This commit is contained in:
@@ -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")
|
||||
|
@@ -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
|
||||
})
|
||||
|
Reference in New Issue
Block a user