unloadedactivity:property
Implementation Details
When using this SimulationMethod, it is gonna increase the value of the target property. It will use the property whose name matches what you set in the property_name field. If the property is an IntegerProperty, it will increase it for every successful trial. If it's a BooleanProperty, there will only be a maximum of 1 successful trial, which will turn its value from false to true.
| Implements | Value | Description |
|---|---|---|
unloadedactivity:property |
Set the simulation_method property to "unloadedactivity:property" or just "property" to use this SimulationMethod. |
|
| ✅ | You are able to use this SimulationMethod as a dependency on another SimulationMethod. |
|
| ✅ | You are able to use this SimulationMethod inside of group simulations. |
Properties
| Field | Type | Description |
|---|---|---|
property_name |
String | The name of the property you want to simulate. |
update_type? |
Integer | Which update type to use when updating the block. (Default: 4) |
update_neighbors? |
boolean | If this is set to true, it will call level.neighborChanged() and schedule a tick on the block.(Default: false) |
max_value |
FixedNumberExpression |
The max value. If it's not defined it will simply use the max value for the IntegerProperty, or just use 1 if it's a BooleanProperty. |
Properties extended from GroupableSimulationMethod
| Field | Type | Description |
|---|---|---|
simulate_with_group |
Identifier? | The identifier of the GroupInfo you want it to simulate the block with. If left empty, it will simply simulate on its own. |
Properties extended from the base SimulationMethod
Implementing this SimulationMethod in Java
todo