Repository navigation
Prevent Diving (Power Type)
Zac edited this page Nov 11, 2026
·
1 revision
Prevents and optionally allows for executing an action whenever the player attempts to dive.
Important
This applies to any and all methods of diving, not just player initiated, including the originscontent:defile.dive action, fall damage, among others.
originscontent:defile.prevent_diving
| Field | Type | Default | Description |
|---|---|---|---|
entity_action |
Entity Action | null |
The action to execute, if unspecified ignore. |
{
"type": "originscontent:defile.prevent_diving",
"entity_action": {
"type": "origins:play_sound",
"sound": "minecraft:block.note_block.bass"
},
"condition": {
"type": "origins:resource",
"resource": "example:diving_cooldown",
"comparison": "!=",
"compare_to": 0
}
}This example prevents diving if the example:diving_cooldown resource is not 0, and plays a fail sound on blocked attempts.
- Action on Reeling
- Action on Thunder
- Cancel Inventory Actions
- Cancel Totems
- Disable Offhand
- Modify Minimum Sprinting Hunger
- Override Hotbar
- Prevent Chat
- Prevent Diving
- Reflect Damage
- Ticking Entity
- Action as Nearest
- Crash
- Dive
- Emerge
- Display Toast
- Open Steam Game
- Positioned Screenshake
- Screenshake
- Set Black Rain Duration
- Trigger Thunder
- Discombobulate