Advertisement
Lmeagno

(2014, Dec 1) - Telepoter

Dec 1st, 2014
380
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.45 KB | None | 0 0
  1.  
  2. /scoreboard objectives add Telepot dummy
  3.  
  4.  
  5. -------------------------------------------------------------------------------------------------
  6. TELEPOTER TIMER
  7. -------------------------------------------------------------------------------------------------
  8. /execute @e[type=ArmorStand] ~ ~-1 ~ detect ~ ~ ~ flower_pot 0 /scoreboard players add @a[r=0] Telepot 1
  9.  
  10. /execute @a[score_Telepot_min=1] ~ ~ ~ detect ~ ~ ~ air 0 /scoreboard players reset @p Telepot
  11.  
  12. /execute @e[type=ArmorStand,name=!ArmorStand] ~ ~ ~ detect ~ ~-1 ~ air 0 /kill @e[r=0,c=1]
  13.  
  14.  
  15. -------------------------------------------------------------------------------------------------
  16. SET UP TELEPOTER (Copy per flower pot item)
  17. -------------------------------------------------------------------------------------------------
  18. /execute @a[score_Telepot_min=100,score_Telepot=100] ~ ~1 ~ /execute @e[type=ArmorStand,name=-O-,r=0] ~ ~-1 ~ /tp @a[r=0,score_Telepot_min=100,score_Telepot_min=100] @e[type=ArmorStand,name=-O-,c=-1]
  19.  
  20. /execute @a ~ ~ ~ /testforblock ~ ~ ~ flower_pot 0 {Item:minecraft:sapling,Data:0}
  21.  
  22. /execute @a ~ ~1 ~ detect ~ ~-1 ~ flower_pot 0 /kill @e[type=ArmorStand,r=0,c=1]
  23.  
  24. /execute @a ~ ~1 ~ detect ~ ~-1 ~ flower_pot 0 /summon ArmorStand ~ ~ ~ {Invulnerable:1,Invisible:1,Small:1,NoGravity:1,CustomNameVisible:0,CustomName:"-O-"}
  25.  
  26.  
  27. -------------------------------------------------------------------------------------------------
  28. SPEECIAL EFFEECTS
  29. -------------------------------------------------------------------------------------------------
  30. /execute @e[type=ArmorStand] ~ ~ ~ detect ~ ~-1 ~ flower_pot 0 /particle portal ~ ~-1.2 ~ .2 0 .2 0 1
  31.  
  32. /execute @a[score_Telepot_min=70,score_Telepot=110] ~ ~ ~ /particle flame ~ ~1 ~ .2 1.5 .2 .05 10
  33.  
  34. /effect @a[score_Telepot_min=20,score_Telepot=100] minecraft:nausea 4 0 true
  35.  
  36. /execute @a[score_Telepot_min=70,score_Telepot=109] ~ ~ ~ /playsound mob.cow.step @p ~ ~ ~ 1 2 1
  37.  
  38. /tp @a[score_Telepot_min=70,score_Telepot=109] ~ ~ ~ ~200 10
  39.  
  40.  
  41. -------------------------------------------------------------------------------------------------
  42. EXPERIMENTAL ARMORSTAND DEALIO
  43. -------------------------------------------------------------------------------------------------
  44. /scoreboard objectives add PlaceStand stat.useItem.minecraft.armor_stand
  45.  
  46. /execute @a[score_PlaceStand_min=1] ~ ~ ~ /entitydata @e[type=ArmorStand,r=5,c=1] {CustomName:"ArmorStand",ShowArms:1}
  47.  
  48. /scoreboard players reset @a[score_PlaceStand_min=1] PlaceStand
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement