Adding A Custom Schematic Reward - TheTurkeyDev/ChanceCubes GitHub Wiki
Before you add a block reward, you need to have the basic reward setup. If you have not done that already, you need to head here to set up the base for the reward.
Fields:
Field Name | Type | Default | Field Description |
---|---|---|---|
fileName (Required) | String | The name of the schematic file that contains the block info. Must either contain .schematic or .ccs | |
xOffSet | Integer | 0 | The offset to spawn the schematic in the x direction |
yOffSet | Integer | 0 | The offset to spawn the schematic in the y direction |
zOffSet | Integer | 0 | The offset to spawn the schematic in the z direction |
delay | Integer | 0 | The delay between blocks that will be spawned |
falling | Boolean | True | True makes the block spawn slightly overhead and fall into position. False will spawn the block in normally where it is set to |
relativeToPlayer | Boolean | False | True makes the block spawn with the offset's based on the players position and not the Chance Cube. False does the opposite |
includeAirBlocks | Boolean | False | Whether or not to include air blocks when placing the schematic |
spacingDelay | Float | 0.1 | Ticks between blocks being spawned or placed. Delays of less than one will spawn multiple blocks until the total of the delay times the number of blocks is greater than or equal to 1 |
Example:
{
"Schematic_Reward":
{
"chance": 0,
"Schematic":
[
{"fileName":"house.ccs", "xOffSet":0, "yOffSet":0, "zOffSet":0, "falling":true, "delay":3, "relativeToPlayer":true, "includeAirBlocks": false, "spacingDelay":0.1}
]
}
}