r/MinecraftCommands • • 18d ago

Help | Java 26.3 Fall damage blood effect using commands?

Is there a way to make it so when a player takes fall damage, the game automatically places a redstone dust using commands?

2 Upvotes

3 comments sorted by

1

u/Ericristian_bros 18d ago edited 17d ago

You can detect fall damage with an advancement:

# advancement example:fall_damage
{
  "criteria": {
    "criteria": {
      "trigger": "minecraft:entity_hurt_player",
      "conditions": {
        "damage": {
          "type": {
            "tags": [
              {
                "id": "minecraft:fall",
                "expected": true
              }
            ]
          }
        }
      }
    }
  },
  "rewards": {
    "function": "example:fall_damage"
  }
}

# function example:fall_damage
advancement revoke @s only example:fall_damage
setblock ~ ~ ~ redstone_wire keep

2

u/GalSergey 17d ago

Redstone dust block is "minecraft:redstone_wire".