dragnoz

Detecting type of tipped arrow

Jun 24th, 2016
421
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.52 KB | None | 0 0
  1. {damage:2.0d,inGround:1b}
  2.  
  3.  
  4.  
  5. {Potion:"minecraft:fire_resistance"}
  6.  
  7. {Potion:"minecraft:long_fire_resistance",inGround:1b}
  8.  
  9. testfor @e[type=Arrow] {Potion:"minecraft:water",inGround:1b,CustomPotionEffects:[0:{Id:17b,Amplifier:2b}]}
  10.  
  11. {Potion:"minecraft:thick",inGround:1b,CustomPotionEffects:[0:{Ambient:0b,ShowParticles:1b,Duration:2000,Id:17b,Amplifier:1b}]}
  12.  
  13.  
  14. /setblock ~ ~1 ~ minecraft:structure_block 1 replace {metadata:"",mirror:"NONE",powered:0b,author:"dragnoz",rotation:"NONE",posX:-10,mode:"LOAD",posY:-5,sizeX:20,posZ:-10,integrity:1.0f,showair:0b,name:"LBA-shape-diamond",id:"Structure",sizeY:20,sizeZ:20,showboundingbox:1b}
  15.  
  16. display:{Name:"Diamond Shape"}
  17.  
  18.  
  19. [13:31:45] The data tag did not change: {Potion:"minecraft:fire_resistance",inGround:1b,CustomPotionEffects:[0:{Id:17b,Amplifier:1b}]}
  20.  
  21. /give @p minecraft:tipped_arrow 10 0 {display:{Name:"Blue Paint",Lore:[Paint]},CustomPotionEffects:[{Id:17,Amplifier:1,Duration:0}],Potion:"minecraft:night_vision"}
  22.  
  23. /scoreboard players tag @e[type=Arrow,tag=!blue] add blue {Potion:"minecraft:night_vision",inGround:1b,CustomPotionEffects:[0:{Id:17b,Amplifier:1b}]}
  24.  
  25.  
  26. /scoreboard players tag @e[type=Arrow,tag=!black] add black {Potion:"minecraft:harming",inGround:1b,CustomPotionEffects:[0:{Id:17b,Amplifier:1b}]}
  27.  
  28. /scoreboard players tag @e[type=Arrow,tag=!paint] add paint {Potion:"minecraft:fire_resistance",inGround:1b,CustomPotionEffects:[0:{Id:17b,Amplifier:1b}]}
  29.  
  30. /give @p minecraft:tipped_arrow 10 0 {display:{Name:"Black Paint",Lore:[Paint]},CustomPotionEffects:[{Id:17,Amplifier:1,Duration:0}],Potion:"minecraft:harming"}
  31.  
  32.  
  33.  
  34. /scoreboard players tag @e[type=Arrow,tag=!paint] add paint {Potion:"minecraft:harming",inGround:1b,CustomPotionEffects:[0:{Id:17b,Amplifier:1b}]}
  35.  
  36. /scoreboard players tag @e[type=Arrow,tag=!paint] add paint {Potion:"minecraft:fire_resistance",inGround:1b,CustomPotionEffects:[0:{Id:17b,Amplifier:1b}]}
  37.  
  38.  
  39.  
  40.  
  41. the arrow XML for mcstacker
  42. <mode>
  43. <commandType>Give</commandType>
  44. <targetSelector>
  45. <target>nearest</target>
  46. <areaType>radius</areaType>
  47. <m>-1</m>
  48. </targetSelector>
  49. <Item>
  50. <id>tipped_arrow</id>
  51. <Count>10</Count>
  52. <ActiveEffects>
  53. <effect>
  54. <effectid>17</effectid>
  55. <Amplifier>1</Amplifier>
  56. <Duration></Duration>
  57. </effect>
  58. </ActiveEffects>
  59. <PotionChoice>fire_resistance</PotionChoice>
  60. <NamedItem>Yellow Paint</NamedItem>
  61. <Lore>Paint</Lore>
  62. </Item>
  63. </mode>
Add Comment
Please, Sign In to add comment