diff --git a/abms.lua b/abms.lua index 83f7c01..512b387 100644 --- a/abms.lua +++ b/abms.lua @@ -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 diff --git a/nodes.lua b/nodes.lua index 2ed4840..e0f2bfb 100644 --- a/nodes.lua +++ b/nodes.lua @@ -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", - 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", { @@ -254,16 +264,76 @@ minetest.register_craftitem("fun_caves:apple_pie_uncooked", { inventory_image = "fun_caves_apple_pie_uncooked.png", }) -minetest.register_craft({ - output = 'fun_caves:apple_pie_uncooked', - type = 'shapeless', - recipe = { - 'default:apple', - 'default:apple', - 'farming:flour', - 'mobs:honey', - }, -}) +if mobs and mobs.mod == "redo" then + minetest.register_craft({ + output = 'fun_caves:apple_pie_uncooked', + type = 'shapeless', + recipe = { + 'default:apple', + 'default:apple', + '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 diff --git a/textures/fun_caves_meat_pie.png b/textures/fun_caves_meat_pie.png new file mode 100644 index 0000000..beb0452 Binary files /dev/null and b/textures/fun_caves_meat_pie.png differ diff --git a/textures/fun_caves_meat_pie_slice.png b/textures/fun_caves_meat_pie_slice.png new file mode 100644 index 0000000..4979f4b Binary files /dev/null and b/textures/fun_caves_meat_pie_slice.png differ diff --git a/textures/fun_caves_meat_pie_uncooked.png b/textures/fun_caves_meat_pie_uncooked.png new file mode 100644 index 0000000..8235562 Binary files /dev/null and b/textures/fun_caves_meat_pie_uncooked.png differ diff --git a/textures/fun_caves_onion.png b/textures/fun_caves_onion.png new file mode 100644 index 0000000..aa2722d Binary files /dev/null and b/textures/fun_caves_onion.png differ diff --git a/textures/image_credits.txt b/textures/image_credits.txt index 0a508e6..7ff3960 100644 --- a/textures/image_credits.txt +++ b/textures/image_credits.txt @@ -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