前提・実現したいこと
eclipseでMinecraftのModを作っています。
texture実装中に以下のエラーメッセージが発生しました。
発生している問題・エラーメッセージ
[21:29:13] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: ==========================================
[21:29:13] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: DOMAIN friedpotato
[21:29:13] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: --------------------------------------------------
[21:29:13] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: domain friedpotato is missing 1 texture
[21:29:13] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: domain friedpotato is missing a resource manager - it is probably a side-effect of automatic texture processing
[21:29:13] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: -------------------------
[21:29:13] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: The missing resources for domain friedpotato are:
[21:29:13] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: textures/items/friedpotato.png
[21:29:13] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: -------------------------
[21:29:13] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: No other errors exist for domain friedpotato
[21:29:13] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: ==========================================
該当のソースコード
JAVA
1package ray.friedpotatomod.main; 2 3import net.minecraft.client.renderer.block.model.ModelResourceLocation; 4 5import net.minecraft.creativetab.CreativeTabs; 6import net.minecraft.item.Item; 7import net.minecraftforge.client.model.ModelLoader; 8import net.minecraftforge.fml.common.Mod; 9import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; 10import net.minecraftforge.fml.common.registry.ForgeRegistries; 11 12 13@Mod(modid = Reference.MOD_ID, name = Reference.MOD_NAME, version = Reference.MOD_VERSION) 14public class FriedPotatoMod { 15 16 public static Item FriedPotato; 17 18 19 @Mod.EventHandler 20 public void preInit(FMLPreInitializationEvent event) { 21 FriedPotato = new Item() 22 .setCreativeTab(CreativeTabs.MATERIALS) 23 .setUnlocalizedName("FriedPotato") 24 .setRegistryName("FriedPotato") 25 .setMaxStackSize(64); 26 27 ForgeRegistries.ITEMS.register(FriedPotato); 28 29 if(event.getSide().isClient()) { 30 ModelLoader.setCustomModelResourceLocation(FriedPotato, 0, new ModelResourceLocation("friedpotatomod:friedpotato")); 31 } 32 } 33}
Reference
JAVA
1package ray.friedpotatomod.main; 2 3public class Reference { 4 5 public static final String MOD_ID = "friedpotatomod"; 6 public static final String MOD_NAME = "FriedPotatoMod"; 7 public static final String MOD_VERSION = "1.0.0"; 8 9 public static final String CLIENT_PROXY_CLASS = "ray.friedpotatomod.proxy.ClientProxy"; 10 public static final String COMMON_PROXY_CLASS = "ray.friedpotatomod.proxy.CommonProxy"; 11 12}
json
JAVA
1{ 2 "parent":"item/generated", 3 "textures":{ 4 "layer0":"friedpotato:items/FriedPotato" 5 } 6}
試したこと
・アドレスに大文字が含まれていないかの確認
・デフォルトのリンゴのテクスチャを使用した場合は問題なし
補足情報(FW/ツールのバージョンなど)
Eclipse:2020-03(4.15.0)
Minecraft:1.12.2
forge:14.23.5.2854-mdk
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。