pumpkin slices and cooking
parent
0732ade134
commit
3808342e15
30
init.lua
30
init.lua
|
@ -13,7 +13,7 @@ gourds.register_gourd({
|
|||
name = "pumpkin",
|
||||
desc = "Pumpkin",
|
||||
|
||||
base_speed = 5,
|
||||
base_speed = 8,
|
||||
grows_on = "soil",
|
||||
|
||||
textures = {
|
||||
|
@ -27,11 +27,37 @@ gourds.register_gourd({
|
|||
},
|
||||
})
|
||||
|
||||
|
||||
minetest.register_craftitem("gourds:pumpkin_slice", {
|
||||
description = "Pumpkin Slice",
|
||||
inventory_image = "gourds_pumpkin_slice.png",
|
||||
})
|
||||
minetest.register_craftitem("gourds:pumpkin_slice_cooked", {
|
||||
description = "Roasted Pumpkin",
|
||||
inventory_image = "gourds_pumpkin_slice_cooked.png",
|
||||
on_use = minetest.item_eat(1)
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "gourds:pumpkin_slice 6",
|
||||
recipe = {"gourds:pumpkin_8"},
|
||||
})
|
||||
|
||||
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
output = "gourds:pumpkin_slice_cooked",
|
||||
recipe = "gourds:pumpkin_slice",
|
||||
cooktime = 15
|
||||
})
|
||||
|
||||
|
||||
gourds.register_gourd({
|
||||
name = "watermelon",
|
||||
desc = "Watermelon",
|
||||
|
||||
base_speed = 5,
|
||||
base_speed = 7,
|
||||
grows_on = "sand",
|
||||
|
||||
textures = {
|
||||
|
|
|
@ -40,7 +40,6 @@ gourds.register_gourd = function(def)
|
|||
description = "Ripe "..def.desc,
|
||||
paramtype = "light",
|
||||
drawtype = "nodebox",
|
||||
drop = "",
|
||||
tiles = {def.textures.ripe_fruit},
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
|
@ -52,6 +51,7 @@ gourds.register_gourd = function(def)
|
|||
sounds = default.node_sound_leaves_defaults(),
|
||||
})
|
||||
|
||||
|
||||
minetest.register_node(rotting_fruit_name, {
|
||||
description = "Rotting "..def.desc,
|
||||
paramtype = "light",
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 478 B |
Binary file not shown.
After Width: | Height: | Size: 513 B |
Loading…
Reference in New Issue