Add meat pie.

This commit is contained in:
Duane 2016-07-10 22:43:35 -05:00
parent 159083227d
commit 4ed95b93af
7 changed files with 100 additions and 14 deletions

View file

@ -335,7 +335,7 @@ minetest.register_abm({
minetest.register_abm({
nodenames = {"default:leaves"},
interval = 10 * fun_caves.time_factor,
chance = 100,
chance = 250,
catch_up = false,
action = function(pos, node)
pos.y = pos.y - 1

View file

@ -231,7 +231,7 @@ minetest.register_craft({
})
minetest.register_craftitem("fun_caves:apple_pie_slice", {
description = "Apple Pie",
description = "Apple Pie Slice",
inventory_image = "fun_caves_apple_pie_slice.png",
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",
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", {
@ -254,7 +264,8 @@ minetest.register_craftitem("fun_caves:apple_pie_uncooked", {
inventory_image = "fun_caves_apple_pie_uncooked.png",
})
minetest.register_craft({
if mobs and mobs.mod == "redo" then
minetest.register_craft({
output = 'fun_caves:apple_pie_uncooked',
type = 'shapeless',
recipe = {
@ -263,7 +274,66 @@ minetest.register_craft({
'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({
output = 'fun_caves:apple_pie_uncooked',
@ -289,3 +359,17 @@ minetest.register_craft({
output = "fun_caves:apple_pie",
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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB

View file

@ -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
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
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