Skip to content

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
Method identifier unloadedactivity:property Set the simulation_method property to "unloadedactivity:property" or just "property" to use this SimulationMethod.
Dependable? You are able to use this SimulationMethod as a dependency on another SimulationMethod.
Groupable? 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
Field Type Description
simulation_method Identifier The identifier of the SimulationMethod you want to use. If the identifiers namespace is "unloadedactivity", you can skip writing it. So instead of writing "unloadedactivity:property", you can just write "property".
advance_probability UpdatingValueExpression The probability of the SimulationMethod performing 1 successful step per random/precipitation tick. A "step" can mean different things depending on the SimulationMethod. For PropertyMethod, it can mean to increase an IntegerProperty by 1, and for DecayMethod, it means that the block disappears.
conditions? FixedCondition[] Conditions that needs to be valid in order for the simulation to start.
(Default: [])
dependencies? String[] The keys to different SimulationMethods on the same block that needs to have been finished before this SimulationMethod can start. This only works on SimulationMethods that are dependable.
(Default: [])
is_precipitation? Boolean If the simulation should only be active if it has direct access to the sky.
(Default: false)
requires_rain? Boolean If the simulation should only be active if it's currently raining.
(Default: whatever is_precipitation is set to)
replace? Boolean If it should discard all old data and start fresh. By default, if there's 2 different entries affecting the same SimulationMethod, the one with lower priority will overlay it's data on top of the previous entry.
(Default: false)

Implementing this SimulationMethod in Java

todo