Is there something wrong with my code?

Started by AndrewHG on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is there something wrong with my code?

hello! I created this piece of code but it seems to crash my game when i try to load into a world. Is there something wrong with this? am I being stupid

Get nearest entity can…
Tue, 03/26/2024 - 18:24

Get nearest entity can return NULL, as indicated with NULL text on the left.

You need to gett nearest entity, store it in local variable, and then do null check (e.g. by checking for entity type)

Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thank you! :D how do i do…
Tue, 03/26/2024 - 18:38

thank you! :D how do i do that?