-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
disguise api #10478
disguise api #10478
Conversation
ce89b24
to
9c2de57
Compare
9c2de57
to
c37d61b
Compare
0271101
to
d38b35d
Compare
cf41890
to
9d0fd05
Compare
95a1c30
to
953e97a
Compare
953e97a
to
f2c75a3
Compare
f3e843a
to
3c90ec6
Compare
659c3a7
to
6b3ddb0
Compare
Hey @yannicklamprecht, since I see you rebasing this PR all the time: you really don't need to do that for this particular one. |
|
6b3ddb0
to
5ce8bc8
Compare
and generate maps to allow entity metadata syncher validation
5ce8bc8
to
e21298d
Compare
Post hardfork MR: #11793 |
relates to #10584
Adds a simple disguise api that also makes sure that invalid entity data, not belonging to the type that is faked, is filtered.
It also adds a server generator module to reduce maintenance of the entity data filter.
tldr; The API provides a way to disguise any entity as another or a player with having the possibility to interact with the entity like with any others. The big advantage is that you've the whole vanilla logic and Mob Goal and Pathfinding included without hassle.
Testing the changes can be done using the following snippet:
https://gist.github.com/yannicklamprecht/639acba127a54f5617e1281f099b7aff
TODO:
figure out how to get teams working with real teams, client side ones worked in my forkNon issue just use theEntity#getName()
instead of theEntity#getScoreboardEntryName()
Effective loc: