emilyploszaj / emi

A featureful and accessible item and recipe viewer
MIT License
220 stars 46 forks source link

[Enhancement] Full support for adding items with custom nbt to favourites #507

Closed mpustovoi closed 2 months ago

mpustovoi commented 2 months ago

At the moment, in addition to the usual items, only single custom potions or enchantment tools can be added to favorites. It would be much better to be able to add more deeply defined nbt items to favorites (as in REI, I don't know about JEI). For example, chests or barrels with preset contents, spawn eggs of mobs with custom characteristics and equipment. In general, all that you can give yourself an item with a command, having previously generated it using MCStacker. Yes, sometimes such items can contain a huge number of characters per line, but it's still very convenient. I'm currently using the latest version of EMI for Forge 1.20.1

emilyploszaj commented 2 months ago

image You can favorite items with arbitrary nbt, and multiple of the same item if they differ by nbt.

mpustovoi commented 2 months ago

I know I can add simple items to favorites. Something like this: /give @p barrel{BlockEntityTag:{Items:[{Slot:0b,id:"minecraft:apple",Count:2b},{Slot:1b,id:"minecraft:bread",Count:4b}]}} image This function only works sometimes, and even then only with items in the player's hotbar, and not, for example, from a chest when it comes to such items: image I have two double chests of such items :(