Started by
dementia
on
Topic category: Help with Minecraft modding (Java Edition)
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)

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"
I fixed this by adding despawn to the NPC settings "on entity tick update"