Add touch_interaction to (cross)bow and spyglass

This commit is contained in:
grorp 2024-09-25 18:30:59 +02:00 committed by cora
parent 2cad227801
commit d27dbf6510
3 changed files with 6 additions and 0 deletions

View File

@ -148,6 +148,7 @@ S("The speed and damage of the arrow increases the longer you charge. The regula
itemstack:get_meta():set_string("active", "true")
return itemstack
end,
touch_interaction = "short_dig_long_place",
groups = {weapon=1,weapon_ranged=1,bow=1,enchantability=1},
_mcl_uses = 385,
_mcl_burntime = 15
@ -213,6 +214,7 @@ for level=0, 2 do
on_place = function(itemstack)
return itemstack
end,
touch_interaction = "short_dig_long_place",
_mcl_uses = 385,
})
end

View File

@ -148,6 +148,7 @@ S("The speed and damage of the arrow increases the longer you charge. The regula
itemstack:get_meta():set_string("active", "true")
return itemstack
end,
touch_interaction = "short_dig_long_place",
groups = {weapon=1,weapon_ranged=1,crossbow=1,enchantability=1},
_mcl_uses = 326,
_mcl_burntime = 15
@ -177,6 +178,7 @@ S("The speed and damage of the arrow increases the longer you charge. The regula
itemstack:get_meta():set_string("active", "true")
return itemstack
end,
touch_interaction = "short_dig_long_place",
groups = {weapon=1,weapon_ranged=1,crossbow=5,enchantability=1,not_in_creative_inventory=1},
_mcl_uses = 326,
_mcl_burntime = 15
@ -242,6 +244,7 @@ for level=0, 2 do
on_place = function(itemstack)
return itemstack
end,
touch_interaction = "short_dig_long_place",
_mcl_uses = 385,
})
end

View File

@ -13,6 +13,7 @@ minetest.register_tool("mcl_spyglass:spyglass",{
groups = {tool = 1},
stack_max = 1,
_mcl_toollike_wield = true,
touch_interaction = "short_dig_long_place",
})
minetest.register_craft({