-
-
Notifications
You must be signed in to change notification settings - Fork 9
Allow Items with custom NBT to be added in special.yml #72
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
base: main
Are you sure you want to change the base?
Conversation
| if (upperItemName.startsWith("LIGHT") && !upperItemName.equals("LIGHT")) { | ||
| int level; | ||
| try { | ||
| level = Integer.parseInt(itemName.split("-")[1]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we replace this with JSON configurations for all lighting levels? Now it is possible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implemented in the new commit
| final Material itemMaterial; | ||
| try { | ||
| itemMaterial = Material.valueOf(itemName); | ||
| if (itemName.contains(" ")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps it is cleaner if not only a space is used, but a ", " is used as a separator.
- 'ITEM_FRAME, {...'There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implemented in the new commit
| - 'ITEM_FRAME {"minecraft:entity_data": {id: "minecraft:item_frame", Invisible: 1b}, "minecraft:custom_name":''{text:"Invisible Item Frame"}''}' | ||
|
|
||
| # No touch! | ||
| version: 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the version need to be incremented? (Tbd.)
|
Thanks for the PR! I'll give it a full review once it's out of draft. |
…g unnecessary locale conversion
…g and simplify item parsing
|
Thank you! I confirm that the changes are good. |
|
(I just realized that the relocation of item-nbt-api didnt work, fixed it) |
This PR aims to allow the use of custom nbt items to be added in the special.yml file, utilizing the NBTAPI.
The build.gradle.kts has also been changed with updated versions and repositories, so that the project can be built again.
This fixes #71
Image of a new item with custom nbt in the menu:
