Advertisement
TheRedSkorpion

Hand Grenade in Vanilla Minecraft

Jul 6th, 2014
1,354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.68 KB | None | 0 0
  1. Hand Grenade in Vanilla Minecraft
  2. By: TheRedSkorpion
  3. Planet Minecraft Profile: http://www.planetminecraft.com/member/theredskorpion/
  4. Planet Minecraft Page for this Current Project: http://www.planetminecraft.com/project/hand-grenade-in-vanilla-minecraft/
  5.  
  6. This pastebin contains all the commands that were used in the map. They activate one after the other. The ones that activate at the same time are grouped togheter
  7.  
  8. ---CONCUSSION GRENADE
  9. *Give the Concussion Grenade
  10. /give @p minecraft:firework_charge 1 0 {display:{Name:"Concussion Grenade"},HideFlags:63,ench:[{id:48,lvl:10}]}
  11.  
  12. *Add Objective
  13. /scoreboard objectives add concussionTimer dummy Concussion Grenade Timer
  14.  
  15.  
  16. *Start the timer (add +1 each pulse)
  17. /scoreboard players add @e[type=Item] concussionTimer 1 {Item:{id:"minecraft:firework_charge",tag:{display:{Name:"Concussion Grenade"},HideFlags:63,ench:[{id:48,lvl:10}]}}}
  18. *Start the timer for the unpickable copy
  19. /scoreboard players add @e[type=Item] concussionTimer 1 {Item:{id:"minecraft:firework_charge",tag:{display:{Name:"Copy Concussion Grenade"},HideFlags:63,ench:[{id:48,lvl:10}]}}}
  20.  
  21. *Test for the timer at 7 (Original)
  22. /testfor @e[type=Item,score_concussionTimer_min=7] {Item:{id:"minecraft:firework_charge",tag:{display:{Name:"Concussion Grenade"},HideFlags:63,ench:[{id:48,lvl:10}]}}}
  23. *Summmon an unpickable copy
  24. /execute @e[type=Item,score_concussionTimer_min=7] ~ ~ ~ /summon Item ~ ~ ~ {Item:{id:"minecraft:firework_charge",tag:{PickupDelay:32767,display:{Name:"Copy Concussion Grenade"},HideFlags:63,ench:[{id:48,lvl:10}]}}}
  25. *Kill the original item
  26. /kill @e[type=Item,score_concussionTimer_min=7]
  27.  
  28. *Test for the timer at 3 (Copy)
  29. /testfor @e[type=Item,score_concussionTimer_min=3] {Item:{id:"minecraft:firework_charge",tag:{display:{Name:"Copy Concussion Grenade"},HideFlags:63,ench:[{id:48,lvl:10}]}}}
  30. *Spawn TNT
  31. /execute @e[type=Item,score_concussionTimer_min=3] ~ ~ ~ /summon PrimedTnt ~ ~ ~
  32. *Kill the copy item
  33. /kill @e[type=Item,score_concussionTimer_min=3]
  34.  
  35.  
  36.  
  37. ---SMOKE GRENADE
  38. Give the Smoke Grenade
  39. /give @p minecraft:fireworks 1 0 {display:{Name:"Smoke Grenade"},HideFlags:63,ench:[{id:48,lvl:10}]}
  40.  
  41. Add Objective
  42. /scoreboard objectives add smokeTimer dummy Smoke Grenade Timer
  43.  
  44.  
  45. *Start the timer (add +1 each pulse)
  46. /scoreboard players add @e[type=Item] smokeTimer 1 {Item:{id:"minecraft:fireworks",tag:{display:{Name:"Smoke Grenade"},HideFlags:63,ench:[{id:48,lvl:10}]}}}
  47. *Start the timer for the unpickable copy
  48. /scoreboard players add @e[type=Item] smokeTimer 1 {Item:{id:"minecraft:fireworks",tag:{display:{Name:"Copy Smoke Grenade"},HideFlags:63,ench:[{id:48,lvl:10}]}}}
  49.  
  50. *Test for the timer at 7 (Original)
  51. /testfor @e[type=Item,score_smokeTimer_min=7] {Item:{id:"minecraft:fireworks",tag:{display:{Name:"Smoke Grenade"},HideFlags:63,ench:[{id:48,lvl:10}]}}}
  52. *Summmon an unpickable copy
  53. /execute @e[type=Item,score_smokeTimer_min=7] ~ ~ ~ /summon Item ~ ~ ~ {Item:{id:"minecraft:fireworks",tag:{PickupDelay:32767,display:{Name:"Copy Smoke Grenade"},HideFlags:63,ench:[{id:48,lvl:10}]}}}
  54. *Kill the original item
  55. /kill @e[type=Item,score_smokeTimer_min=7]
  56.  
  57. *Test for the timer at 3 (Copy)
  58. /testfor @e[type=Item,score_smokeTimer_min=3] {Item:{id:"minecraft:fireworks",tag:{display:{Name:"Copy Smoke Grenade"},HideFlags:63,ench:[{id:48,lvl:10}]}}}
  59. *Particle
  60. /execute @e[type=Item,score_smokeTimer_min=5] ~ ~ ~ /particle cloud ~ ~2 ~ 3 2 3 0.01 4800 @e[type=Item,score_smokeTimer_min=5]
  61.  
  62. *Test for the timer at 15 (Copy)
  63. /testfor @e[type=Item,score_smokeTimer_min=15] {Item:{id:"minecraft:fireworks",tag:{display:{Name:"Copy Smoke Grenade"},HideFlags:63,ench:[{id:48,lvl:10}]}}}
  64. *Kill the copy
  65. /kill @e[type=Item,score_smokeTimer_min=15]
  66.  
  67.  
  68.  
  69. ---STUN GRENADE
  70. *Give the Stun Grenade
  71. /give @p minecraft:blaze_rod 1 0 {display:{Name:"Stun Grenade"},HideFlags:63,ench:[{id:48,lvl:10}]}
  72.  
  73. *Add Objective
  74. /scoreboard objectives add stunTimer dummy Stun Grenade Timer
  75.  
  76.  
  77. *Start the timer (add +1 each pulse)
  78. /scoreboard players add @e[type=Item] stunTimer 1 {Item:{id:"minecraft:blaze_rod",tag:{display:{Name:"Stun Grenade"},HideFlags:63,ench:[{id:48,lvl:10}]}}}
  79. *Start the timer for the unpickable copy
  80. /scoreboard players add @e[type=Item] stunTimer 1 {Item:{id:"minecraft:blaze_rod",tag:{display:{Name:"Copy Stun Grenade"},HideFlags:63,ench:[{id:48,lvl:10}]}}}
  81.  
  82. *Test for the timer at 7 (Original)
  83. /testfor @e[type=Item,score_stunTimer_min=7] {Item:{id:"minecraft:blaze_rod",tag:{display:{Name:"Stun Grenade"},HideFlags:63,ench:[{id:48,lvl:10}]}}}
  84. *Summmon an unpickable copy
  85. /execute @e[type=Item,score_stunTimer_min=7] ~ ~ ~ /summon Item ~ ~ ~ {Item:{id:"minecraft:blaze_rod",tag:{display:{Name:"Copy Stun Grenade"},HideFlags:63,ench:[{id:48,lvl:10}]}}}
  86. *Kill the original item
  87. /kill @e[type=Item,score_stunTimer_min=7]
  88.  
  89. *Test for the timer at 3 (Copy)
  90. /testfor @e[type=Item,score_stunTimer_min=3] {Item:{id:"minecraft:blaze_rod",tag:{display:{Name:"Copy Stun Grenade"},HideFlags:63,ench:[{id:48,lvl:10}]}}}
  91. *Effect
  92. /execute @e[type=Item,score_stunTimer_min=3] ~ ~ ~ /effect @e[r=5] 9 15 1
  93. /execute @e[type=Item,score_stunTimer_min=3] ~ ~ ~ /effect @e[r=5] 15 15 1
  94. *Kill the copy item
  95. /kill @e[type=Item,score_stunTimer_min=3]
  96.  
  97.  
  98.  
  99. ---STING GRENADE
  100. *Give the Sting Grenade
  101. /give @p minecraft:stick 1 0 {display:{Name:"Sting Grenade"},HideFlags:63,ench:[{id:48,lvl:10}]}
  102.  
  103. *Add Objective
  104. /scoreboard objectives add stingTimer dummy Sting Grenade Timer
  105.  
  106.  
  107. *Start the timer (add +1 each pulse)
  108. /scoreboard players add @e[type=Item] stingTimer 1 {Item:{id:"minecraft:stick",tag:{display:{Name:"Sting Grenade"},HideFlags:63,ench:[{id:48,lvl:10}]}}}
  109. *Start the timer for the unpickable copy
  110. /scoreboard players add @e[type=Item] stingTimer 1 {Item:{id:"minecraft:stick",tag:{display:{Name:"Copy Sting Grenade"},HideFlags:63,ench:[{id:48,lvl:10}]}}}
  111.  
  112. *Test for the timer at 7 (Original)
  113. /testfor @e[type=Item,score_stingTimer_min=7] {Item:{id:"minecraft:stick",tag:{display:{Name:"Sting Grenade"},HideFlags:63,ench:[{id:48,lvl:10}]}}}
  114. *Summmon an unpickable copy
  115. /execute @e[type=Item,score_stingTimer_min=7] ~ ~ ~ /summon Item ~ ~ ~ {Item:{id:"minecraft:stick",tag:{display:{Name:"Copy Sting Grenade"},HideFlags:63,ench:[{id:48,lvl:10}]}}}
  116. *Kill the original item
  117. /kill @e[type=Item,score_stingTimer_min=7]
  118.  
  119. *Test for the timer at 3 (Copy)
  120. /testfor @e[type=Item,score_stingTimer_min=3] {Item:{id:"minecraft:stick",tag:{display:{Name:"Copy Sting Grenade"},HideFlags:63,ench:[{id:48,lvl:10}]}}}
  121. *Effect
  122. /execute @e[type=Item,score_stingTimer_min=3] ~ ~ ~ /effect @e[r=5] 2 10 1
  123. /execute @e[type=Item,score_stingTimer_min=3] ~ ~ ~ /effect @e[r=5] 4 10 1
  124. /execute @e[type=Item,score_stingTimer_min=3] ~ ~ ~ /effect @e[r=5] 18 10 1
  125. *Kill the copy item
  126. /kill @e[type=Item,score_stingTimer_min=3]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement