Use inventory_image for craftitems and remove craftitem_place_item calls; Changes proposed by kahrl

master
Jeija 2012-02-10 21:26:14 +01:00
parent bf24340ec6
commit 79ad788b9f
1 changed files with 3 additions and 6 deletions

View File

@ -21,20 +21,17 @@ throwing_shoot_arrow=function (item, player, pointed_thing)
end
minetest.register_craftitem("throwing:string", {
image = "throwing_string.png",
on_place_on_ground = minetest.craftitem_place_item,
inventory_image = "throwing_string.png",
})
minetest.register_craftitem("throwing:bow", {
image = "throwing_bow.png",
inventory_image = "throwing_bow.png",
stack_max = 1,
on_place_on_ground = minetest.craftitem_place_item,
on_use = throwing_shoot_arrow,
})
minetest.register_craftitem("throwing:arrow", {
image = "throwing_arrow.png",
on_place_on_ground = minetest.craftitem_place_item,
inventory_image = "throwing_arrow.png",
})
-- The Arrow Entity