#(Butcher116) Can I use my npc to feed animals(so they can breed)?

45 messages · Page 1 of 1 (latest)

shut wyvern
#

Hi! I'm very new to denizen and I was wondering if I can use denizen to make my npc feed animals.

ripe pendantBOT
#

(Butcher116) Can I use my npc to feed animals(so they can breed)?

#

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>

shut wyvern
#

I know there is a "feed" command. But I don't know how to target an npc to a mob entity(such as cow or pig)

plush dirge
#

but you have to think strategically how you want it to happen

#

NPCs are like entities; they aren't always spawned

#

and they can't actually feed entities

#

but you can replicate the concept by having the animals be "fed" when the NPC is both:

  • near the entity
  • spawned
#

when players aren't around the NPC or the entity, nothing actually happens; theyre unspawned and technically don't exist in the world at that second

shut wyvern
#

wow that's a great idea, I never thought of that

plush dirge
#

you can just have them do whatever you expect to happen when that time occurs

#

and when players are near, then both entities can exist

#

you can have them probably walk to them, animate an arm swing with the food in their hand, and make the feeding stuff happen

shut wyvern
#

If I want to make the animals be "fed", is there any command to make animals "fed"?

#

yes a fake animation! very nice thinking hahaha. this is so clever!

hearty kindle
#

!m breed

candid oracleBOT
#
Possible Confusion

Did you mean to search for command feed?

hearty kindle
#

!m entitytag.breed

candid oracleBOT
# hearty kindle !m entitytag.breed

Sets whether the entity is trying to mate with another of its kind.
The entity must be living and an animal.

Object

EntityTag

Input

ElementTag(Boolean)

Tags

<EntityTag.breeding> Returns whether the animal entity is trying to mate with another of its kind.

hearty kindle
#

^ can use this to trigger breeding

keen bough
#

dont forget the heart particles

#

!c playeffect

candid oracleBOT
# keen bough !c playeffect
Group

world

Syntax

playeffect [effect:<name>] [at:<location>|...] (data:<#.#>) (special_data:<data>) (visibility:<#.#>) (quantity:<#>) (offset:<#.#>,<#.#>,<#.#>) (targets:<player>|...) (velocity:<vector>)

Short Description

Plays a visible or audible effect at the location.

Description

Allows the playing of particle effects anywhere without the need of the source it comes from originally.
The particles you may use, can come from sources such as a potion effect or a portal/Enderman with their particles respectively.
Some particles have different data which may include different behavior depending on the data. Default data is 0
Specifying a visibility value changes the sight radius of the effect. For example if visibility is 15; Targeted players won't see it unless they are 15 b...

hearty kindle
#

I assume the mech will create them

keen bough
#

should, but good to point out anyways

shut wyvern
#

cool! thank you guys
and is there a command to trigger the breed and heart particles when an npc is around?
like, how do the program know if an npc is around an area or around some animals?

delicate mural
#

!guide

candid oracleBOT
plush dirge
#

an NPC proximity trigger, player enters|exits area, npc spawns are the first three that comes to mind

shut wyvern
#

ok then, thanks!👍 😆

noble elmBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please type </resolved:1028673926114594866> 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.)

#

Error: Missing thread owner. Did they leave the Discord? If so, just use </resolved:1028673926114594866> yourself.

hearty kindle
#

oh

#

he was banned lol

#

I guess i'll resolved this since the questions were answered