Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Hand Grenade in Vanilla Minecraft
- By: TheRedSkorpion
- Planet Minecraft Profile: http://www.planetminecraft.com/member/theredskorpion/
- Planet Minecraft Page for this Current Project: http://www.planetminecraft.com/project/hand-grenade-in-vanilla-minecraft/
- 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
- ---CONCUSSION GRENADE
- *Give the Concussion Grenade
- /give @p minecraft:firework_charge 1 0 {display:{Name:"Concussion Grenade"},HideFlags:63,ench:[{id:48,lvl:10}]}
- *Add Objective
- /scoreboard objectives add concussionTimer dummy Concussion Grenade Timer
- *Start the timer (add +1 each pulse)
- /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}]}}}
- *Start the timer for the unpickable copy
- /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}]}}}
- *Test for the timer at 7 (Original)
- /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}]}}}
- *Summmon an unpickable copy
- /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}]}}}
- *Kill the original item
- /kill @e[type=Item,score_concussionTimer_min=7]
- *Test for the timer at 3 (Copy)
- /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}]}}}
- *Spawn TNT
- /execute @e[type=Item,score_concussionTimer_min=3] ~ ~ ~ /summon PrimedTnt ~ ~ ~
- *Kill the copy item
- /kill @e[type=Item,score_concussionTimer_min=3]
- ---SMOKE GRENADE
- Give the Smoke Grenade
- /give @p minecraft:fireworks 1 0 {display:{Name:"Smoke Grenade"},HideFlags:63,ench:[{id:48,lvl:10}]}
- Add Objective
- /scoreboard objectives add smokeTimer dummy Smoke Grenade Timer
- *Start the timer (add +1 each pulse)
- /scoreboard players add @e[type=Item] smokeTimer 1 {Item:{id:"minecraft:fireworks",tag:{display:{Name:"Smoke Grenade"},HideFlags:63,ench:[{id:48,lvl:10}]}}}
- *Start the timer for the unpickable copy
- /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}]}}}
- *Test for the timer at 7 (Original)
- /testfor @e[type=Item,score_smokeTimer_min=7] {Item:{id:"minecraft:fireworks",tag:{display:{Name:"Smoke Grenade"},HideFlags:63,ench:[{id:48,lvl:10}]}}}
- *Summmon an unpickable copy
- /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}]}}}
- *Kill the original item
- /kill @e[type=Item,score_smokeTimer_min=7]
- *Test for the timer at 3 (Copy)
- /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}]}}}
- *Particle
- /execute @e[type=Item,score_smokeTimer_min=5] ~ ~ ~ /particle cloud ~ ~2 ~ 3 2 3 0.01 4800 @e[type=Item,score_smokeTimer_min=5]
- *Test for the timer at 15 (Copy)
- /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}]}}}
- *Kill the copy
- /kill @e[type=Item,score_smokeTimer_min=15]
- ---STUN GRENADE
- *Give the Stun Grenade
- /give @p minecraft:blaze_rod 1 0 {display:{Name:"Stun Grenade"},HideFlags:63,ench:[{id:48,lvl:10}]}
- *Add Objective
- /scoreboard objectives add stunTimer dummy Stun Grenade Timer
- *Start the timer (add +1 each pulse)
- /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}]}}}
- *Start the timer for the unpickable copy
- /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}]}}}
- *Test for the timer at 7 (Original)
- /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}]}}}
- *Summmon an unpickable copy
- /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}]}}}
- *Kill the original item
- /kill @e[type=Item,score_stunTimer_min=7]
- *Test for the timer at 3 (Copy)
- /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}]}}}
- *Effect
- /execute @e[type=Item,score_stunTimer_min=3] ~ ~ ~ /effect @e[r=5] 9 15 1
- /execute @e[type=Item,score_stunTimer_min=3] ~ ~ ~ /effect @e[r=5] 15 15 1
- *Kill the copy item
- /kill @e[type=Item,score_stunTimer_min=3]
- ---STING GRENADE
- *Give the Sting Grenade
- /give @p minecraft:stick 1 0 {display:{Name:"Sting Grenade"},HideFlags:63,ench:[{id:48,lvl:10}]}
- *Add Objective
- /scoreboard objectives add stingTimer dummy Sting Grenade Timer
- *Start the timer (add +1 each pulse)
- /scoreboard players add @e[type=Item] stingTimer 1 {Item:{id:"minecraft:stick",tag:{display:{Name:"Sting Grenade"},HideFlags:63,ench:[{id:48,lvl:10}]}}}
- *Start the timer for the unpickable copy
- /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}]}}}
- *Test for the timer at 7 (Original)
- /testfor @e[type=Item,score_stingTimer_min=7] {Item:{id:"minecraft:stick",tag:{display:{Name:"Sting Grenade"},HideFlags:63,ench:[{id:48,lvl:10}]}}}
- *Summmon an unpickable copy
- /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}]}}}
- *Kill the original item
- /kill @e[type=Item,score_stingTimer_min=7]
- *Test for the timer at 3 (Copy)
- /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}]}}}
- *Effect
- /execute @e[type=Item,score_stingTimer_min=3] ~ ~ ~ /effect @e[r=5] 2 10 1
- /execute @e[type=Item,score_stingTimer_min=3] ~ ~ ~ /effect @e[r=5] 4 10 1
- /execute @e[type=Item,score_stingTimer_min=3] ~ ~ ~ /effect @e[r=5] 18 10 1
- *Kill the copy item
- /kill @e[type=Item,score_stingTimer_min=3]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement