On Physics (Event) — Skript
Addon: Skript · Category: Event · Since: 1.4.6
Syntax
[on] [block] physicsDescription
Called when a physics check is done on a block. By cancelling this event you can prevent some things from happening, e.g. sand falling, dirt turning into grass, torches dropping if their supporting block is destroyed, etc.Please note that using this event might cause quite some lag since it gets called extremely often.
Event Values
- event-block
- event-location
- event-world
Examples
# prevents sand from falling
on block physics:
block is sand
cancel event