Не отображается иконка брони в инвентаре

19
0
package mods.SAMURAISARMOR.main;

import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemArmor.ArmorMaterial;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.util.EnumHelper;

import mods.SAMURAISARMOR.items.ItemNinja;

@Mod(modid = SamuraisArmorObj.MODID, name = SamuraisArmorObj.NAME, version = SamuraisArmorObj.VERSION)
public class SamuraisArmorObj {

public static final String
MODID = "samuraisarmor",
NAME = "samurais Armor",
VERSION = "1.0";

@Mod.Instance(MODID) public static SamuraisArmorObj instance;

public static Item Ninja;



public static ArmorMaterial NinjaMaterial = EnumHelper.addArmorMaterial("NinjaMaterial", 43, new int[]{17, 17, 17, 17}, 0);

@Mod.EventHandler
public void preInit(cpw.mods.fml.common.event.FMLPreInitializationEvent event) {



Ninja = new ItemNinja(SamuraisArmorObj.NinjaMaterial, 1).setUnlocalizedName("Ninja").setTextureName(SamuraisArmorObj.MODID + "textures/items/Ninja").setCreativeTab(SamuraisArmorObj.tabSamuraisArmor);
GameRegistry.registerItem(Ninja, "Ninja");

}

public static CreativeTabs tabSamuraisArmor = new CreativeTabs("tabSamuraisArmor"){
@Override
public Item getTabIconItem(){
return new ItemStack(Ninja).getItem();
}
};
}
Пишу свой мод для майнкрафта версии 1.7.10, указал в коде иконку предмета, но она не отображается, подскажите как исправить пожалуйста.
 

Вложения

  • 2020-01-10_01.26.11.png
    2020-01-10_01.26.11.png
    330.7 KB · Просмотры: 10
19
0
[01:34:49] [main/INFO]: Extra: []
[01:34:49] [main/INFO]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/User/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[01:34:49] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[01:34:49] [main/INFO]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[01:34:49] [main/INFO]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[01:34:49] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
[01:34:49] [main/INFO]: Forge Mod Loader version 7.99.36.1558 for Minecraft 1.7.10 loading
[01:34:49] [main/INFO]: Java is Java HotSpot(TM) Client VM, version 1.8.0_91, running on Windows 10:x86:10.0, installed at C:\Program Files\Java\jre1.8.0_91
[01:34:49] [main/INFO]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[01:34:50] [main/INFO]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[01:34:50] [main/INFO]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin
[01:34:50] [main/INFO]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[01:34:50] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[01:34:50] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
[01:34:50] [main/INFO]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[01:34:50] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[01:34:50] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[01:34:50] [main/INFO]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[01:34:51] [main/ERROR]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[01:35:03] [main/ERROR]: FML appears to be missing any signature data. This is not a good thing
[01:35:03] [main/INFO]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[01:35:03] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
[01:35:05] [main/INFO]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[01:35:05] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
[01:35:05] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
[01:35:05] [main/INFO]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[01:35:12] [main/INFO]: Setting user: Player673
[01:35:17] [Client thread/INFO]: LWJGL Version: 2.9.1
[01:35:23] [Client thread/INFO]: [cpw.mods.fml.client.SplashProgress:start:188]: ---- Minecraft Crash Report ----
// Who set us up the TNT?

Time: 10.01.20 1:35
Description: Loading screen debug info

This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 10 (x86) version 10.0
Java Version: 1.8.0_91, Oracle Corporation
Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
Memory: 961708936 bytes (917 MB) / 1046937600 bytes (998 MB) up to 1046937600 bytes (998 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML:
GL info: ' Vendor: 'Intel' Version: '4.0.0 - Build 10.18.10.4252' Renderer: 'Intel(R) HD Graphics 4000'
[01:35:23] [Client thread/INFO]: Attempting early MinecraftForge initialization
[01:35:23] [Client thread/INFO]: MinecraftForge v10.13.4.1558 Initialized
[01:35:23] [Client thread/INFO]: Replaced 183 ore recipies
[01:35:24] [Client thread/INFO]: Completed early MinecraftForge initialization
[01:35:28] [Client thread/INFO]: Found 0 mods from the command line. Injecting into mod discoverer
[01:35:28] [Client thread/INFO]: Searching C:\Users\User\Desktop\SAMURAIBLYATPIZDEC\eclipse\mods for mods
[01:35:57] [Client thread/INFO]: Forge Mod Loader has identified 4 mods to load
[01:35:57] [Client thread/INFO]: Attempting connection with missing mods [mcp, FML, Forge, samuraisarmor] at CLIENT
[01:35:57] [Client thread/INFO]: Attempting connection with missing mods [mcp, FML, Forge, samuraisarmor] at SERVER
[01:35:58] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:samurais Armor
[01:35:58] [Client thread/INFO]: Processing ObjectHolder annotations
[01:35:58] [Client thread/INFO]: Found 341 ObjectHolder annotations
[01:35:58] [Client thread/INFO]: Identifying ItemStackHolder annotations
[01:35:58] [Client thread/INFO]: Found 0 ItemStackHolder annotations
[01:35:58] [Client thread/INFO]: Configured a dormant chunk cache size of 0
[01:35:58] [Client thread/INFO]: Applying holder lookups
[01:35:58] [Client thread/INFO]: Holder lookups applied
[01:35:58] [Client thread/INFO]: Injecting itemstacks
[01:35:58] [Client thread/INFO]: Itemstack injection complete
[01:35:59] [Sound Library Loader/INFO]: [paulscode.sound.SoundSystemLogger:message:69]:
[01:35:59] [Sound Library Loader/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...
[01:35:59] [Thread-7/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
[01:35:59] [Thread-7/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: (The LWJGL binding of OpenAL. For more information, see LWJGL - Lightweight Java Game Library)
[01:35:59] [Thread-7/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
[01:35:59] [Sound Library Loader/INFO]: [paulscode.sound.SoundSystemLogger:message:69]:
[01:35:59] [Sound Library Loader/INFO]: Sound engine started
[01:36:12] [Client thread/INFO]: Created: 16x16 textures/blocks-atlas
[01:36:12] [Client thread/INFO]: Created: 16x16 textures/items-atlas
[01:36:12] [Client thread/INFO]: Injecting itemstacks
[01:36:12] [Client thread/INFO]: Itemstack injection complete
[01:36:12] [Client thread/INFO]: Forge Mod Loader has successfully loaded 4 mods
[01:36:12] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:samurais Armor
[01:36:13] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
[01:36:13] [Client thread/INFO]: Created: 256x256 textures/items-atlas
[01:36:13] [Client thread/INFO]: [paulscode.sound.SoundSystemLogger:message:69]:
[01:36:13] [Client thread/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down...
[01:36:13] [Client thread/INFO]: [paulscode.sound.SoundSystemLogger:importantMessage:90]: Author: Paul Lamb, www.paulscode.com
[01:36:13] [Client thread/INFO]: [paulscode.sound.SoundSystemLogger:message:69]:
[01:36:13] [Sound Library Loader/INFO]: [paulscode.sound.SoundSystemLogger:message:69]:
[01:36:13] [Sound Library Loader/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...
[01:36:14] [Thread-9/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
[01:36:14] [Thread-9/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: (The LWJGL binding of OpenAL. For more information, see LWJGL - Lightweight Java Game Library)
[01:36:14] [Thread-9/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
[01:36:14] [Sound Library Loader/INFO]: [paulscode.sound.SoundSystemLogger:message:69]:
[01:36:14] [Sound Library Loader/INFO]: Sound engine started
[01:36:19] [Client thread/ERROR]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
[01:36:19] [Client thread/ERROR]: The following texture errors were found.
[01:36:19] [Client thread/ERROR]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
[01:36:36] [Server thread/INFO]: Starting integrated minecraft server version 1.7.10
[01:36:36] [Server thread/INFO]: Generating keypair
[01:36:36] [Server thread/INFO]: Converting map!
[01:36:36] [Server thread/INFO]: Scanning folders...
[01:36:36] [Server thread/INFO]: Total conversion count is 0
[01:36:36] [Server thread/INFO]: Injecting existing block and item data into this server instance
[01:36:36] [Server thread/INFO]: Applying holder lookups
[01:36:36] [Server thread/INFO]: Holder lookups applied
[01:36:37] [Server thread/INFO]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@1d7a02e)
[01:36:37] [Server thread/INFO]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@1d7a02e)
[01:36:37] [Server thread/INFO]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@1d7a02e)
[01:36:37] [Server thread/INFO]: Preparing start region for level 0
[01:36:38] [Server thread/INFO]: Preparing spawn area: 5%
[01:36:39] [Server thread/INFO]: Preparing spawn area: 12%
[01:36:40] [Server thread/INFO]: Preparing spawn area: 21%
[01:36:41] [Server thread/INFO]: Preparing spawn area: 30%
[01:36:42] [Server thread/INFO]: Preparing spawn area: 38%
[01:36:43] [Server thread/INFO]: Preparing spawn area: 49%
[01:36:44] [Server thread/INFO]: Preparing spawn area: 60%
[01:36:45] [Server thread/INFO]: Preparing spawn area: 68%
[01:36:46] [Server thread/INFO]: Preparing spawn area: 78%
[01:36:47] [Server thread/INFO]: Preparing spawn area: 88%
[01:36:48] [Server thread/INFO]: Preparing spawn area: 99%
[01:36:49] [Server thread/INFO]: Changing view distance to 2, from 10
[01:36:50] [Netty Client IO #0/INFO]: Server protocol version 2
[01:36:50] [Netty IO #1/INFO]: Client protocol version 2
[01:36:50] [Netty IO #1/INFO]: Client attempting to join with 4 mods : [email protected],[email protected],[email protected],[email protected]
[01:36:50] [Netty IO #1/INFO]: Attempting connection with missing mods [] at CLIENT
[01:36:50] [Netty Client IO #0/INFO]: Attempting connection with missing mods [] at SERVER
[01:36:50] [Server thread/INFO]: [Server thread] Server side modded connection established
[01:36:50] [Server thread/INFO]: Player673[local:E:054a832d] logged in with entity id 68 at (-241.5, 67.0, 166.5)
[01:36:50] [Client thread/INFO]: [Client thread] Client side modded connection established
[01:36:50] [Server thread/INFO]: Player673 joined the game
[01:36:51] [Server thread/INFO]: Saving and pausing game...
[01:36:51] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
[01:36:58] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
[01:36:58] [Server thread/INFO]: Saving chunks for level 'New World'/The End
[01:36:58] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 7537ms behind, skipping 150 tick(s)
[01:37:01] [Server thread/INFO]: Player673 has just earned the achievement [Taking Inventory]
[01:37:01] [Client thread/INFO]: [CHAT] Player673 has just earned the achievement [Taking Inventory]
 
1,159
38
544
В твоем случае текстура дллжна быть каадратной и png
 
  • Like
Реакции: Unky
Сверху