Turn apple and gold apple to craftitems
This commit is contained in:
parent
7e980234ce
commit
dcacf7aeba
2 changed files with 16 additions and 38 deletions
|
@ -152,4 +152,20 @@ minetest.register_craftitem("default:quartz_crystal", {
|
|||
stack_max = 64,
|
||||
})
|
||||
|
||||
minetest.register_node("default:apple", {
|
||||
description = "Apple",
|
||||
wield_image = "default_apple.png",
|
||||
inventory_image = "default_apple.png",
|
||||
stack_max = 64,
|
||||
on_use = minetest.item_eat(4),
|
||||
})
|
||||
|
||||
minetest.register_node("default:apple_gold", {
|
||||
description = "Golden Apple",
|
||||
wield_image = "default_apple_gold.png",
|
||||
inventory_image = "default_apple_gold.png",
|
||||
stack_max = 64,
|
||||
on_use = minetest.item_eat(8),
|
||||
})
|
||||
|
||||
minetest.register_alias("default:steel_ingot", "default:iron_ingot")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue