I'm wracking my brain over something that might be obvious and I'm just missing it. When the holiday stuff came out in place of a patch, I immediately got to making it all like everyone else. I then saw those "living" gift boxes that you can kill for pixels. I made a good chunk of them, and thought I'd fill up a room full of bouncing boxes as a goofy thing. Turns out they despawn if you go too far away. I'm interested in "fixing" this, because it's not right that something you make and place just disappears. Furniture doesn't disappear, turrets don't despawn, and many enemies don't despawn if you move too far away, so why should these? The reason this is wracking my brain is because I can't figure out WHY they despawn. I've looked in their behavior.lua and their .monstertype files, but to no avail. I checked monsters that I know do not despawn like the cleaning robots and the Po, but nothing in the files say anything about spawning. I've looked through all the scripts, and again found nothing. How would one go about making unique monsters not despawn? I'm no pro at coding, nor am I even a novice, but I know that I can't see anything that controls spawning and despawning in any of the files.
NPCS (.npctype) can be made to not despawn by setting "persistent" : "Boolean", to true inside the npctype file
I knew it was something simple I was overlooking. Thanks! EDIT: That line isn't in the code for the gift monsters. Do I simply add it?