Rename items #2293
-
|
Is there a way to dynamically rename an item? For what - I want to have personal luggage for players. For example, a sophisticated backpack or any type of backpack mod, renamed to {name}'s luggage So - Enter a name in the computer and then it renames the item in some way |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
|
No, afraid not. Renaming items normally requires XP, and computers can't store XP, and I'm not really sure how much I want to diverge from vanilla behaviour here. See #2184 for more discussion. |
Beta Was this translation helpful? Give feedback.
-
|
There is no functions for renaming items as well as no API for working with anvil, perhaps for the reason mentioned above (you need XP for this). However, there is mod called Advanced Peripherals (addon for CC). It gives possibility for the computers to work with other mods. And there is mod Applied Energistics 2, which gives you powerful storage system and possibility to automate many things, such as item renaming. So, not quite what you want, but you can use Inscriber Name Press from AE2. For example: |
Beta Was this translation helpful? Give feedback.
Oh, forgot to mention, I was testing on 1.21.8 version. 😅
If you want to dive deep in command blocks programming, I found this reddit post, it's about scoreboard. But you can read here about how to get player's name and it might help you in your case.
Also there is a util for generating code like the one I sent you. There are many different generators.
Hope this helps, good luck!