#(hygoww) How to make a NPC walking to a specific block
18 messages · Page 1 of 1 (latest)
(hygoww) How to make a NPC walking to a specific block
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 do that with help of an assignment and interact script. The assignment script is required to activate triggers and assigning the interact script. The interact script is to make the npc walking when a user clicks on it (click trigger).
!guide interact script
View the guide page 'What Do I Do: Interact Scripts (PARTIAL)' at: https://guide.denizenscript.com/guides/npcs/interact-scripts.html
You can make use of this simple example here. Instead of chat and zap you need to utilize the walk command.
!c walk
entity
walk (<entity>|...) [<location>/stop] (speed:<#.#>) (auto_range) (radius:<#.#>) (lookat:<location>)
Causes an entity or list of entities to walk to another location.
Causes an entity or list of entities to walk to another location.
Specify a destination location to walk to, or 'stop' to stop all walking.
Optionally, specify a "speed:<#.#>" argument to control the speed of the NPCs.
Optionally, specify "auto_range" to automatically set the path range for the walk instruction
(if not specified, an NPC will not be able to walk to a location outside of its existing path range, by default 25 blocks).
(Does not apply to non-NPC entities).
Note that in most cas...
View the guide page 'Your First Steps' at: https://guide.denizenscript.com/guides/first-steps/index.html
!guide the basics
View the guide page 'The Basics' at: https://guide.denizenscript.com/guides/basics/index.html
Feel free to ask if you need any more help, otherwise -
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.)
@carmine oracle