1. Wiki
  2. /Blocks
  3. /minecraft:on_fall_on

minecraft:on_fall_on

Don't want to write this by hand? GodCraft sets minecraft:on_fall_on for you with a switch.Get GodCraft

Overview

minecraft:on_fall_on is a block component: it goes in the components object of a custom block. Runs a block event when a mob or player lands on the block. This is an older event style; scripts are the newer way.

Fields

FieldTypeDefaultDescription
conditionStringnoneA Molang check that must be true for the event to run.
eventStringnoneName of the block event to run.
min_fall_distanceDecimal"0.0"Fall height in blocks needed to run the event.
targetString"self"Who the event acts on, like "self" or "other".

Example

Inside the components object of BP/blocks/<name>.json (values are the defaults or placeholders):

BP/blocks/<name>.json
{
  "minecraft:on_fall_on": {
    "condition": "",
    "event": "",
    "min_fall_distance": "0.0",
    "target": "self"
  }
}

Blocks: Behavior pack

We use cookies to improve your experience and analyse site traffic. Learn more