• Hey! Register here to create your account, engage with the community, and talk about what is new!

Targetting specific entities on another thread

BlazeKnight

New member
Joined
Jun 29, 2023
Messages
10
Reaction score
2
Hello! So basically I spawned in a mob with one function, and now with this second function I have I want to delete that specific entity, any way to do this? I tried custom names but it didnt work, and I cant use last spawned entity since I spawned a few more in between these two functions.

Help would be appreciated :D
 

ARMcPro

Forum adept
Overlord
Joined
Oct 20, 2020
Messages
1,256
Reaction score
353
Hello! So basically I spawned in a mob with one function, and now with this second function I have I want to delete that specific entity, any way to do this? I tried custom names but it didnt work, and I cant use last spawned entity since I spawned a few more in between these two functions.

Help would be appreciated :D
instead of a custom name, you should use the entity's UUID, you can store the entity's uuid using the Game Value: UUID, just store it right after you spawn the entity and you can access it later by Select Entity By Name and the selection target will be the entity
 

BlazeKnight

New member
Joined
Jun 29, 2023
Messages
10
Reaction score
2
instead of a custom name, you should use the entity's UUID, you can store the entity's uuid using the Game Value: UUID, just store it right after you spawn the entity and you can access it later by Select Entity By Name and the selection target will be the entity
Thank you!
 
Top Bottom