Use inventory_image for craftitems and remove craftitem_place_item calls; Changes proposed by kahrl
parent
bf24340ec6
commit
79ad788b9f
9
init.lua
9
init.lua
|
@ -21,20 +21,17 @@ throwing_shoot_arrow=function (item, player, pointed_thing)
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_craftitem("throwing:string", {
|
minetest.register_craftitem("throwing:string", {
|
||||||
image = "throwing_string.png",
|
inventory_image = "throwing_string.png",
|
||||||
on_place_on_ground = minetest.craftitem_place_item,
|
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("throwing:bow", {
|
minetest.register_craftitem("throwing:bow", {
|
||||||
image = "throwing_bow.png",
|
inventory_image = "throwing_bow.png",
|
||||||
stack_max = 1,
|
stack_max = 1,
|
||||||
on_place_on_ground = minetest.craftitem_place_item,
|
|
||||||
on_use = throwing_shoot_arrow,
|
on_use = throwing_shoot_arrow,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("throwing:arrow", {
|
minetest.register_craftitem("throwing:arrow", {
|
||||||
image = "throwing_arrow.png",
|
inventory_image = "throwing_arrow.png",
|
||||||
on_place_on_ground = minetest.craftitem_place_item,
|
|
||||||
})
|
})
|
||||||
|
|
||||||
-- The Arrow Entity
|
-- The Arrow Entity
|
||||||
|
|
Loading…
Reference in New Issue