#Tagging Attacked entities
1 messages · Page 1 of 1 (latest)
Your best bet would be to use a script. I don't know the exact details, but you would most likely need to use world.afterEvents.entityHitEntity (docs here: https://learn.microsoft.com/en-us/minecraft/creator/scriptapi/minecraft/server/entityhitentityafterevent?view=minecraft-bedrock-stable). In there, you can check if the attacker is holding your item, and then add the tag to the hit entity if the attacker is
yeah you'll have a easier time using scripts for it than using alternative methods which are usually very bulky in comparison
I do not know how to begin scripting I am yet to adventure that path but, can you provide me any beginner stuff that relates to that?
Like sample codes
also just to clarify
MCPE uses java script right?
not java