Rework throwing code, add egg

This commit is contained in:
Wuzzy 2017-01-16 23:11:04 +01:00
parent e85a830a01
commit b6575ab192
30 changed files with 142 additions and 139 deletions

View file

@ -412,17 +412,4 @@ minetest.register_tool("default:shears", {
}
})
-- Snowball
minetest.register_craftitem("default:snowball", {
description = "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
minetest.set_node(pos, {name="default:dirt_with_snow"})
end
end,
})