Custom Machinery 1.19.2-0.9.13
Additions :
-
Any recipe can now completely change the machine gui elements.
- Either use
"gui": [...]
in recipe json or.gui([...])
in CT/KJS recipes to specify gui elements to be shown only when that specific recipe is processing. - When the recipe start/end processing the gui will immediately adapt without players having to reopen it first.
- For CT/KJS integration the gui elements must still be written in json syntax, like they would be in the machine json.
- Either use
-
Every gui elements now have an
"id"
property.- This allows for recipe specific gui elements to override machine gui elements.
- Those which already had it (like slot, fluid, button...) just keep it like before (no changes are required).
- For those which didn't have it the new
"id"
property is optional so no changes are required either. - The only breaking change is the
"id"
property of dump gui element which was renamed to"tanks"
to avoid confusion.
-
Added
"custommachinery:empty
gui element type, an element that render nothing but can be used to replace another gui element when a recipe is processing. -
Added
/custommachinery reload
(or/cm reload
) command, which reload only machine json files (not recipes or upgrades).
Bugfix :
- Fix machine owner not saved when the machine is unloaded.
Custom Machinery 1.19.2-0.9.11
Additions :
- Added
.occlude()
property on KubeJS block builder to make the machine block full opaque. - Add "parent" property in custom machine json to make a machine inherit all properties of another machine.
The upgraded machine can also have some recipe modifiers attached to it that will be applied when processing recipes. - Add
ctx.success()
andctx.error("error")
methods for CT and JS function requirement context. The oldResult.success()
andResult.error("error")
methods still work but will be removed in the next MC version. - Allow adding items/blocks from other mods in catalysts.
- Added a "bar" gui element that can display a number value stored in the machine via CT/KJS scripts.
- Added Chinese translations, thanks to LingJiuQiSan.
- Added chunkload component to make the machine act as a chunkloader.
- Added chunkload requirement (Json, CT and JS) to make the machine act as a chunkloader only when a recipe is processing.
- Added utility methods to Machine object in CT/JS function requirement to enable/disable chunkloading.
Bugfix :
- Fix custommachinery.log not resetting before a reload.
- Fix shift-clicking on the structure requirement icon build the structure on a random machine rather than the nearest to the player.
Custom Machinery 1.19.2-0.9.10
Additions :
- Add "shape_collision" appearance property to customize collision shape of the machine independently of the render shape.
- Add "unique" property for fluid components.
Components with this property se to true won't accept fluids that already are in another tank of the machine.
Bugfix :
- Fix itemzoom render on top of the GUI instead of next to it.
- Fix config button texture not being resized when the width/height of the element is changed.
- Fix some bugs about experience component and element.
- Fix block tag ingredient can't take #tag syntax.