hand item added

This commit is contained in:
Kacper Kostka
2023-01-09 02:35:45 +01:00
parent c8420db675
commit 5df788b47e
10 changed files with 93 additions and 14 deletions

View File

@@ -34,7 +34,6 @@ minetest.register_craftitem("amogus_items:amogus", {
end
})
-- add sprite, coke, fanta, tomato, and water items and make it heal 1 hp
minetest.register_craftitem("amogus_items:sprite", {
description = "Sprite",
inventory_image = "sprite.png",
@@ -59,7 +58,7 @@ minetest.register_craftitem("amogus_items:water", {
inventory_image = "water.png",
on_use = minetest.item_eat(1),
})
-- add lightsaber_blue and lightsaber_red and lightsaber_green and let it destroy nodes and mobs
minetest.register_tool("amogus_items:lightsaber_blue", {
description = "Blue Lightsaber",
inventory_image = "lightsaber_blue.png",
@@ -100,4 +99,17 @@ minetest.register_tool("amogus_items:lightsaber_green", {
damage_groups = {fleshy=10},
},
sound = {breaks = "amogus_sound"},
})
})
minetest.register_tool("hand_item:hand", {
description = "Hand",
inventory_image = "hand_item_hand.png",
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level = 0,
groupcaps = {
snappy = {times={[1]=1.90, [2]=0.90, [3]=0.30}, uses=40, maxlevel=3},
},
damage_groups = {fleshy = 1},
}
})