Skip to content

Custom Machine Crafting

Mowmaster edited this page Jun 16, 2022 · 2 revisions

image

MowLib adds some default recipes, and base machine block/ block entity/ block entity render classes that allow mods using MowLib to effectively craft dynamic machines.

  • Base Type Recipes These recipe works on blocks that extend the classes BaseMachineBlock and BaseWorkstationBlock and the recipe will turn the input block into any other output block. Ideally that output block will extend either BaseBuiltFueledMachineBlock or BaseBuiltMachineBlock

  • Item Hint Recipe This is mainly text stuff used when the Repair Note is used on either of the BaseBuiltFueledMachineBlock or BaseBuiltMachineBlock blocks.

  • Repair Items Recipes This is which items can be inserted into an incomplete BaseBuiltFueledMachineBlock or BaseBuiltMachineBlock block, in order to "repair" it to complete the machine. There should also be an associated config in mods using this system to modify the BlockEntity to also allow the amount of "repair" items necessary to have item slots.

  • Render Item Recipe This controls if the inserted items (Both "repair" items and items used as ingredients in the machine) can get rendered on the block in some way, it can control the rendered items size, position, and if it renders flat (items) or 3d (blocks)

Clone this wiki locally