Hi, I'm making a plugin which includes a dragon spawning every once in a while and dropping falling blocks. The navigation of it was already tricky to do as I had to enable its AI, make it a target entity and teleport it around. Now my issue is, when there are no players around the dragon either spawns and stays still (until someone comes close to it), or it doesn't spawn. I want it to actually follow its path as if players are there.
#(wwwwhip) NPC stops navigating to target when no players around around/online.
35 messages · Page 1 of 1 (latest)
(wwwwhip) NPC stops navigating to target when no players around around/online.
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>
@mint crater probably need to increase the activation range / simulation distance
are you using API?
Yeah I am, not sure if I put it in the right category. I'll try that now, thanks.
No that didn't work
what did you change?
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
I tried setting it to both the target (a player npc) and the dragon
increase tracking range as well
the dragon just despawns now
data.setPersistent(NPC.Metadata.TRACKING_RANGE, Integer.MAX_VALUE);
@robust flax
!rule 3
Don't ping for help. https://denizenscript.com/discord_rules#rule3
"Pinging" refers to using an @ to alert somebody to your post.
Generally only ping somebody if your message is very specifically directed at them (meaning, only that person has anything to do with the information in your message, and it would be confusing who it was for without the ping).
If you're asking a question, please just make a forum post and ask.
If you have a bug report or a feature request, please just make a forum post about it.
If this is pulled up for you by a helper, your ping was unneeded.
If you're arguing about it, you're wrong.
This message is not a warning, it is just for your information.
@mint crater if it's despawning, you need to make sure the chunk is loaded
Sorry I didn't know
I'll try that
Actually I had the chunk load meta data on already
ok, so why is the chunk unloading?
For some reason even if the chunk is loaded the dragon won't pathfind
I'll just double check now again
you need to do some basic debugging yourself, I don't have time to reproduce your plugin setup
try to narrow it down a bit more and be more specific please
Got it working. This can be closed. Thanks
Thread Closing Reminder
Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.
If not yet resolved, please reply below to tell us what you still need.
(Note that if there is no reply for a few days, this thread will eventually close itself.)
@mint crater
You can close it yourself