-
-
Notifications
You must be signed in to change notification settings - Fork 641
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
Implement the enchantment table #32
Comments
This video says that the text in an enchantment table does not effect the result enchantments. That should make this issue a bit easier. |
I remember seeing that information in the official wiki already, quite a long time ago; also, there's nothing in the protocol to actually transmit the texts, only the XP levels are sent: http://wiki.vg/Protocol#Window_Property |
The text is generated by the client using letters from the Standard Galactic Alphabet (true). The server doesn't need to worry about it. |
I'm copying this text here from the forum, slightly updated and re-worded, 'cause I think it might come in handy. When a player places an item in the enchantment slot, the server initializes a list of enchantments applicable to that specific item type by defaults. Then it asks plugins (by using a hook) to modify the list if they wish to do so. HOOK_GET_APPLICABLE_ENCHANTMENTS: Called when the player places an item in the enchantment table's slot
Return values:
HOOK_ENCHANTING_ITEM: Called when the player chooses the XP cost in the enchantment table's UI
Return values:
|
I'm currently working on the enchanting table. I also created a thread in the forum. |
This needs to be closed, |
There's still the issue of hooks for plugins... It'd be a shame for my awesome description to go to waste :P Daniel promised to refactor the enchanting code a bit more, so it'd be great to wait for him to finish it before doing anything plugin-wise. |
We have most of the parts working (UI, enchantments, etc.), so it'd be a good time to actually implement the enchanting on the enchantment table.
The text was updated successfully, but these errors were encountered: