Add meat pie.
This commit is contained in:
parent
159083227d
commit
4ed95b93af
7 changed files with 100 additions and 14 deletions
2
abms.lua
2
abms.lua
|
@ -335,7 +335,7 @@ minetest.register_abm({
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
nodenames = {"default:leaves"},
|
nodenames = {"default:leaves"},
|
||||||
interval = 10 * fun_caves.time_factor,
|
interval = 10 * fun_caves.time_factor,
|
||||||
chance = 100,
|
chance = 250,
|
||||||
catch_up = false,
|
catch_up = false,
|
||||||
action = function(pos, node)
|
action = function(pos, node)
|
||||||
pos.y = pos.y - 1
|
pos.y = pos.y - 1
|
||||||
|
|
110
nodes.lua
110
nodes.lua
|
@ -231,7 +231,7 @@ minetest.register_craft({
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("fun_caves:apple_pie_slice", {
|
minetest.register_craftitem("fun_caves:apple_pie_slice", {
|
||||||
description = "Apple Pie",
|
description = "Apple Pie Slice",
|
||||||
inventory_image = "fun_caves_apple_pie_slice.png",
|
inventory_image = "fun_caves_apple_pie_slice.png",
|
||||||
on_use = minetest.item_eat(5),
|
on_use = minetest.item_eat(5),
|
||||||
})
|
})
|
||||||
|
@ -244,9 +244,19 @@ minetest.register_craft({
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("fun_caves:apple_pie", {
|
minetest.register_node("fun_caves:apple_pie", {
|
||||||
description = "Apple Pie",
|
description = "Apple Pie",
|
||||||
inventory_image = "fun_caves_apple_pie.png",
|
drawtype = "raillike",
|
||||||
|
tiles = {"fun_caves_apple_pie.png"},
|
||||||
|
inventory_image = "fun_caves_apple_pie.png",
|
||||||
|
paramtype = "light",
|
||||||
|
walkable = false,
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-0.4, -0.5, -0.4, 0.5, -0.4, 0.4}
|
||||||
|
},
|
||||||
|
groups = {dig_immediate = 3, attached_node = 1},
|
||||||
|
sounds = default.node_sound_dirt_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("fun_caves:apple_pie_uncooked", {
|
minetest.register_craftitem("fun_caves:apple_pie_uncooked", {
|
||||||
|
@ -254,16 +264,76 @@ minetest.register_craftitem("fun_caves:apple_pie_uncooked", {
|
||||||
inventory_image = "fun_caves_apple_pie_uncooked.png",
|
inventory_image = "fun_caves_apple_pie_uncooked.png",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
if mobs and mobs.mod == "redo" then
|
||||||
output = 'fun_caves:apple_pie_uncooked',
|
minetest.register_craft({
|
||||||
type = 'shapeless',
|
output = 'fun_caves:apple_pie_uncooked',
|
||||||
recipe = {
|
type = 'shapeless',
|
||||||
'default:apple',
|
recipe = {
|
||||||
'default:apple',
|
'default:apple',
|
||||||
'farming:flour',
|
'default:apple',
|
||||||
'mobs:honey',
|
'farming:flour',
|
||||||
},
|
'mobs:honey',
|
||||||
})
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craftitem("fun_caves:meat_pie_uncooked", {
|
||||||
|
description = "Uncooked Meat Pie",
|
||||||
|
inventory_image = "fun_caves_meat_pie_uncooked.png",
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = 'fun_caves:meat_pie_uncooked',
|
||||||
|
type = 'shapeless',
|
||||||
|
recipe = {
|
||||||
|
'mobs:meat_raw',
|
||||||
|
'mobs:meat_raw',
|
||||||
|
'fun_caves:onion',
|
||||||
|
'farming:flour',
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("fun_caves:meat_pie", {
|
||||||
|
description = "Meat Pie",
|
||||||
|
drawtype = "raillike",
|
||||||
|
tiles = {"fun_caves_meat_pie.png"},
|
||||||
|
inventory_image = "fun_caves_meat_pie.png",
|
||||||
|
paramtype = "light",
|
||||||
|
walkable = false,
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-0.4, -0.5, -0.4, 0.5, -0.4, 0.4}
|
||||||
|
},
|
||||||
|
groups = {dig_immediate = 3, attached_node = 1},
|
||||||
|
sounds = default.node_sound_dirt_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "cooking",
|
||||||
|
cooktime = 15,
|
||||||
|
output = "fun_caves:meat_pie",
|
||||||
|
recipe = "fun_caves:meat_pie_uncooked"
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craftitem("fun_caves:onion", {
|
||||||
|
description = "Onion",
|
||||||
|
inventory_image = "fun_caves_onion.png",
|
||||||
|
on_use = minetest.item_eat(2),
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craftitem("fun_caves:meat_pie_slice", {
|
||||||
|
description = "Meat Pie Slice",
|
||||||
|
inventory_image = "fun_caves_meat_pie_slice.png",
|
||||||
|
on_use = minetest.item_eat(9),
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = 'fun_caves:meat_pie_slice 5',
|
||||||
|
type = 'shapeless',
|
||||||
|
recipe = {
|
||||||
|
'fun_caves:meat_pie',
|
||||||
|
}
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'fun_caves:apple_pie_uncooked',
|
output = 'fun_caves:apple_pie_uncooked',
|
||||||
|
@ -289,3 +359,17 @@ minetest.register_craft({
|
||||||
output = "fun_caves:apple_pie",
|
output = "fun_caves:apple_pie",
|
||||||
recipe = "fun_caves:apple_pie_uncooked"
|
recipe = "fun_caves:apple_pie_uncooked"
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
for i = 3, 5 do
|
||||||
|
minetest.override_item("default:grass_" .. i, {
|
||||||
|
drop = {
|
||||||
|
max_items = 2,
|
||||||
|
items = {
|
||||||
|
{ items = { "default:grass_1"}, },
|
||||||
|
{ items = {'farming:seed_wheat'},rarity = 5 },
|
||||||
|
{ items = {"fun_caves:onion",}, rarity = 5 },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
BIN
textures/fun_caves_meat_pie.png
Normal file
BIN
textures/fun_caves_meat_pie.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
BIN
textures/fun_caves_meat_pie_slice.png
Normal file
BIN
textures/fun_caves_meat_pie_slice.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
BIN
textures/fun_caves_meat_pie_uncooked.png
Normal file
BIN
textures/fun_caves_meat_pie_uncooked.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
BIN
textures/fun_caves_onion.png
Normal file
BIN
textures/fun_caves_onion.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2 KiB |
|
@ -11,3 +11,5 @@ Original moonstone: Didier Descouens (cc-by-sa 4), https://en.wikipedia.org/wiki
|
||||||
Wallhammer images by the eminent DonBatman (DWYWPL), https://forum.minetest.net/viewtopic.php?f=11&t=13484&hilit=masonry+hammer
|
Wallhammer images by the eminent DonBatman (DWYWPL), https://forum.minetest.net/viewtopic.php?f=11&t=13484&hilit=masonry+hammer
|
||||||
The pyramid and translocator textures are copied from the default sandstone and steel block, respectively.
|
The pyramid and translocator textures are copied from the default sandstone and steel block, respectively.
|
||||||
Firework 2: William Crochot (cc-by-sa 4): https://en.wikipedia.org/wiki/File:Feu_d'artifice_-_333.jpg
|
Firework 2: William Crochot (cc-by-sa 4): https://en.wikipedia.org/wiki/File:Feu_d'artifice_-_333.jpg
|
||||||
|
Apple pie: Dan Parsons (cc-by-sa 2): https://en.wikipedia.org/wiki/File:Apple_pie.jpg
|
||||||
|
Onion: Colin (cc-by-sa 3): https://en.wikipedia.org/wiki/File:Red_Onion_on_White.JPG
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue