From 46392a5cc05e1edde3bb0c33670f2a1b9c36e792 Mon Sep 17 00:00:00 2001 From: JoseDouglas26 Date: Sat, 13 Jul 2024 20:21:39 -0300 Subject: [PATCH] Tables, loom and composter using _mcl_burntime --- mods/ITEMS/mcl_cartography_table/init.lua | 9 ++------- mods/ITEMS/mcl_composters/init.lua | 7 +------ mods/ITEMS/mcl_crafting_table/init.lua | 7 +------ mods/ITEMS/mcl_fletching_table/init.lua | 9 ++------- mods/ITEMS/mcl_loom/init.lua | 7 +------ mods/ITEMS/mcl_smithing_table/init.lua | 9 ++------- 6 files changed, 9 insertions(+), 39 deletions(-) diff --git a/mods/ITEMS/mcl_cartography_table/init.lua b/mods/ITEMS/mcl_cartography_table/init.lua index 10f1d1091..46fc79a63 100644 --- a/mods/ITEMS/mcl_cartography_table/init.lua +++ b/mods/ITEMS/mcl_cartography_table/init.lua @@ -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, -}) diff --git a/mods/ITEMS/mcl_composters/init.lua b/mods/ITEMS/mcl_composters/init.lua index 6c4ef89a1..bb774f722 100644 --- a/mods/ITEMS/mcl_composters/init.lua +++ b/mods/ITEMS/mcl_composters/init.lua @@ -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, }) diff --git a/mods/ITEMS/mcl_crafting_table/init.lua b/mods/ITEMS/mcl_crafting_table/init.lua index f14a39183..2fa9206af 100644 --- a/mods/ITEMS/mcl_crafting_table/init.lua +++ b/mods/ITEMS/mcl_crafting_table/init.lua @@ -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") diff --git a/mods/ITEMS/mcl_fletching_table/init.lua b/mods/ITEMS/mcl_fletching_table/init.lua index 5ddda1f82..69bff0549 100644 --- a/mods/ITEMS/mcl_fletching_table/init.lua +++ b/mods/ITEMS/mcl_fletching_table/init.lua @@ -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, -}) diff --git a/mods/ITEMS/mcl_loom/init.lua b/mods/ITEMS/mcl_loom/init.lua index 5f18e7784..69dfc2dcf 100644 --- a/mods/ITEMS/mcl_loom/init.lua +++ b/mods/ITEMS/mcl_loom/init.lua @@ -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", diff --git a/mods/ITEMS/mcl_smithing_table/init.lua b/mods/ITEMS/mcl_smithing_table/init.lua index 6d9e5e080..33684fbb1 100644 --- a/mods/ITEMS/mcl_smithing_table/init.lua +++ b/mods/ITEMS/mcl_smithing_table/init.lua @@ -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)