/scoreboard objectives add shot stat.useItem.minecraft.carrot_on_a_stick
Adds a score that increases when right-clicking a carrot on a stick
/execute @a[score_shot_min=1,score_shot=1] ~ ~ ~ summon ArmorStand ~ ~ ~ {ArmorItems:[{},{},{id:elytra},{}],CustomName:"bullet",Invisible:1b}
Executes a player with the score setted at 1 the action to summon an invisible armor stand that is wearing an elytra and is named bullet
/execute @p[score_shot_min=1] ~ ~ ~ tp @e[type=ArmorStand,name=bullet,r=0] @p[score_shot_min=1]
Teleports an armor stand named bullet to a player with the score settled at one. This is used to detect player's rotation.
/scoreboard players set @a[score_shot_min=1,score_shot=1] shot 0
Resets the score of all the players with the score settled at one.
/execute @a ~ ~ ~ execute @e[type=ArmorStand,name=bullet,r=0] ~ ~ ~ tp @e[type=ArmorStand,name=bullet,r=0] ~ ~5 ~
Teleports an armor stand five block up. If you want it to go farther, just increase the number
/entitydata @e[type=ArmorStand,name=bullet] {FallFlying:1b}
Changes the data of all the armor stands called bullet at flying.
/scoreboard players set @e[type=ArmorStand,name=bullet] shot 1 {OnGround:1b}
Sets at one the score of all the "bullets" which are on the ground
/execute @e[type=ArmorStand,name=bullet] ~ ~ ~ summon FallingSand ~ ~ ~ {TileID:51,Time:1b}
Executes all the bullets the action to summon a falling sand with fire id. To know items' id press f3+h
/execute @e[type=ArmorStand,name=bullet,score_shot_min=1] ~ ~ ~ summon Creeper ~ ~ ~ {ExplosionRadius:10b,Ignited:1b,Fuse:0s}
Executes all the "bullets" with the score settled at one the action to summon a creeper that explodes. If you want a bigger/smaller explosion change the "10b" value
/execute @e[type=Creeper] ~ ~ ~ kill @e[type=ArmorStand,name=bullet,r=1]
Executes all the creepers the action to kill all the "bullets in the range of a block"
Recent Comments