Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.20 support? #118

Open
MeexReay opened this issue Nov 13, 2023 · 12 comments
Open

1.20 support? #118

MeexReay opened this issue Nov 13, 2023 · 12 comments

Comments

@MeexReay
Copy link

love this library, pls 1.20 support

@derklaro
Copy link
Collaborator

There is already full 1.20 support in v3 🙂

@Panda260
Copy link

also 1.20.4 Support?

@derklaro
Copy link
Collaborator

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

@Cryptite
Copy link
Contributor

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

@derklaro
Copy link
Collaborator

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.

@Cryptite
Copy link
Contributor

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

@derklaro
Copy link
Collaborator

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

@Cryptite
Copy link
Contributor

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

@derklaro
Copy link
Collaborator

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?

@Cryptite
Copy link
Contributor

Cryptite commented Feb 28, 2024

Collection<EntityStatus> statuses = Set.of(EntityStatus.SWIMMING);
npc.changeMetadata(EntityMetadataFactory.entityStatusMetaFactory(), statuses).schedule(player);

@derklaro
Copy link
Collaborator

Can you try using FLYING_WITH_ELYTRA?

@Cryptite
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants