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

disguise api #11793

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yannicklamprecht
Copy link
Contributor

pre hard fork PR: #10478

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

Effective loc:

600 loc in patches
3k+ loc generated filter classe
400 loc generator code copied from api-generator
100 loc for generating the filter class.

@yannicklamprecht yannicklamprecht requested a review from a team as a code owner December 23, 2024 19:48
@yannicklamprecht yannicklamprecht mentioned this pull request Dec 23, 2024
9 tasks
@kennytv kennytv added the type: feature Request for a new Feature. label Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature Request for a new Feature.
Projects
Status: Awaiting review
Development

Successfully merging this pull request may close these issues.

2 participants