Arqade Asked on July 5, 2021
Here is some context: I’ve made some command block code to make lightning arrows. However, I want the arrows to instantaneously despawn after an arrow is shot. How do I do this?
Here is the command block code if you need it.
execute at @e[type=minecraft:arrow] run summon minecraft:lightning_bolt
/execute as @e[type=minecraft:arrow] run data modify @s {Life:0}
This in another command block should instantly destroy every arrow. A similar command using /kill
instead should also have the same effect.
Correct answer by Ray Wu on July 5, 2021
Try using the life
tag when summoning it.
The command would look like this:
/summon arrow ~ ~ ~ {life:1100}
.
You may need to change the number to alter its lifespan.
Answered by kusobito on July 5, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP