Custom entity variable randomly going null.

Started by AGNAB on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom entity variable randomly going null.

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…
Wed, 05/31/2023 - 11:41

Local variables are cleared after the procedure finishes executing once.

Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
that makes sense, i can…
Wed, 05/31/2023 - 11:59

that makes sense, i can probably just use nbt tags to work around it

thank you