#(billetde20) Can't hook in Citizens

39 messages · Page 1 of 1 (latest)

fossil thunder
oblique wyvernBOT
#

(billetde20) Can't hook in Citizens

oblique wyvernBOT
#

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.

paper roseBOT
# hallow wraith !logcheck
Cannot Scan Attached File

Attached file has unrecognized or unsupported file extension. Use .log for log files, and .dsc for Denizen scripts.

hallow wraith
#

!pastejava @fossil thunder

paper roseBOT
fossil thunder
hallow wraith
paper roseBOT
#
Server Version

Paper version 1.21.1-119-master@7cd4f2c (2024-10-03T15:19:34Z)

Plugin Version(s)

Citizens v2.0.35-SNAPSHOT (build 3593) -- (Outdated build, behind by 9)

Checked For

@hallow wraith

UUID Version

4 (:white_check_mark: Online)

Other Noteworthy Plugin(s)

ProtocolLib v5.3.0-SNAPSHOT-732

Possibly Relevant Plugin(s)

Multiverse-Core v4.3.13 - Multi-world configuration plugins may affect NPCs in unexpected ways.

Potentially Bad Line(s)

Caused by: java.lang.IllegalArgumentException: Whilst parsing command on line 1: Failed to parse structure: Failed to get element ResourceKey[minecraft:item_modifier / ml_holomenu:page_change] at position 174: ...age_change<--[HERE] :warning: Log contains error messages.

hallow wraith
#

@fossil thunder do you have your gradle or pom?

fossil thunder
#

pom

#

yeah let me send it

hallow wraith
#

@fossil thunder hmm it seems correct, not sure why it's not working

fossil thunder
#

yeah i tried everything

#

this message dosen't get sent

#

even these

#

oh

#

OH

#

I THINK I MADE IT WORK

#

recompiling it made it work

#

does citizen have a pathfinding system?

hallow wraith
fossil thunder
#

okey

#

found it

fossil thunder
#
    private void moveToLocation(Location target) {
        if (!npc.isSpawned()) return;

        double speed = BASE_SPEED + (random.nextDouble() * SPEED_VARIANCE - SPEED_VARIANCE/2);

        npc.getNavigator().getLocalParameters()
                .speedModifier((float) speed)
                .distanceMargin(0.8);

        npc.getNavigator().setTarget(target);
        this.targetLocation = target;
    }

    public void cleanup() {
        if (movementTask != null) {
            movementTask.cancel();
        }
    }```
#

Making it walk faster but slower when it approch it goal

#

how to make a npc walk or run

hallow wraith
#

@fossil thunder you can set the speed, I think that's an odd way to change the speed

fossil thunder
#

what value should i put to make it loke running or walking

hallow wraith
hazy magnetBOT
#
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.)

#

@fossil thunder