-
Notifications
You must be signed in to change notification settings - Fork 0
.Json File
Inorder to register your multiblock, you create a simple json file in your namespace under data/<namespace>/multiblock. The json file should have the following structure:

┣ 
┣ 
┣ 
center, corner
┣ 
center, corner, facing
┣ 
┃┣ 
┃┣ 
┃┣ 
┃┣ 
┃┣ 
┃┗ 
┗ 
┗ 
* required
All callbacks run as and at the root of your multiblock instance. They are a string field that contain a command (not a function).
- on_place: Runs everytime a new instance is summoned. Can be used to init your multiblock instance
- on_complete: Runs once a multiblock instance is fully completed (additional conditions are also required)
- on_edit: Runs when the multiblock blueprint is modified. This can be due to a rotate, move, show/hide... Can be used to handle custom display placement
-
on_creative_place: Runs when the multiblock's
build_structurefunction is called. This can be used to handle the placement of custom blocks -
on_clear_area: Runs when the multiblock's
clear_areafunction is called. This can be used to handle the removal of custom blocks - on_uncomplete: Runs when the multiblock changes from a completed state to an incomplete state. This can be used for example to disable the functionality of your multiblock
wiki written by ~theblackswitch