From e85a830a0199cfcefeeb849c738ce1bdf05ff576 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 16 Jan 2017 21:43:48 +0100 Subject: [PATCH] Make snowball a ranged weapon --- mods/default/tools.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/default/tools.lua b/mods/default/tools.lua index ce4c5e84b4..d6dd4c96aa 100644 --- a/mods/default/tools.lua +++ b/mods/default/tools.lua @@ -418,6 +418,7 @@ minetest.register_craftitem("default:snowball", { inventory_image = "default_snowball.png", stack_max = 64, on_use = snow_shoot_snowball, + groups = { weapon_ranged = 1 }, on_construct = function(pos) pos.y = pos.y - 1 if minetest.get_node(pos).name == "default:dirt_with_grass" then