#(f45967) Is there a way for npcs to lure animals around?
25 messages · Page 1 of 1 (latest)
(f45967) Is there a way for npcs to lure animals around?
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.
since if i just make the npc hold whwat it doesn’t work
no it doesn't really work
another question: I'm trying to use the /npc villager command to change the profession, but it just stays without one
third extra question, but i have the "open doors" set to true in the config, but my npcs still cant open them?
you need to have new finder enabled as well
make a separate thread
ok
The orignal question still hasn't been answered?
Please be patient, I have a full time job
Sorry, didn't mean to rush you
I've did some research on this, the lure event was cancelled if "TARGETABLE" NPC metadata is false. So just use "/npc targetable" command to make your NPC targetable. But monsters can also target them if you do so!
If you need more customisation then you'll have to write some code listening on EntityTargetNPCEvent just like "if targeted entity is your NPC and the event.getEntity() returns correct type of entity then set cancelled to false"
@frosty juniper Hope these words works for you
"/npc playerlist" is still required for this
Thanks, I forgot that lure works with entity targeting.
So you will need
/npc playerlist
And
/npc targetable or /npc vulnerable
Yes but I've found that EntityTargetNPCEvent did not work as expected, it should be cancellable but it didn't. I'm making a PR to fix it.
"/npc vulnerable" is not required if the NPC should be invulnerable. Actually I thinks the behaviour that the mobs tried to attack an invulnerable entity is really strange.
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.)
@frosty juniper