#(wwwwhip) NPC stops navigating to target when no players around around/online.

35 messages · Page 1 of 1 (latest)

mint crater
#

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.

lost bluffBOT
#

(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>

robust flax
#

@mint crater probably need to increase the activation range / simulation distance

#

are you using API?

mint crater
#

Yeah I am, not sure if I put it in the right category. I'll try that now, thanks.

#

No that didn't work

robust flax
#

what did you change?

mint crater
#

I tried setting it to both the target (a player npc) and the dragon

robust flax
#

increase tracking range as well

mint crater
#

the dragon just despawns now

#

data.setPersistent(NPC.Metadata.TRACKING_RANGE, Integer.MAX_VALUE);

#

@robust flax

robust flax
#

!rule 3

candid owlBOT
# robust flax !rule 3
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.

robust flax
#

@mint crater if it's despawning, you need to make sure the chunk is loaded

mint crater
robust flax
#

@mint crater disable reply ping please

#

there's metadata to keep chunk load

mint crater
#

Actually I had the chunk load meta data on already

robust flax
#

ok, so why is the chunk unloading?

mint crater
#

For some reason even if the chunk is loaded the dragon won't pathfind

#

I'll just double check now again

robust flax
#

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

mint crater
#

Got it working. This can be closed. Thanks

wicked lodgeBOT
#
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

oblique kite
#

You can close it yourself