Started by
AGNAB
on
Topic category: Help with Minecraft modding (Java Edition)
hiya, currently my code basically scans for an unclaimed entity, then follows it
but for some reason, after the scanning occurs (which works just fine) it just kind of clears the follow variable and sets it to null and i'm not sure why
here is the code: https://imgur.com/a/Gk5pkGD
Local variables are cleared after the procedure finishes executing once.
that makes sense, i can probably just use nbt tags to work around it
thank you
Please read https://mcreator.net/wiki/variables