I and my friends have a Minecraft server and use diamonds as a currency. We needed something that was worth a fraction of a diamond. I had the idea of making a "diamond shard" item which is worth 1/9 of a diamond and can be crafted with a crafting table.
I was able to change the nbt of an iron_nugget so it's called a diamond_shard. I made a resource pack that changes the texture for an iron_nugget to look like a diamond_shard. I just can't figure out how to make the resource pack apply to only the diamond_shard and not an iron_nugget.
The item uses the tag CustomModelData, while the file uses "custom_model_data".
The functionality however isn't quite there.
Data packs have not reached the level of complexity yet that they can see a difference in their recipe ingredients.
You probably need to remove all iron nuggets from any recipe ingredients, recipe results, and loot tables.
When you have gone that far, then it doesn't even matter that you want to keep the old iron nugget texture parallel to the diamond shard; just replace it.
The problem is before you apply the changes, your friends could craft all their iron ingots into iron nuggets and after the change craft them all into diamonds, because you can specify the NBT of the recipe result, but like mentioned before not of the ingredients.
In my opinion, writable books are the best currency that can exist.
They are as good as real-life bills, they are uniform when you copy them and have copy protection when they are in a "copy of a copy" state.
But this currency also is like real-life bills, they have only a worth when people believe in it. It is completely useless in a shop that only accepts another form of currency (villagers=emeralds,you=diamonds) or is using goods.
So to establish this form of currency, your server needs a "bank" or simply put a banker-villager that trades emeralds or diamonds for bills.
A player alone can never do this, they could be accused of duplicating the bills, the bills lose their worth, and be stuck in the old times where 100 (currency name) bills don't exist.
Also keep in mind the smallest amount of emerald a book can cost is 2 books for 1 emerald, because one of the professions can trade written books for emeralds, but if you remove that trade in the data pack, any amount of bills can be made.
If written books are still nothing for you, then you should look for an item that has no recipe, no use, and no functionality, like a debug stick in survival.
so the item has it's own unique nbt data. The texture would only apply to iron_nuggets that have this unique attribute, so I wouldn't have to change loot tables as the iron nugget would be unaffected, as far as I know.
I and my friends have a Minecraft server and use diamonds as a currency. We needed something that was worth a fraction of a diamond. I had the idea of making a "diamond shard" item which is worth 1/9 of a diamond and can be crafted with a crafting table.
I was able to change the nbt of an iron_nugget so it's called a diamond_shard. I made a resource pack that changes the texture for an iron_nugget to look like a diamond_shard. I just can't figure out how to make the resource pack apply to only the diamond_shard and not an iron_nugget.
By using CustomModelData.
The item uses the tag CustomModelData, while the file uses "custom_model_data".
The functionality however isn't quite there.
Data packs have not reached the level of complexity yet that they can see a difference in their recipe ingredients.
You probably need to remove all iron nuggets from any recipe ingredients, recipe results, and loot tables.
When you have gone that far, then it doesn't even matter that you want to keep the old iron nugget texture parallel to the diamond shard; just replace it.
The problem is before you apply the changes, your friends could craft all their iron ingots into iron nuggets and after the change craft them all into diamonds, because you can specify the NBT of the recipe result, but like mentioned before not of the ingredients.
In my opinion, writable books are the best currency that can exist.
They are as good as real-life bills, they are uniform when you copy them and have copy protection when they are in a "copy of a copy" state.
But this currency also is like real-life bills, they have only a worth when people believe in it. It is completely useless in a shop that only accepts another form of currency (villagers=emeralds,you=diamonds) or is using goods.
So to establish this form of currency, your server needs a "bank" or simply put a banker-villager that trades emeralds or diamonds for bills.
A player alone can never do this, they could be accused of duplicating the bills, the bills lose their worth, and be stuck in the old times where 100 (currency name) bills don't exist.
Also keep in mind the smallest amount of emerald a book can cost is 2 books for 1 emerald, because one of the professions can trade written books for emeralds, but if you remove that trade in the data pack, any amount of bills can be made.
If written books are still nothing for you, then you should look for an item that has no recipe, no use, and no functionality, like a debug stick in survival.
Meow~
#F5F8FB
KittenKatja ♥
I used a command like this:
/give @p iron_nugget{display:{Name:'{"text":"diamond_shard"}'},CustomModelData:555555,diamond_shard:1b} 1
so the item has it's own unique nbt data. The texture would only apply to iron_nuggets that have this unique attribute, so I wouldn't have to change loot tables as the iron nugget would be unaffected, as far as I know.
With your command "/give @p iron_nugget{display:{Name:'{"text":"diamond_shard"}'},CustomModelData:555555,diamond_shard:1b} 1"
1. the display name will display diamond_shard,
2. the override in the iron nugget item model would need the value 555555 for "custom_model_data", and
3. diamond_shard:1b is not an actual NBT that has any use at all, it is just... exists... without a purpose.
Meow~
#F5F8FB
KittenKatja ♥