feat: macerator craft guide example

This commit is contained in:
Handful of Frogs 2024-05-10 22:37:19 +03:00
parent d01d03c3a3
commit e879f588b6
2 changed files with 14 additions and 0 deletions

View File

@ -749,6 +749,14 @@ industrialtest.api.registerMaceratorRecipe=function(config)
recipe=config.recipe or "",
time=config.time or 2
}
if mcl_craftguide ~= nil then
mcl_craftguide.register_craft({
type = "industrialtest.macerating",
width = 1,
output = definition.output,
items = {definition.recipe}
})
end
industrialtest.api.maceratorRecipes[definition.recipe]=definition
end
-- \brief Returns macerator recipe result

View File

@ -610,6 +610,12 @@ if industrialtest.mclAvailable then
y_max=mcl_worlds.layer_to_y(16),
y_min=mcl_vars.mg_overworld_min
})
mcl_craftguide.register_craft_type("industrialtest.macerating", {
description = S("Macerating"),
icon = "industrialtest_machine_block.png^industrialtest_macerator_front_active.png"
})
elseif industrialtest.mtgAvailable then
industrialtest.internal.explode=function(pos,radius)
tnt.boom(pos,{radius=radius})