Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Mobs:
- Section 1:
- execute as @e[tag=missile,type=minecraft:armor_stand] at @s run tp @s ^ ^ ^0.6 facing entity @e[sort=nearest,name=targeted,limit=1]
- execute as @e[tag=missile,type=minecraft:armor_stand] at @s if entity @e[name=targeted,distance=..1] run summon tnt
- execute as @e[tag=missile,type=minecraft:armor_stand] at @s run particle minecraft:explosion ~ ~ ~ 0.1 0.1 0.1 1 10 normal @a
- execute as @e[tag=missile,type=minecraft:armor_stand] at @s if entity @e[name=targeted,distance=..1] run kill @s
- execute unless entity @e[name=targeted] run kill @e[type=minecraft:armor_stand,tag=missile]
- Section 2:
- execute if entity @e[name=targeted] unless entity @e[type=minecraft:armor_stand,tag=missile] run summon minecraft:armor_stand ~ ~5 ~ {Tags:["missile"],Invisible:1}
- Players:
- Section 1:
- execute as @e[tag=missileP,type=minecraft:armor_stand] at @s run tp @s ^ ^ ^0.6 facing entity @p[tag=targeted]
- execute as @e[tag=missileP,type=minecraft:armor_stand] at @s if entity @e[tag=targeted,distance=..1] run summon tnt
- execute as @e[tag=missileP,type=minecraft:armor_stand] at @s run particle minecraft:explosion ~ ~ ~ 0.1 0.1 0.1 1 10 normal @a
- execute as @e[tag=missileP,type=minecraft:armor_stand] at @s if entity @a[tag=targeted,distance=..1] run kill @s
- execute unless entity @e[tag=targeted] run kill @e[type=minecraft:armor_stand,tag=missileP]
- execute unless entity @e[tag=missileP] run tag @a remove targeted
- Section 2:
- tag @p[distance=5..] add targeted
- summon minecraft:armor_stand ~ ~5 ~ {Tags:["missileP"],Invisible:1}
- If you're not coming from my video, you can check it out here: https://youtu.be/_Bk97WtG0_k
- Or just put everything on repeat except for Players Section 2, which should be on impulse. To run it, rename mobs as targeted to target them and activate the impulse command block to target the closest player.
Add Comment
Please, Sign In to add comment