dragnoz

White Fire snowball fireball

Sep 30th, 2014
2,254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. objectives needed:
  2.  
  3. /scoreboard objectives add Snowball stat.useItem.minecraft.snowball
  4. /scoreboard objectives add ammo dummy
  5. /scoreboard objectives add drop stat.drop
  6.  
  7.  
  8.  
  9. Detects if you have named lored snowball
  10. /scoreboard players add @a[score_Snowball_min=0,score_Snowball=1] Snowball 2 {SelectedItem:{id:minecraft:snowball,tag:{display:{Name:"WhiteFire",Lore:[Creates Fireball When Thrown]}}}}
  11.  
  12. Gives resistance if holding named lored snowball
  13. /effect @a[score_Snowball_min=2] minecraft:resistance 1 3
  14.  
  15. Summons Fireball when throwing snowball
  16. /execute @a[score_Snowball_min=2] ~ ~ ~ execute @e[type=Snowball,c=1] ~ ~ ~ summon Fireball ~ ~ ~ {Motion:[0.0,0.0,0.0],direction:[0.0,0.0,0.0],ExplosionPower:5}
  17.  
  18. Removes point from snowball
  19. /scoreboard players remove @a[score_Snowball_min=1] Snowball 1
  20.  
  21. Checks to see if you have snowball in inventory
  22. /scoreboard players set @a ammo 2 {Inventory:[{id:"minecraft:snowball",tag:{display:{Name:WhiteFire,Lore:[Creates Fireball When Thrown]}}}]}
  23.  
  24. Removes one point form snowball ammo
  25. /scoreboard players remove @a[score_ammo_min=1] ammo 1
  26.  
  27. when ammo = 0 set ammo to 50 (which will countdown)
  28. /scoreboard players set @a[score_ammo=0] ammo 50
  29.  
  30. When ammo 10 gives new fireball
  31. /give @a[score_ammo_min=10,score_ammo=10] minecraft:snowball 1 0 {display:{Name:WhiteFire,Lore:[Creates Fireball When Thrown]},ench:[{id:21,lvl:1}],HideFlags:1}
  32.  
  33. Kills items when palyer drops it on purpose
  34. /execute @a[score_drop_min=1] ~ ~ ~ kill @e[type=Item,r=3]
  35.  
  36. resets players drop score
  37. /scoreboard players set @a[score_drop_min=1] drop 0
  38.  
  39. gives Saturation
  40. /effect @a minecraft:saturation 1 1 true
  41.  
  42. gives regeneration
  43. //effect @a minecraft:regeneration 1 1 true
  44.  
  45.  
  46.  
  47.  
  48. /entitydata @e[r=5] {Invisible:1,Rotation:[10f,0.0f],CustomNameVisible:1}
Advertisement
Add Comment
Please, Sign In to add comment