feat: macerator craft guide example
This commit is contained in:
parent
d01d03c3a3
commit
e879f588b6
8
api.lua
8
api.lua
@ -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
|
||||
|
@ -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})
|
||||
|
Loading…
Reference in New Issue
Block a user