#(Solved) Texture on Custom items not showing

1 messages · Page 1 of 1 (latest)

carmine ferry
#

file structure

#

Json in items:

{
"model": {
"type": "minecraft:model",
"model": "mc_armor_runes:item/helmet_of_sea"
}
}

#

.

JSON in Models:

{
"format_version": "1.21.11",
"credit": "Made with Blockbench",
"texture_size": [32, 32],
"textures": {
"0": "mc_armor_runes:item/helmet_of_sea",
"particle": "mc_armor_runes:item/helmet_of_sea"
},
"elements": [
{
"from": [4, 0, 2],
"to": [12, 8, 10],
"shade": false,
"rotation": {"angle": 0, "axis": "y", "origin": [4, 0, 2]},
"faces": {
"north": {"uv": [0, 0, 4, 4], "texture": "#0"},
"east": {"uv": [0, 4, 4, 8], "texture": "#0"},
"south": {"uv": [4, 0, 8, 4], "texture": "#0"},
"west": {"uv": [4, 4, 8, 8], "texture": "#0"},
"up": {"uv": [4, 12, 0, 8], "texture": "#0"},
"down": {"uv": [12, 0, 8, 4], "texture": "#0"}
}
}
],
"display": {
"thirdperson_righthand": {
"rotation": [81, 0, 0],
"translation": [-6, 8.25, 12.25],
"scale": [1.1, 1.1, 1.1]
},
"head": {
"translation": [0, 8.25, 4.25],
"scale": [2, 2, 2]
}
}
}

#

.

My Items Class:

package com.example;

import java.util.function.Function;
import net.fabricmc.fabric.api.itemgroup.v1.ItemGroupEvents;
import net.minecraft.core.Registry;
import net.minecraft.core.registries.BuiltInRegistries;
import net.minecraft.core.registries.Registries;
import net.minecraft.resources.Identifier;
import net.minecraft.resources.ResourceKey;
import net.minecraft.world.item.CreativeModeTabs;
import net.minecraft.world.item.Item;

public class Items {
public static final Item HELMET_OF_THE_SEA = register("helmet_of_the_sea", Item::new, new Item.Properties());
public static final Item HELMET_OF_SEA = register("helmet_of_sea", Item::new, new Item.Properties());

public static <T extends Item> T register(
        String name, Function<Item.Properties, T> itemFactory, Item.Properties settings) {
    ResourceKey<Item> itemKey = ResourceKey.create(
            Registries.ITEM, Identifier.fromNamespaceAndPath(ExampleMod.MOD_ID, name));

    T item = itemFactory.apply(settings.setId(itemKey));

    Registry.register(BuiltInRegistries.ITEM, itemKey, item);

    return item;
}

public static void initialize() {
    ItemGroupEvents.modifyEntriesEvent(CreativeModeTabs.COMBAT)
            .register(itemGroup -> {
                itemGroup.accept(Items.HELMET_OF_THE_SEA);
                itemGroup.accept(Items.HELMET_OF_SEA);
            });
}

}

#

texture png

#

i made the texture in blockbench and exported the model json and the texture png

#

(HELMET_OF_THE_SEA) I dont have a texture for yet that was an old attempt, but for HELMET_OF_SEA it should work...

#

.

Again, i know basic object oriented programming but I have no idea about MC modding so far.

carmine ferry
#

I assume my problem is here... what exactly do i have to put here

#

i worked with the fabric mod guide...

carmine ferry
#

(Solved) Texture on Custom items not showing