entity crashes game

Started by ShadeCatt on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
entity crashes game

i recently made a geckolib model, and i gave it some special attacks. one of them, is like a ground slam that checks if the player is on the ground, and if so flings them up into the air. it works great, but if the entity does is when there isn't a player in the 20x20x20 detection range, it just crashes my game. someone please help. i'm almost completely sure it has to do with the null block thing


 

 

 

 

 

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
check if the entity player…
Tue, 08/06/2024 - 16:27

check if the entity player exists in that area before checking if is on the ground, you can use the "does entity exist" block

Joined Mar 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks so much, that worked.
Thu, 08/08/2024 - 00:48

Thanks so much, that worked.

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You're welcome 
Thu, 08/08/2024 - 01:00

You're welcome