0
0
Fork 0

Allow to only shoot fully charged arrows

This commit is contained in:
Wuzzy 2017-02-21 22:19:37 +01:00
parent 3fc496c0e1
commit e396ab8e4d
1 changed files with 0 additions and 22 deletions

View File

@ -88,17 +88,6 @@ minetest.register_tool("mcl_throwing:bow_0", {
groups = {not_in_creative_inventory=1, not_in_craft_guide=1},
on_place = powerup_function("mcl_throwing:bow_1"),
on_secondary_use = powerup_function("mcl_throwing:bow_1"),
on_use = function(itemstack, user, pointed_thing)
local wear = itemstack:get_wear()
itemstack:replace("mcl_throwing:bow")
itemstack:set_wear(wear)
if player_shoot_arrow(itemstack, user, pointed_thing) then
if not minetest.setting_getbool("creative_mode") then
itemstack:add_wear(65535/1600)
end
end
return itemstack
end,
})
minetest.register_tool("mcl_throwing:bow_1", {
@ -108,17 +97,6 @@ minetest.register_tool("mcl_throwing:bow_1", {
groups = {not_in_creative_inventory=1, not_in_craft_guide=1},
on_place = powerup_function("mcl_throwing:bow_2"),
on_secondary_use = powerup_function("mcl_throwing:bow_2"),
on_use = function(itemstack, user, pointed_thing)
local wear = itemstack:get_wear()
itemstack:replace("mcl_throwing:bow")
itemstack:set_wear(wear)
if player_shoot_arrow(itemstack, user, pointed_thing) then
if not minetest.setting_getbool("creative_mode") then
itemstack:add_wear(65535/800)
end
end
return itemstack
end,
})
minetest.register_tool("mcl_throwing:bow_2", {