Giter Site home page Giter Site logo

1.20 support? about npc-lib HOT 12 OPEN

MeexReay avatar MeexReay commented on August 11, 2024
1.20 support?

from npc-lib.

Comments (12)

derklaro avatar derklaro commented on August 11, 2024

There is already full 1.20 support in v3 🙂

from npc-lib.

Panda260 avatar Panda260 commented on August 11, 2024

also 1.20.4 Support?

from npc-lib.

derklaro avatar derklaro commented on August 11, 2024

Should be, but there might be some new entity poses missing. Everything else should work fine.

from npc-lib.

Cryptite avatar Cryptite commented on August 11, 2024

Indeed i haven't had luck with poses in 1.20.4, unsure what's changed.

from npc-lib.

derklaro avatar derklaro commented on August 11, 2024

I've just took a look and entity pose meta is still the same in 1.20.4, except some new poses are missing. Gonna add them later.

from npc-lib.

Cryptite avatar Cryptite commented on August 11, 2024

Can you provide a code example on how to use them? Even using old poses, I've tried a few ways to get them to send to players and none seem to work

from npc-lib.

derklaro avatar derklaro commented on August 11, 2024

Well, if you're running 1.20.4, just set the sneak meta. This will indirectly cause a pose update to sneaking.

from npc-lib.

Cryptite avatar Cryptite commented on August 11, 2024

Yeah the sneakingMetaFactory() one works, but the previous way of providing a Collection<EntityStatus> to a entityStatusMetaFactory() is what doesn't work.

from npc-lib.

derklaro avatar derklaro commented on August 11, 2024

Weird, a few days ago I've tried to set the elytra flying status without any issues... Can you pass the code snippet you're using to set the entity status?

from npc-lib.

Cryptite avatar Cryptite commented on August 11, 2024
Collection<EntityStatus> statuses = Set.of(EntityStatus.SWIMMING);
npc.changeMetadata(EntityMetadataFactory.entityStatusMetaFactory(), statuses).schedule(player);

from npc-lib.

derklaro avatar derklaro commented on August 11, 2024

Can you try using FLYING_WITH_ELYTRA?

from npc-lib.

Cryptite avatar Cryptite commented on August 11, 2024

Yeah looks like that works but only when you approach npcs close enough that they turn towards you.

from npc-lib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.