cool craftings

This commit is contained in:
Kacper Kostka
2023-02-04 16:17:05 +01:00
parent 4c21c72aba
commit 0b4456cf7e
8 changed files with 71 additions and 8 deletions

View File

@@ -79,6 +79,8 @@ minetest.register_craftitem("amogus_items:amogus", {
5, -- max_hear_distance
2.0 -- pitch
)
itemstack:take_item()
end
return itemstack
end
@@ -391,6 +393,8 @@ minetest.register_tool("amogus_items:dynamite", {
if pointed_thing.type == "node" then
local pos = pointed_thing.above
minetest.add_entity(pos, "amogus_items:dynamite_entity")
-- remove one item from the itemstack
itemstack:take_item()
end
return itemstack
end
@@ -418,7 +422,7 @@ minetest.register_entity("amogus_items:dynamite_entity", {
maxexptime = 3,
minsize = 1,
maxsize = 2,
texture = "plasma_effect.png",
texture = "capacitor.png",
})
self.object:remove()
end

Binary file not shown.

After

Width:  |  Height:  |  Size: 259 B