Skip to content

Prevent Diving (Power Type)

Zac edited this page Nov 11, 2026 · 1 revision

Power Type


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

Fields

Field Type Default Description
entity_action Entity Action null The action to execute, if unspecified ignore.

Examples

{
  "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.

Clone this wiki locally