Maps Redstone Device

Exploding Barrels [1.8]

  • 1.3k views 0 today
  • save_alt 31 downloads
Progress
100% complete
moto_man_gp
Lvl 31Artisan System
19
[Command Below] \/

Have you ever wanted that iconic red barrel that explodes when you shoot it, in minecraft?
Well now its possible!
Don't forget to use the resource pack included in the save folder, to add the three barrels that you see in the video.


 undefined

fast clock:
* setblock ~1 ~ ~ redstone_block 0 destroy
* setblock ~ ~1 ~ air

initial arrow in barrel check:
* testfor @e[type=Arrow] {inData:14b}

check if barrel is next to the arrow:
* execute @e[type=Arrow,c=-1] ~ ~ ~ testforblock *SIDE* jukebox 14
--- * top: ~ ~-1 ~
--- * left: ~-1 ~ ~
--- * right: ~1 ~ ~
--- * back: ~ ~ ~-1
--- * front: ~ ~ ~ 1

set fire to the top:
* execute @e[type=Arrow,c=-1] ~ ~ ~ fill ~-1 ~1 ~-1 ~1 ~2 ~1 fire 0 keep

set fire to the ground:
* execute @e[type=Arrow,c=-1] ~ ~ ~ setblock *RANDOM* fire 0 keep
--- * ~(-3 to 3) ~(0 to -2) ~(-3 to 3)
--- * eg. ~3 ~-1 ~-2

make the explosion (even works in peaceful):
* execute @e[type=Arrow,c=-1] ~ ~ ~
summon Creeper ~ ~1 ~ {Fuse:0,ExplosionRadius:2,CustomName:"bomb",
ActiveEffects:[{Id:14,Amplifier:2,Duration:10000000}]}
--- * ExplosionRadius: this is the power of the explosion

destroy the barrel (for non destrictive barrels):
* execute @e[type=Arrow,c=-1] ~ ~ ~ fill ~-1 ~-2 ~-1 ~1 ~2 ~1 air 0 replace jukebox 14

kill the arrow:
* kill @e[type=Arrow,c=-1]

destructive mode on/off:
* gamerule mobGriefing true [on]
* gamerule mobGriefing false [off]

to make barrels where you are standing, paste this in chat:
* /fill ~ ~ ~ ~ ~1 ~ jukebox 14

More like this

  Have something to say?

Welcome