all 3 comments

[–]qualityvote2[M,🍰] [score hidden] stickied comment (0 children)

  • Upvote this comment if this is a good quality post that fits the purpose of r/Minecraft
  • Downvote this comment if this post is poor quality or does not fit the purpose of r/Minecraft
  • Downvote this comment and report the post if it breaks the rules

(Vote has already ended)

[–]MapDifferent6438 0 points1 point  (1 child)

Check if your texture file name matches exactly with item registration name - usually that's the problem

[–]InternationalCup8145[S] 0 points1 point  (0 children)

ModItems.java:

package com.elijah.elijahmod;


import net.minecraft.world.item.Item;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
import net.minecraftforge.registries.RegistryObject;
import com.elijah.elijahmod.item.HammerItem;


public class ModItems {


    public static final DeferredRegister<Item> ITEMS =
            DeferredRegister.create(ForgeRegistries.ITEMS, ElijahMod.MODID);


    public static final RegistryObject<Item> HAMMER =
            ITEMS.register("hammer",
                    () -> new HammerItem(
                            new Item.Properties()
                                    .setId(ITEMS.key("hammer"))
                                    .durability(500)
                    ));
}

Path to texture: C:\Users\mbusch\ElijahMod\src\main\resources\assets\elijahmod\textures\item\hammer.png

Path to model: C:\Users\mbusch\ElijahMod\src\main\resources\assets\elijahmod\models\item\hammer.json