1
0
Fork 0

Make snowball a ranged weapon

objects
Wuzzy 2017-01-16 21:43:48 +01:00
parent 5e94d2bdff
commit e85a830a01
1 changed files with 1 additions and 0 deletions

View File

@ -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