mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-23 02:51:06 +01:00
Change uncharged bow range to 1 (for itemframe)
This commit is contained in:
parent
3025ff92c5
commit
d7a42bd831
1 changed files with 1 additions and 4 deletions
|
@ -109,8 +109,8 @@ The arrow speed and damage increase with the charge level:
|
||||||
stack_max = 1,
|
stack_max = 1,
|
||||||
-- Trick to disable melee damage to entities.
|
-- Trick to disable melee damage to entities.
|
||||||
-- FIXME: The bows is still able to dig like the hand for some reason. :-(
|
-- 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 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_place = powerup_function("mcl_throwing:bow_0"),
|
||||||
on_secondary_use = powerup_function("mcl_throwing:bow_0"),
|
on_secondary_use = powerup_function("mcl_throwing:bow_0"),
|
||||||
groups = {weapon=1,weapon_ranged=1},
|
groups = {weapon=1,weapon_ranged=1},
|
||||||
|
@ -121,7 +121,6 @@ minetest.register_tool("mcl_throwing:bow_0", {
|
||||||
_doc_items_create_entry = false,
|
_doc_items_create_entry = false,
|
||||||
inventory_image = "mcl_throwing_bow_0.png",
|
inventory_image = "mcl_throwing_bow_0.png",
|
||||||
stack_max = 1,
|
stack_max = 1,
|
||||||
tool_capabilities = {},
|
|
||||||
range = 0, -- Pointing range to 0 to prevent punching with bow :D
|
range = 0, -- Pointing range to 0 to prevent punching with bow :D
|
||||||
groups = {not_in_creative_inventory=1, not_in_craft_guide=1},
|
groups = {not_in_creative_inventory=1, not_in_craft_guide=1},
|
||||||
on_place = powerup_function("mcl_throwing:bow_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,
|
_doc_items_create_entry = false,
|
||||||
inventory_image = "mcl_throwing_bow_1.png",
|
inventory_image = "mcl_throwing_bow_1.png",
|
||||||
stack_max = 1,
|
stack_max = 1,
|
||||||
tool_capabilities = {},
|
|
||||||
range = 0,
|
range = 0,
|
||||||
groups = {not_in_creative_inventory=1, not_in_craft_guide=1},
|
groups = {not_in_creative_inventory=1, not_in_craft_guide=1},
|
||||||
on_place = powerup_function("mcl_throwing:bow_2"),
|
on_place = powerup_function("mcl_throwing:bow_2"),
|
||||||
|
@ -167,7 +165,6 @@ minetest.register_tool("mcl_throwing:bow_2", {
|
||||||
_doc_items_create_entry = false,
|
_doc_items_create_entry = false,
|
||||||
inventory_image = "mcl_throwing_bow_2.png",
|
inventory_image = "mcl_throwing_bow_2.png",
|
||||||
stack_max = 1,
|
stack_max = 1,
|
||||||
tool_capabilities = {},
|
|
||||||
range = 0,
|
range = 0,
|
||||||
groups = {not_in_creative_inventory=1, not_in_craft_guide=1},
|
groups = {not_in_creative_inventory=1, not_in_craft_guide=1},
|
||||||
on_use = function(itemstack, user, pointed_thing)
|
on_use = function(itemstack, user, pointed_thing)
|
||||||
|
|
Loading…
Reference in a new issue