The search function in the creative mode inventory. Currently, the search function only searches for translated item names and not their ID. For example, when playing in Chinese, a player can only search for "木棍" and not "stick"
Additionally, there could be improvements made to the search function for enchanted books. Since enchanted books in the creative mode inventory only have a single enchantment, the search function could simply retrieve the name of the enchantment from the corresponding array in the NBT data and allow for searching by translated name or ID.
---Translation from ChatGPT
Original text:
优化创造模式物品栏的搜索,目前的搜索只能搜索物品对应的翻译名字,而无法通过id搜索到,例如在中文下,木棍需要通过"木棍"才能搜索到,而无法通过"stick"搜索到,以及对于附魔书搜索的优化建议,因为在创造模式物品栏中出现的附魔书必然是只有一个附魔的,所以可以直接获取nbt中对应数组的0号下标的对象并获取其附魔名称用作搜索,且同样支持翻译名称与id搜索
Please sign in to leave a comment.
0 Comments