I wanted to write a new plugin in which existing items in Minecraft should get new names.
e.g. Dirt -> pile of dirt
I don't need any code just an explanation of how to do it.
But wouldn't mind code if someone is too boring.
As far as I know you have to rename the file in the resource pack and that's enough.
Thank you very much
In the ItemMeta (ItemStack # getItemMeta) you can set a name with setDisplayName
Ah okay that works with normal items too. So I thought you have to create a new item.
That works with every item.
Also existing.
You only need the ItemStack object
E.g. Can you get an ItemStack object through Player # getIemInMainHand or Inventory # getItem
Thank you so much!
Have a good time