BentoBoxWorld / ControlPanel

Eclipse Public License 2.0
0 stars 2 forks source link

Item CustomModelData support #28

Open CamperSamu opened 1 year ago

CamperSamu commented 1 year ago

Is your feature request related to a problem?

CustomModelData (coupled with custom fonts) is essential to achieve simple dynamic custom UIs in Minecraft, an essential feature for modern servers trying to deliver a more polished experience to their players. It also allows for custom item textures and much more by simply adding a NBT tag (eg. {CustomModelData:69420}) to an item coupled with a resource pack with the right model predicate (look at https://minecraft.fandom.com/wiki/Player.dat_format#General_Tags and https://minecraft.fandom.com/wiki/Tutorials/Models#Item_predicates).

Describe the solution you'd like.

It would be useful to have an optional custom-model-data field inside the panel yml for each item entry allowing for setting this NBT. Handling of the acutal textures is not requried since it's up to the final user to do all the leg work, this request is mainly to allow custom items and pre-baked ui elements to be showed inside panels.

Describe alternatives you've considered.

Someone could use ChestCommands or something like that, but why should we? BentoBox already has something to handle panels for its plugins, there shouldn't be the need to use something else in this context (aka simple panles).

Agreements

Other

From my previous comment on #21:


Here some example of custom UIs from the Nova plugin and SlimeFun plugin (using the unofficial resource pack for SlimeFun): image image image image image (ignore the Italian lol)

tastybento commented 1 year ago

@BONNe what do you think about this?

BONNe commented 1 year ago

It is a todo. Need to rewrite some logic of CP.