Advertisement
Claof

[One Command, 1.12] Unbreakable Elytra

Jul 29th, 2017
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. To create an unbreakable elytra, just follow these steps:
  2.  
  3. 1: Copy the code into a command block, and activate it.
  4. 2: Place down a block of diamond.
  5. 3: Drop down any elytra
  6. 4: You'll lose the diamond block, but in return, your elytra will never break!
  7.  
  8.  
  9.  
  10.  
  11.  
  12. /summon falling_block ~ ~1 ~ {Block:"repeating_command_block",Time:1,TileEntityData:{auto:1b,Command:"/execute @e[name=item.item.elytra] ~ ~ ~ detect ~ ~-1 ~ minecraft:diamond_block 0 /summon armor_stand ~ ~ ~ {CustomName:elytra,NoGravity:1}"},Passengers:[{id:"falling_block",Block:"repeating_command_block",Time:1,TileEntityData:{auto:1b,Command:"/execute @e[type=armor_stand,name=elytra] ~ ~ ~ /kill @e[name=item.item.elytra,r=1]"},Passengers:[{id:"falling_block",Block:"repeating_command_block",Time:1,TileEntityData:{auto:1b,Command:"/execute @e[type=armor_stand,name=elytra] ~ ~ ~ /give @p elytra 1 0 {Unbreakable:1}"},Passengers:[{id:"falling_block",Block:"repeating_command_block",Time:1,TileEntityData:{auto:1b,Command:"/execute @e[type=armor_stand,name=elytra] ~ ~ ~ /setblock ~ ~-1 ~ air 0 replace diamond_block"},Passengers:[{id:"falling_block",Block:"repeating_command_block",Time:1,TileEntityData:{auto:1b,Command:"/kill @e[type=armor_stand,name=elytra]"},Passengers:[{id:"falling_block",Block:"command_block",Time:1,TileEntityData:{auto:1b,Command:"/gamerule commandBlockOutput false"}}]}]}]}]}]}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement