#(f45967) Is there a way for npcs to lure animals around?

25 messages · Page 1 of 1 (latest)

frosty juniper
#

I want to make a farmhand npc that will round up animals with a wheat in its hand, is there a way to do that?

trim canopyBOT
#

(f45967) Is there a way for npcs to lure animals around?

trim canopyBOT
#

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.

frosty juniper
#

since if i just make the npc hold whwat it doesn’t work

clever laurel
#

if you use /npc playerlist does it work?

#

@frosty juniper

frosty juniper
#

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

frosty juniper
#

third extra question, but i have the "open doors" set to true in the config, but my npcs still cant open them?

clever laurel
frosty juniper
#

ok

frosty juniper
#

The orignal question still hasn't been answered?

clever laurel
frosty juniper
#

Sorry, didn't mean to rush you

unkempt tusk
#

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

clever laurel
unkempt tusk
unkempt tusk
frank ploverBOT
#
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.)

#

@frosty juniper