mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-28 04:33:00 +00:00
Make snowball a ranged weapon
This commit is contained in:
parent
5e94d2bdff
commit
e85a830a01
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue