I'm working on a Sky PvP server using only command blocks! If a player dies to another player I want them to drop their items on death, but when they fall down from island, I want to keep their inventory. How can i do this using command blocks?
Minecraft – Teleport Player From Void To Spawn
minecraft-commandsminecraft-java-edition
Related Topic
- Minecraft – Location specific inventory retention in Minecraft
- Minecraft – Keeping inventory conditionally
- Minecraft 1.14.4 Teleport in multiplayer mode a different player relitive to them selfs from (Datapack) function called from command block
- Minecraft – How to detect whether a player has two of a specific item in their inventory, and drop one
Best Answer
On a clock, run these commands in this order:
Replace X Y Z with where you want them to be teleported back up to. The first command just gives a short resistance effect to stop the player from dying of fall damage.