With entities, you can modify the FireTick data value to set them on fire, however, you cannot set the player on fire.
The best way to set the player on fire via commands is to summon an arrow above their head, that's on fire. This is so that is can spread the fire to the player when it hits the player.
However, a player can just hold a shield pointing upwards, and this nullifies the arrow. It wouldn't work when I summoned the arrow inside the player's hitbox, only when it was above and fell slightly first.
My suggestion is a /fire or /setfire command, that can set any entity on fire, including players.
It would be a simple command, structured like:
/fire <selector> [<time>]
where the <time> has a default length if excluded, but can be specified in ticks (t) or seconds (s) for ease of use.
Edit: As a side note, a /damage command would also be good, as you would be able to damage players more specifically in the same tick between commands in function.
Please sign in to leave a comment.
3 Comments