• 4/8/22 7:27 am
- 3.6k views • 1 today
- 1
- 1
- 10
15
Custom arrows with only 2 command blocks!!
Hi my name is AmirhossainJ123 and today I am gonna teach you how to make custom arrows!!
Well first let's understand what is it?
Custom arrow is an arrow which can mine or place blocks or strike lightning or summon things like tnt or whatever you like
First we need to detect if the arrow hits the ground and summon tnt:
Repeating always active unconditional command block: execute as @e[type=arrow] if entity @s[nbt={inBlockState:{}}] at @s run summon tnt
Then we should delete the arrow!
Repeating always active unconditional command block: execute as @e[type=arrow] if entity @s[nbt={inBlockState:{}}] run kill @s
It was as easy as that, we can also change the code and make it mine for us
Change the first command block to: execute as @e[type=arrow] if entity @s[nbt={inBlockState:{}}] at @s run fill ~-5 ~-5 ~-5 ~5 ~5 ~5 air destroy
Or we can change it to lightning: execute as @e[type=arrow] if entity @s[nbt={inBlockState:{}}] at @s run summon lightning bolt
Or we can summon nuke!
execute as @e[type=arrow] if entity @s[nbt={inBlockState:{}}] at @s run summon creeper ~ ~ ~ {Fuse:0,ExplosionRadius:50}
We can do whatever we want!
Also if you want to use it in a datapack you can call another function to delete and summon it + you can check if the player is holding a certain arrow then if its custom summon things... how to check? Well
execute if entity @s[nbt={SelectedItem:{tag:{Blow:1}}}] run summon tnt
Pls subscribe and help us and join our discord server too
You won't regret it I promise!
Hi my name is AmirhossainJ123 and today I am gonna teach you how to make custom arrows!!
Well first let's understand what is it?
Custom arrow is an arrow which can mine or place blocks or strike lightning or summon things like tnt or whatever you like
First we need to detect if the arrow hits the ground and summon tnt:
Repeating always active unconditional command block: execute as @e[type=arrow] if entity @s[nbt={inBlockState:{}}] at @s run summon tnt
Then we should delete the arrow!
Repeating always active unconditional command block: execute as @e[type=arrow] if entity @s[nbt={inBlockState:{}}] run kill @s
It was as easy as that, we can also change the code and make it mine for us
Change the first command block to: execute as @e[type=arrow] if entity @s[nbt={inBlockState:{}}] at @s run fill ~-5 ~-5 ~-5 ~5 ~5 ~5 air destroy
Or we can change it to lightning: execute as @e[type=arrow] if entity @s[nbt={inBlockState:{}}] at @s run summon lightning bolt
Or we can summon nuke!
execute as @e[type=arrow] if entity @s[nbt={inBlockState:{}}] at @s run summon creeper ~ ~ ~ {Fuse:0,ExplosionRadius:50}
We can do whatever we want!
Also if you want to use it in a datapack you can call another function to delete and summon it + you can check if the player is holding a certain arrow then if its custom summon things... how to check? Well
execute if entity @s[nbt={SelectedItem:{tag:{Blow:1}}}] run summon tnt
Pls subscribe and help us and join our discord server too
You won't regret it I promise!
More like this
5542191
6



Have something to say?
execute if entity @s[nbt={SelectedItem:{tag:{Blow:1}}}] run summon tnt"
This wouldnt work since if it would be run as the player it would summon it at the player and if it was run at the arrow it wouldn’t have the SelectedItem nbt tag.
inBlockState is much more accurate than Inground
So...
So we can use both ;-;