Prevent
Components that override vanilla behaviour, most of these will listen to events and cancel them.
Any entity¶
Interaction¶
Prevents different types of interaction. If passed list is empty, will prevent all.
prevent.interaction: [ ATTACK ] # (1)!
- Available options:
ATTACK
,RIGHT_CLICK
Regeneration¶
Prevents different types of regeneration events. If passed list is empty, will prevent all.
prevent.regeneration: [ REGEN, MAGIC ] # (1)!
- Available options: any of EntityRegainHealthEvent.RegainReason"
Prevent riding¶
Cancels VehicleEnterEvent on this entity.
prevent.riding: true
Animals¶
Breeding¶
Cancels EntityEnterLoveModeEvent and EntityBreedEvent.
prevent.breeding: { }