From d7a42bd83155d36fc73a493519d55d82d2b58f69 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 27 May 2017 00:10:03 +0200 Subject: [PATCH] Change uncharged bow range to 1 (for itemframe) --- mods/ITEMS/mcl_throwing/init.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mods/ITEMS/mcl_throwing/init.lua b/mods/ITEMS/mcl_throwing/init.lua index c46f661fa..8b742206c 100644 --- a/mods/ITEMS/mcl_throwing/init.lua +++ b/mods/ITEMS/mcl_throwing/init.lua @@ -109,8 +109,8 @@ The arrow speed and damage increase with the charge level: stack_max = 1, -- Trick to disable melee damage to entities. -- FIXME: The bows is still able to dig like the hand for some reason. :-( - tool_capabilities = {}, -- Range not set to 0 (unlike the others) so it can be placed into item frames + range = 1, on_place = powerup_function("mcl_throwing:bow_0"), on_secondary_use = powerup_function("mcl_throwing:bow_0"), groups = {weapon=1,weapon_ranged=1}, @@ -121,7 +121,6 @@ minetest.register_tool("mcl_throwing:bow_0", { _doc_items_create_entry = false, inventory_image = "mcl_throwing_bow_0.png", stack_max = 1, - tool_capabilities = {}, range = 0, -- Pointing range to 0 to prevent punching with bow :D groups = {not_in_creative_inventory=1, not_in_craft_guide=1}, on_place = powerup_function("mcl_throwing:bow_1"), @@ -144,7 +143,6 @@ minetest.register_tool("mcl_throwing:bow_1", { _doc_items_create_entry = false, inventory_image = "mcl_throwing_bow_1.png", stack_max = 1, - tool_capabilities = {}, range = 0, groups = {not_in_creative_inventory=1, not_in_craft_guide=1}, on_place = powerup_function("mcl_throwing:bow_2"), @@ -167,7 +165,6 @@ minetest.register_tool("mcl_throwing:bow_2", { _doc_items_create_entry = false, inventory_image = "mcl_throwing_bow_2.png", stack_max = 1, - tool_capabilities = {}, range = 0, groups = {not_in_creative_inventory=1, not_in_craft_guide=1}, on_use = function(itemstack, user, pointed_thing)