#(Butcher116) Can I use my npc to feed animals(so they can breed)?
45 messages · Page 1 of 1 (latest)
(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>
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)
yes
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
wow that's a great idea, I never thought of that
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
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!
!m breed
Did you mean to search for command feed?
!m entitytag.breed
Sets whether the entity is trying to mate with another of its kind.
The entity must be living and an animal.
EntityTag
ElementTag(Boolean)
<EntityTag.breeding> Returns whether the animal entity is trying to mate with another of its kind.
^ can use this to trigger breeding
world
playeffect [effect:<name>] [at:<location>|...] (data:<#.#>) (special_data:<data>) (visibility:<#.#>) (quantity:<#>) (offset:<#.#>,<#.#>,<#.#>) (targets:<player>|...) (velocity:<vector>)
Plays a visible or audible effect at the location.
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...
I assume the mech will create them
should, but good to point out anyways
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?
Have you read through the beginners guide? There are several ways to achieve that so there is no real answer.
!guide
View the Denizen Beginner's Guide at https://guide.denizenscript.com/
an NPC proximity trigger, player enters|exits area, npc spawns are the first three that comes to mind
ok then, thanks!👍 😆
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.