LogicUsing Events
Property Change
Triggers actions whenever a specific Property's value changes.
This is an advanced but extremely powerful event. It doesn't trigger based on a world interaction, but on a change in your game's logic. It fires whenever a specified Property is modified.
Action Values
Player: The player whose property changed (if it's a Player-held property).Property: The property that changed.Old Value: The value of the property before the change.New Value: The value of the property after the change.
Event Configuration
- Property: You must select the specific property you want this event to listen to.
Use Cases
- The foundation of reactive game systems.
- Automatically checking for a win condition every time a player's score changes.
- Updating a scoreboard or hologram instantly when a property is modified.
- Triggering a special effect when a player's health property drops below a certain threshold.
Example: Announcing a Score Milestone
- Property: A
Player Numberproperty calledScore. - Region: The global region.
- Event:
Property Change. - Configuration: Select the
Scoreproperty. - Actions:
- A
Conditionalaction. - Condition:
Property Condition-> Check if theNew Valueof the event is a multiple of 100 (using theModulo Equalscheck). - If Actions:
Send Message: To Everyone, saying&e%p_player_name_player% &ahas reached &e%p_Score_player% &apoints!
- A