Tables, loom and composter using _mcl_burntime

This commit is contained in:
JoseDouglas26 2024-07-13 20:21:39 -03:00 committed by JoseDouglas26
parent aaa58cd583
commit 46392a5cc0
6 changed files with 9 additions and 39 deletions

View File

@ -15,7 +15,8 @@ minetest.register_node("mcl_cartography_table:cartography_table", {
groups = { axey = 2, handy = 1, deco_block = 1, material_wood = 1, flammable = 1 },
sounds = mcl_sounds.node_sound_wood_defaults(),
_mcl_blast_resistance = 2.5,
_mcl_hardness = 2.5
_mcl_hardness = 2.5,
_mcl_burntime = 15
})
@ -27,9 +28,3 @@ minetest.register_craft({
{ "group:wood", "group:wood", "" },
}
})
minetest.register_craft({
type = "fuel",
recipe = "mcl_cartography_table:cartography_table",
burntime = 15,
})

View File

@ -32,12 +32,6 @@ minetest.register_craft({
}
})
minetest.register_craft({
type = "fuel",
recipe = "mcl_composters:composter",
burntime = 15,
})
--- Fill the composter when rightclicked.
--
-- `on_rightclick` handler for composter blocks of all fill levels except
@ -267,6 +261,7 @@ minetest.register_node("mcl_composters:composter", {
_mcl_hardness = 0.6,
_mcl_blast_resistance = 0.6,
_mcl_compost_level = 0,
_mcl_burntime = 15,
on_rightclick = composter_add_item,
_on_hopper_in = on_hopper_in,
})

View File

@ -75,6 +75,7 @@ minetest.register_node("mcl_crafting_table:crafting_table", {
sounds = mcl_sounds.node_sound_wood_defaults(),
_mcl_blast_resistance = 2.5,
_mcl_hardness = 2.5,
_mcl_burntime = 15
})
minetest.register_craft({
@ -85,11 +86,5 @@ minetest.register_craft({
},
})
minetest.register_craft({
type = "fuel",
recipe = "mcl_crafting_table:crafting_table",
burntime = 15,
})
minetest.register_alias("crafting:workbench", "mcl_crafting_table:crafting_table")
minetest.register_alias("mcl_inventory:workbench", "mcl_crafting_table:crafting_table")

View File

@ -14,7 +14,8 @@ minetest.register_node("mcl_fletching_table:fletching_table", {
groups = { axey = 2, handy = 1, deco_block = 1, material_wood = 1, flammable = 1 },
sounds = mcl_sounds.node_sound_wood_defaults(),
_mcl_blast_resistance = 2.5,
_mcl_hardness = 2.5
_mcl_hardness = 2.5,
_mcl_burntime = 15
})
minetest.register_craft({
@ -25,9 +26,3 @@ minetest.register_craft({
{ "group:wood", "group:wood", "" },
}
})
minetest.register_craft({
type = "fuel",
recipe = "mcl_fletching_table:fletching_table",
burntime = 15,
})

View File

@ -160,6 +160,7 @@ minetest.register_node("mcl_loom:loom", {
sounds = mcl_sounds.node_sound_wood_defaults(),
_mcl_blast_resistance = 2.5,
_mcl_hardness = 2.5,
_mcl_burntime = 15,
on_construct = function(pos)
local meta = minetest.get_meta(pos)
local inv = meta:get_inventory()
@ -252,12 +253,6 @@ minetest.register_craft({
}
})
minetest.register_craft({
type = "fuel",
recipe = "mcl_loom:loom",
burntime = 15,
})
minetest.register_lbm({
label = "Update Loom formspecs and invs to allow new sneak+click behavior",
name = "mcl_loom:update_coolsneak",

View File

@ -290,7 +290,8 @@ minetest.register_node("mcl_smithing_table:table", {
end,
_mcl_blast_resistance = 2.5,
_mcl_hardness = 2.5
_mcl_hardness = 2.5,
_mcl_burntime = 15
})
@ -303,12 +304,6 @@ minetest.register_craft({
},
})
minetest.register_craft({
type = "fuel",
recipe = "mcl_smithing_table:table",
burntime = 15,
})
-- this is the exact same as mcl_smithing_table.upgrade_item_netherite , in case something relies on the old function
function mcl_smithing_table.upgrade_item_netherite(itemstack)
return mcl_smithing_table.upgrade_item(itemstack)