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

Ride entity #36

Open
XakepSDK opened this issue Apr 2, 2017 · 3 comments
Open

Ride entity #36

XakepSDK opened this issue Apr 2, 2017 · 3 comments

Comments

@XakepSDK
Copy link

XakepSDK commented Apr 2, 2017

Is it possible to ride entity and controll via WASD?
I'm trying to do this, but i need method overriding in minecraft entity class.(EntityPig, method "g")

@InventivetalentDev
Copy link
Owner

I don't think the API has direct methods to allow entity riding yet.
However, you could just create your own entity class as described here and override the g method: https://github.com/InventivetalentDev/CompactNPCLib/wiki/Creating-custom-NPC-classes

@XakepSDK
Copy link
Author

XakepSDK commented Apr 3, 2017

It's easy to ride entity using addPassenger method from bukkit Entity interface, but if you wan't to control entity, you need to overwrite some methods, like "g" and remove "tame" system.
It will be really good, to make annotation for this.

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

No branches or pull requests

2 participants