mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-31 02:56:26 -04:00
Added pies
This commit is contained in:
parent
289b464636
commit
e96d469989
9 changed files with 62 additions and 0 deletions
|
@ -620,6 +620,13 @@ minetest.register_craft({
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = 'default:sugar 4',
|
||||||
|
recipe = {
|
||||||
|
{'default:papyrus'},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Crafting (tool repair)
|
-- Crafting (tool repair)
|
||||||
--
|
--
|
||||||
|
|
|
@ -11,6 +11,11 @@ minetest.register_craftitem("default:paper", {
|
||||||
inventory_image = "default_paper.png",
|
inventory_image = "default_paper.png",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craftitem("default:sugar", {
|
||||||
|
description = "Sugar",
|
||||||
|
inventory_image = "default_sugar.png",
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("default:book", {
|
minetest.register_craftitem("default:book", {
|
||||||
description = "Book",
|
description = "Book",
|
||||||
inventory_image = "default_book.png",
|
inventory_image = "default_book.png",
|
||||||
|
|
BIN
mods/default/textures/default_sugar.png
Normal file
BIN
mods/default/textures/default_sugar.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 428 B |
|
@ -60,6 +60,17 @@ minetest.register_craft({
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- Pie
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "farming:pie",
|
||||||
|
recipe = {
|
||||||
|
{"farming:wheat", "farming:wheat", "farming:wheat"},
|
||||||
|
{"default:apple", "default:sugar", "default:apple"},
|
||||||
|
{"farming:wheat", "farming:wheat", "farming:wheat"},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
-- Straw
|
-- Straw
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "farming:straw 3",
|
output = "farming:straw 3",
|
||||||
|
|
|
@ -88,6 +88,45 @@ minetest.register_node("farming:straw", {
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_node("farming:pie", {
|
||||||
|
description = "Apple Pie",
|
||||||
|
tiles = {"farming_pie_top.png","farming_pie_bottom.png","farming_pie_side.png"},
|
||||||
|
is_ground_content = false,
|
||||||
|
drawtype = "nodebox",
|
||||||
|
paramtype = "light",
|
||||||
|
groups = {crumbly=3},
|
||||||
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5},
|
||||||
|
},
|
||||||
|
on_rightclick = function(pos,node,player)
|
||||||
|
local health = player:get_hp()
|
||||||
|
player:set_hp(health + 5)
|
||||||
|
minetest.set_node(pos,{name="farming:pie_half"})
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("farming:pie_half", {
|
||||||
|
description = "Apple Pie Half",
|
||||||
|
tiles = {"farming_pie_top.png","farming_pie_bottom.png","farming_pie_side.png",
|
||||||
|
"farming_pie_front.png","farming_pie_side.png","farming_pie_side.png"},
|
||||||
|
is_ground_content = false,
|
||||||
|
drawtype = "nodebox",
|
||||||
|
paramtype = "light",
|
||||||
|
groups = {crumbly=3,not_in_creative_inventory=1},
|
||||||
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {-0, -0.5, -0.5, 0.5, 0, 0.5},
|
||||||
|
},
|
||||||
|
on_rightclick = function(pos,node,player)
|
||||||
|
local health = player:get_hp()
|
||||||
|
player:set_hp(health + 5)
|
||||||
|
minetest.set_node(pos,{name="air"})
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
nodenames = {"group:field"},
|
nodenames = {"group:field"},
|
||||||
interval = 15,
|
interval = 15,
|
||||||
|
|
BIN
mods/farming/textures/farming_pie_bottom.png
Normal file
BIN
mods/farming/textures/farming_pie_bottom.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 539 B |
BIN
mods/farming/textures/farming_pie_front.png
Normal file
BIN
mods/farming/textures/farming_pie_front.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 316 B |
BIN
mods/farming/textures/farming_pie_side.png
Normal file
BIN
mods/farming/textures/farming_pie_side.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 448 B |
BIN
mods/farming/textures/farming_pie_top.png
Normal file
BIN
mods/farming/textures/farming_pie_top.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 269 B |
Loading…
Add table
Reference in a new issue