Henry_Cat

Enderman commands

Mar 12th, 2020
11,509
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.06 KB | None | 0 0
  1. First of all, you need to run the following commands in the chat in order to make any of this work:
  2. /scoreboard objectives add teleport minecraft.used:minecraft.carrot_on_a_stick
  3.  
  4. To give yourself the enderman head, run this command (it's long enough that is has to be put into a command block):
  5. /give @p minecraft:player_head{AttributeModifiers:[{Slot:"head", AttributeName:"generic.maxHealth", Name:"generic.maxHealthg", Amount:20, Operation:0, UUIDLeast:1, UUIDMost:1}],SkullOwner:"MHF_enderman",tag:"enderman",display:{Name:'{"text":"Enderman Head","color":"dark_purple"}'}}
  6.  
  7. The following commands should always be running on a loop. The order of the commands within each section should be the same, but the sections themselves can be put in any order, run in separate chains, or omitted if you don't want the effect.
  8.  
  9. Give the teleport stick when you put on the helmet:
  10. /execute as @a unless entity @s[nbt={Inventory:[{Slot:103b,tag:{tag:"enderman"}}]}] run tag @s remove givenStick
  11. /execute as @a unless entity @s[nbt={Inventory:[{Slot:103b,tag:{tag:"enderman"}}]}] run clear @s minecraft:carrot_on_a_stick{display:{Name:'{"text":"Teleport","color":"dark_purple"}'}}
  12. /execute as @a[nbt={Inventory:[{Slot:103b,tag:{tag:"enderman"}}]}] unless entity @s[tag=givenStick] run give @s minecraft:carrot_on_a_stick{display:{Name:'{"text":"Teleport","color":"dark_purple"}'}}
  13. /tag @a[nbt={Inventory:[{Slot:103b,tag:{tag:"enderman"}}]}] add givenStick
  14.  
  15. Teleport stick makes you teleport:
  16. /execute at @a[scores={teleport=1},nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{display:{Name:'{"text":"Teleport","color":"dark_purple"}'}}}}] run tp @p ^ ^ ^16
  17. /execute at @a[scores={teleport=1},nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{display:{Name:'{"text":"Teleport","color":"dark_purple"}'}}}}] run spreadplayers ~ ~ 0 1 false @p
  18. /execute at @a[nbt={Inventory:[{Slot:103b,tag:{tag:"enderman"}}]},scores={teleport=1}] run playsound minecraft:entity.enderman.teleport master @p ~ ~ ~ 1 1
  19. /scoreboard players set @a teleport 0
  20.  
  21. Autododge arrows:
  22. /execute at @a[nbt={Inventory:[{Slot:103b,tag:{tag:"enderman"}}]}] positioned ~-0.8 ~-1 ~-0.8 if entity @e[type=arrow,dx=1.6,dy=2.5,dz=1.6,nbt={inGround:0b}] run spreadplayers ~ ~ 0 16 false @p
  23.  
  24. Damage from water:
  25. /execute at @a[nbt={Inventory:[{Slot:103b,tag:{tag:"enderman"}}]}] if block ~ ~ ~ water run effect give @p minecraft:instant_damage
  26. /execute at @a[nbt={Inventory:[{Slot:103b,tag:{tag:"enderman"}}]}] if block ~ ~ ~ water run playsound minecraft:entity.enderman.teleport master @p ~ ~ ~ 1 1
  27. /execute at @a[nbt={Inventory:[{Slot:103b,tag:{tag:"enderman"}}]}] if block ~ ~ ~ water run spreadplayers ~ ~ 0 16 false @p
  28.  
  29. Some questions that I know people are inevitably going to ask:
  30. Why don't you take damage when it rains?
  31. Because I don't know how to detect when it rains. If you do, let me know.
  32. Why am I not tall?
  33. Similarly, I am not really sure how I would make that happen, but I'm open to advice.
  34. Isn't this overpowered?
  35. Yeah probably but I made it just for messing around in creative, not necessarily for survival gameplay.
Advertisement
Add Comment
Please, Sign In to add comment