Remove frying pans in favour of furnaces

This commit is contained in:
IamPyu 2024-10-31 22:11:49 -06:00
parent 32a96c4494
commit 2301679757
7 changed files with 12 additions and 55 deletions

View File

@ -27,6 +27,7 @@
- Water and Lava now have "chemical reactions"
- Added Calcite
- Added Pumpkins
- Removed Frying Pans, why did I even add them for cooking food when we can just use furnaces?
- A lot of other changes that I forgot to document
## [Oct 19th 2024] Bugfix Update

View File

@ -1,49 +0,0 @@
-- i hate nodeboxes so much i basically just guessed random numbers until it was "good enough"
local nodebox = {
type = "fixed",
fixed = { -0.5, -0.5, -0.5, 0.5, -0.25, 0.5 }
}
PyuTest.make_node("pyutest_cooking:frying_pan", "Frying Pan",{
oddly_breakable_by_hand = PyuTest.BLOCK_FAST
}, {"pyutest-darkstone.png"}, {
drawtype = "mesh",
paramtype = "light",
paramtype2 = "4dir",
mesh = "pyutest-frying-pan.obj",
selection_box = nodebox,
collision_box = nodebox,
on_rightclick = function (pos, node, clicker, itemstack, pointed_thing)
if not clicker then
return
end
if not clicker:is_player() then
return
end
if not itemstack:is_known() then
return itemstack
end
local def = minetest.registered_items[itemstack:get_name()]
if def.__pyutest_cook_into then
local inv = clicker:get_inventory()
local count = itemstack:get_count()
itemstack:set_name(def.__pyutest_cook_into)
for i = 1, count do
local s = ItemStack(def.__pyutest_cook_into)
s:set_count(1)
local leftover = inv:add_item("main", s)
if leftover then
minetest.add_item(pos, leftover)
end
end
return ItemStack()
else
return itemstack
end
end
})

View File

@ -1 +0,0 @@
depends = pyutest_blocks

View File

@ -1 +1 @@
depends = pyutest_tools,pyutest_blocks,pyutest_farming,pyutest_cooking
depends = pyutest_tools,pyutest_blocks,pyutest_farming

View File

@ -41,7 +41,6 @@ PyuTest.make_node("pyutest_furnace:furnace", "Furnace", {
PyuTest.get_inventory_drops(pos, "src", drops)
PyuTest.get_inventory_drops(pos, "fuel", drops)
PyuTest.get_inventory_drops(pos, "dst", drops)
drops[#drops+1] = "pyutest_furnace:furnace"
for _, v in pairs(drops) do
minetest.add_item(pos, v)

View File

@ -50,7 +50,6 @@ PyuTest.make_sword = function (nsname, desc, texture, damage, durability, atkspe
end
PyuTest.make_food = function (nsname, desc, wield_image, health_fill, cook_into, extra_code)
PyuTest.make_item(nsname, desc, {
food = 1
}, wield_image, {
@ -60,6 +59,13 @@ PyuTest.make_food = function (nsname, desc, wield_image, health_fill, cook_into,
minetest.do_item_eat(health_fill, "", itemstack, user, pt)
if extra_code then extra_code() end
end,
__pyutest_cook_into = cook_into
})
if cook_into ~= nil then
minetest.register_craft({
type = "cooking",
output = cook_into,
recipe = nsname
})
end
end

View File

@ -203,7 +203,8 @@ PyuTest.register_overworld_biome("redwood_forest", PyuTest.BIOME_TYPES.CHILLY, {
heat_point = 30,
humidity_point = 50,
_pyutest_biome_flowering = true
_pyutest_biome_flowering = true,
_pyutest_fog_distance = 40,
})
-- Marsh biomes