SetSpawnerActiveAction ​
Inherits: EventAction < Resource
Switches a spawner on or off. A spawner that is off makes nothing new (what it made stays); switching it on lets it work again. See docs: World > Spawners.
Properties ​
int | spawner_id | 0 |
Operation | operation | Operation.TURN_ON |
Methods ​
String | get_display_name() |
String | get_function_description() |
Enumerations ​
enum Operation ​
What the action does to the spawner
- TURN_ON =
0 - TURN_OFF =
1 - TOGGLE =
2
Property descriptions ​
int spawner_id = 0 ​
The spawner (a placed Spawner of a world: Uniques > Spawners)
Operation operation = Operation.TURN_ON ​
Turn it on, turn it off, or flip it
Method descriptions ​
String get_display_name() ​
Return the display name of this Action
String get_function_description() ​
Return a description of this action with parameter placeholders