spawn/despawn entity if player enter a square cube

Started by dementia on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
spawn/despawn entity if player enter a square cube

how to make an NPC appear when player entering a square cube, and this NPC disappears when exiting. I just did something similar, but if I enter the cube again, it won't appear.
(I don't think I've figured out how to properly insert entity into despawn)
despawn
spawn

Joined Nov 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I noticed that after the…
Wed, 11/19/2025 - 08:37

I noticed that after the trigger is triggered, all mobs despawn and I can't create new ones. I still can't figure out how to correctly specify an entity in "despawn"

Joined Nov 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I fixed this by adding…
Wed, 11/19/2025 - 08:48

I fixed this by adding despawn to the NPC settings "on entity tick update"