Open spinodal23 opened 1 day ago
I followed "allay_bottle.json" in the official example datapack, so my datapack is changed as follows. lang
is moved to resourcepack, so the item name now appear correctly. However, the item texture is still the minecraft iron ingot, not custom texture.
6_VH/
|-- assets/
| \-- minecraft/
| |-- models/
| | \-- custom/
| | \-- item/
| | \-- black_chromatic_steel_ingot.json
| \-- textures/
| \-- item/
| |-- black_chromatic_steel_ingot.png
| \-- black_chromatic_steel_ingot.png.mcmeta
|-- data/
| \-- chromatics/
| \-- filament/
| |-- item/
| | \-- black_chromatic_steel_ingot.json
| \-- item-groups.json
\-- pack.mcmeta
6_VH/assets/minecraft/models/custom/item/black_chromatic_steel_ingot.json
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "item/black_chromatic_steel_ingot"
}
}
6_VH/assets/minecraft/textures/item/black_chromatic_steel_ingot.png: same as the original 6_VH/assets/minecraft/textures/item/black_chromatic_steel_ingot.png.mcmeta: same as the original
6_VH/data/chromatics/filament/item/black_chromatic_steel_ingot.json
{
"id": "chromatics:black_chromatic_steel_ingot",
"group": "chromatics:chromatic_items",
"vanillaItem": "minecraft:iron_ingot",
"itemResource": {
"models": {
"default": "minecraft:custom/item/black_chromatic_steel_ingot"
}
}
}
6_VH/data/chromatics/filament/item-groups.json
[
{
"id": "chromatics:chromatic_items",
"item": "chromatics:black_chromatic_steel_ingot"
}
]
6_VH/pack.mcmeta: same as original.
7_VH/
|-- assets/
| \-- chromatics/
| \-- lang/
| \-- en_us.json/
|-- pack.mcmeta
\-- pack.png
7_VH/assets/chromatics/lang/en_us.json
{
"chromatics.itemGroup.chromatic_items": "Chromatic Items",
"item.chromatics.black_chromatic_steel_ingot": "Black Chromatic Steel Ingot"
}
7_VH/pack.mcmeta
{
"pack": {
"pack_format": 34,
"description": "test datapack - add an ingot from the Vault Hunter modpack"
}
}
7_VH/pack.png
Because the texture is not applied by the above method,
(1) I tried to move models
and textures
folders from the datapack to the resourcepack, but the result was the same.
(2) I tried to copy models
and textures
folders from the datapack and pasted it to the same directory of the resourcepack, but the result was the same.
What method should I try to make the texture appear correctly?
You will have to run /polymer generate-pack
and then F3+T
Will be fixed/automated for single player datapacks next update
Thank you, it works now :)
Issue
I cannot find any specific examples of adding ingots using filaments, so I tried to make a test datapack as follows. Item texture and item name does not appear correctly. (There is a screenshot below.)
Details of the files: 6_VH/assets/chromatics/lang/en_us.json
6_VH/assets/chromatics/models/custom/item/black_chromatic_steel_ingot.json
6_VH/assets/chromatics/textures/item/black_chromatic_steel_ingot.png
6_VH/assets/chromatics/textures/item/black_chromatic_steel_ingot.png.mcmeta
6_VH/data/chromatics/filament/item/black_chromatic_steel_ingot.json
pack.mcmeta
I'm sure I've done something wrong somewhere, but because of lack of references I can't find where is wrong.
Screenshots
Minecraft
1.21.1
Fabric API
0.102.1
Fabric Loader
0.16.5
filament
0.9.3
Polymer
0.9.17