LogicUsing Events
Player Sneak / Unsneak
Triggers when a player starts or stops sneaking.
These events fire when a player's sneak state changes.
Player Sneak
Triggers the moment a player begins to sneak (presses the sneak key).
- Action Values:
Player - Use Cases:
- Revealing hidden passages or blocks when a player sneaks in a certain spot.
- Making players invisible while they are sneaking in a specific region.
- Activating a special "stealth mode" property.
Player Unsneak
Triggers the moment a player stops sneaking.
- Action Values:
Player - Use Cases:
- Hiding a passage that was revealed by sneaking.
- Removing a "stealth mode" effect.
Example: A Secret Sneak-Activated Door
- Region: A small region in front of a wall where the secret door is.
- Player Sneak Event:
- Action:
Change Block: Change the wall blocks toAIRto reveal the passage.
- Action:
- Player Unsneak Event:
- Action:
Change Block: Change theAIRblocks back to wall blocks to hide the passage.
- Action: