Нету модели в игре

Версия Minecraft
1.7.10
516
11
39
Всем привет.Почему модель не появляется в игре?

Java:
public class ClientProxy extends CommonProxy{

    public void init() {
       
         MinecraftForgeClient.registerItemRenderer(ElterionRPG.sword_bastard_st, new RenderItemBastard());
        super.init();
    }

Java:
public class sword_bastard_st extends ItemSword  {


   
    public sword_bastard_st(ToolMaterial p_i45356_1_) {
        super(ToolMaterial.IRON);
        setUnlocalizedName("sword_bastard_st");
        setTextureName("elterionrpg:sword_bastard");
        setCreativeTab(ElterionRPG.RpgTab);
        setMaxStackSize(1);
        setMaxDamage(400);
        setFull3D();
       
    }

Java:
import org.lwjgl.opengl.GL11;

import ua.agravaine.rpginventory.ElterionRPG;
import net.minecraft.client.Minecraft;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.client.IItemRenderer;
import net.minecraftforge.client.model.AdvancedModelLoader;
import net.minecraftforge.client.model.IModelCustom;

public class RenderItemBastard implements IItemRenderer {

    public static final IModelCustom model =
            AdvancedModelLoader.loadModel(new ResourceLocation(ElterionRPG.MOD_ID, "obj/sword_bastard.obj"));
    public static final ResourceLocation texture = new ResourceLocation(ElterionRPG.MOD_ID, "textures/items/sword_bastard_obj.png");

    @Override
    public boolean handleRenderType(ItemStack is, ItemRenderType type) {
        if (type == ItemRenderType.INVENTORY) return false;
        return true;
    }

    @Override
    public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack is, ItemRendererHelper helper) {
        if (type == ItemRenderType.INVENTORY) return false;
        return true;
    }

    @Override
    public void renderItem(ItemRenderType type, ItemStack is, Object... data) {
        GL11.glPushMatrix();
        GL11.glTranslatef(0.5F, 0.0F, 0.5F);
        Minecraft.getMinecraft().renderEngine.bindTexture(texture);
        model.renderAll();
        GL11.glPopMatrix();
    }


}
 

Вложения

  • 1548778680252.png
    1548778680252.png
    1.9 KB · Просмотры: 3
Решение
В главном классе, как пример:
Java:
    @SidedProxy(modId = MODID,
            serverSide = "timaxa007.animation_example.ProxyCommon",
            clientSide = "timaxa007.animation_example.client.ProxyClient")
    public static ProxyCommon proxy;

    @Mod.EventHandler
    public void init(FMLInitializationEvent event) {
        proxy.init();//Это - это - это ...
    }
1,202
31
185
Нету кейсов типа

Java:
public boolean handleRenderType(ItemStack is, ItemRenderType type) {
        switch (type) {
        case ENTITY:
            return true;
        case EQUIPPED:
            return true;
        case EQUIPPED_FIRST_PERSON:
            return true;
        default:
            return false;
        }
    }
И типа метод рендеритем

Java:
public void renderItem(ItemRenderType type, ItemStack is, Object ... data) {
switch (type) {
        case EQUIPPED_FIRST_PERSON: {
             //рендермодели
        }
        break;
        case EQUIPPED: {
             //рендермодели
        }
        break;
        case ENTITY: {
             //рендермодели
        }
        break;
        default:
            break;
  }
}
UPD:
Возможно, я не прав сверху: у тебя либо слишком маленькая модель, либо находится в том месте, где ее увидеть невозможно
 
Последнее редактирование:
516
11
39
Нету кейсов типа
Типа так?

Java:
public class RenderItemBastard implements IItemRenderer {

    public static final IModelCustom model =
            AdvancedModelLoader.loadModel(new ResourceLocation(ElterionRPG.MOD_ID, "obj/sword_bastard.obj"));
    public static final ResourceLocation texture = new ResourceLocation(ElterionRPG.MOD_ID, "textures/items/sword_bastard_obj.png");

    @Override
    public boolean handleRenderType(ItemStack is, ItemRenderType type) {
        switch (type) {
        case ENTITY:
            return true;
        case EQUIPPED:
            return true;
        case EQUIPPED_FIRST_PERSON:
            return true;
        default:
            return false;
        }
    }

    @Override
    public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack is, ItemRendererHelper helper) {
        if (type == ItemRenderType.INVENTORY) return false;
        return true;
    }

    @Override
    public void renderItem(ItemRenderType type, ItemStack is, Object... data) {
        GL11.glPushMatrix();
        GL11.glTranslatef(0.5F, 0.0F, 0.5F);
        Minecraft.getMinecraft().renderEngine.bindTexture(texture);
        switch (type) {
        case EQUIPPED_FIRST_PERSON: {
             //рендермодели
        }
        break;
        case EQUIPPED: {
             //рендермодели
        }
        break;
        case ENTITY: {
             //рендермодели
        }
        break;
        default:
            break;
  }
        model.renderAll();
        GL11.glPopMatrix();
}
    }
 
1,202
31
185
Совершенно нет

Java:
@Override
    public void renderItem(ItemRenderType type, ItemStack is, Object... data) {
      
        switch (type) {
        case EQUIPPED_FIRST_PERSON: {
        GL11.glPushMatrix();
        GL11.glTranslatef(0.5F, 0.0F, 0.5F);
        Minecraft.getMinecraft().renderEngine.bindTexture(texture);
        model.renderAll();
        GL11.glPopMatrix();
        }
        break;
        case EQUIPPED: {
             //рендермодели
        }
        break;
        case ENTITY: {
             //рендермодели
        }
        break;
        default:
            break;
       }
      }
    }
Мейби вообще у тебя модель маленькая или вне угла обзора игрока
 
516
11
39
Мейби вообще у тебя модель маленькая или вне угла обзора игрока
Если даже так,то когда держу в руке предмет,не будет виден предмет в рука,как бы странно это не звучало
Вот так
1548785445572.png

p.s. это не модель ,а текстурка предмета
 
1,202
31
185
Допер походу в чем траблы

Java:
 public void init() {
    
         MinecraftForgeClient.registerItemRenderer(ElterionRPG.sword_bastard_st, new RenderItemBastard());
        super.init();
    }
Твой инит метод в КЛИЕНТпрокси
Поменяй на
Java:
 public void init() {
        super.init();
MinecraftForgeClient.registerItemRenderer(ElterionRPG.sword_bastard_st, new RenderItemBastard());
    }
Я на это обратил внимание но не придал должное внимание :D
Ты фактически не регаешь рендер, ибо весь код должен идти после супер.инита
 

timaxa007

Модератор
5,831
409
672
В главном классе, как пример:
Java:
    @SidedProxy(modId = MODID,
            serverSide = "timaxa007.animation_example.ProxyCommon",
            clientSide = "timaxa007.animation_example.client.ProxyClient")
    public static ProxyCommon proxy;

    @Mod.EventHandler
    public void init(FMLInitializationEvent event) {
        proxy.init();//Это - это - это ...
    }
 
516
11
39
Вылетает
Код:
[21:36:56] [main/INFO] [GradleStart]: Extra: []
[21:36:56] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/lnti1/.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]
[21:36:56] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[21:36:56] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[21:36:56] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[21:36:56] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
[21:36:56] [main/INFO] [FML]: Forge Mod Loader version 7.99.36.1558 for Minecraft 1.7.10 loading
[21:36:56] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_191, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jdk1.8.0_191\jre
[21:36:56] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[21:36:56] [main/INFO] [FML]: Found a command line coremod : ua.agravaine.rpginventory.asm.RpgInvTransformer
[21:36:56] [main/INFO] [FML]: [HOOKLIB]  Obfuscated: false
[21:36:56] [main/INFO] [FML]: Found a command line coremod : ua.agravaine.hooklib.minecraft.HookLibPlugin
[21:36:56] [main/WARN] [FML]: The coremod ua.agravaine.hooklib.minecraft.HookLibPlugin does not have a MCVersion annotation, it may cause issues with this version of Minecraft
[21:36:56] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[21:36:56] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin
[21:36:56] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[21:36:56] [main/INFO] [GradleStart]: Injecting location in coremod ua.agravaine.rpginventory.asm.RpgInvTransformer
[21:36:56] [main/INFO] [GradleStart]: Injecting location in coremod ua.agravaine.hooklib.minecraft.HookLibPlugin
[21:36:56] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[21:36:56] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
[21:36:56] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[21:36:56] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[21:36:56] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[21:36:56] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[21:36:57] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[21:37:04] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[21:37:04] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[21:37:04] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[21:37:05] [main/INFO] [STDOUT]: [ua.agravaine.hooklib.asm.HookLogger$SystemOutLogger:debug:20]: [DEBUG] Parsing hooks container ua.agravaine.hooklib.minecraft.SecondaryTransformerHook
[21:37:05] [main/INFO] [STDOUT]: [ua.agravaine.hooklib.asm.HookLogger$SystemOutLogger:debug:20]: [DEBUG] Parsing hooks container ua.agravaine.rpginventory.asm.RpgInventoryHooks
[21:37:05] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[21:37:05] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
[21:37:05] [main/INFO] [STDOUT]: [ua.agravaine.hooklib.asm.HookLogger$SystemOutLogger:debug:20]: [DEBUG] Injecting hooks into class cpw.mods.fml.common.Loader
[21:37:05] [main/INFO] [STDOUT]: [ua.agravaine.hooklib.asm.HookLogger$SystemOutLogger:debug:20]: [DEBUG] Patching method cpw.mods.fml.common.Loader#injectData([Ljava/lang/Object;)
[21:37:07] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[21:37:07] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
[21:37:07] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
[21:37:07] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[21:37:09] [main/INFO] [STDOUT]: [ua.agravaine.hooklib.asm.HookLogger$SystemOutLogger:debug:20]: [DEBUG] Injecting hooks into class net.minecraft.client.renderer.InventoryEffectRenderer
[21:37:09] [main/INFO] [STDOUT]: [ua.agravaine.hooklib.asm.HookLogger$SystemOutLogger:debug:20]: [DEBUG] Patching method net.minecraft.client.renderer.InventoryEffectRenderer#func_147044_g()
[21:37:09] [main/INFO] [STDOUT]: [ua.agravaine.hooklib.asm.HookLogger$SystemOutLogger:debug:20]: [DEBUG] Patching method net.minecraft.client.renderer.InventoryEffectRenderer#func_147044_g()
[21:37:09] [main/INFO] [STDOUT]: [ua.agravaine.hooklib.asm.HookLogger$SystemOutLogger:debug:20]: [DEBUG] Injecting hooks into class net.minecraft.client.gui.inventory.GuiContainer
[21:37:09] [main/INFO] [STDOUT]: [ua.agravaine.hooklib.asm.HookLogger$SystemOutLogger:debug:20]: [DEBUG] Patching method net.minecraft.client.gui.inventory.GuiContainer#func_146977_a(Lnet/minecraft/inventory/Slot;)
[21:37:12] [main/INFO]: Setting user: Player11
[21:37:14] [main/INFO] [STDOUT]: [ua.agravaine.hooklib.asm.HookLogger$SystemOutLogger:debug:20]: [DEBUG] Injecting hooks into class net.minecraft.item.ItemBow
[21:37:14] [main/INFO] [STDOUT]: [ua.agravaine.hooklib.asm.HookLogger$SystemOutLogger:debug:20]: [DEBUG] Patching method net.minecraft.item.ItemBow#onPlayerStoppedUsing(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/entity/player/EntityPlayer;I)
[21:37:17] [Client thread/INFO]: LWJGL Version: 2.9.1
[21:37:20] [Client thread/INFO] [STDOUT]: [cpw.mods.fml.client.SplashProgress:start:188]: ---- Minecraft Crash Report ----
// There are four lights!

Time: 29.01.19 21:37
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 (amd64) version 10.0
    Java Version: 1.8.0_191, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 793314112 bytes (756 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 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: 'ATI Technologies Inc.' Version: '4.5.13399 Compatibility Profile Context 15.201.1201.0' Renderer: 'AMD Radeon(TM) R4 Graphics'
[21:37:20] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
[21:37:20] [Client thread/INFO] [FML]: MinecraftForge v10.13.4.1558 Initialized
[21:37:20] [Client thread/INFO] [FML]: Replaced 183 ore recipies
[21:37:21] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
[21:37:22] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
[21:37:22] [Client thread/INFO] [FML]: Searching C:\Users\lnti1\Desktop\mod\eclipse\mods for mods
[21:37:48] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load
[21:37:50] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, classification1, ElterionRPG] at CLIENT
[21:37:50] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, classification1, ElterionRPG] at SERVER
[21:37:51] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Classification Mod v1, FMLFileResourcePack:Elterion RPG
[21:37:52] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
[21:37:52] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations
[21:37:52] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
[21:37:52] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
[21:37:52] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[21:37:52] [Client thread/INFO] [Elterion RPG]: Loading...
[21:37:52] [Client thread/INFO] [Elterion RPG]: Create network system.
[21:37:52] [Client thread/INFO] [Elterion RPG]: Create items.
[21:37:52] [Client thread/INFO] [Elterion RPG]: Register gui handler.
[21:37:52] [Client thread/INFO] [Elterion RPG]: Register event listener.
[21:37:52] [Client thread/INFO] [Elterion RPG]: Successfully loaded!
[21:37:53] [Client thread/INFO] [FML]: Applying holder lookups
[21:37:53] [Client thread/INFO] [FML]: Holder lookups applied
[21:37:53] [Client thread/INFO] [FML]: Injecting itemstacks
[21:37:53] [Client thread/INFO] [FML]: Itemstack injection complete
[21:37:53] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
[21:37:53] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...
[21:37:53] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
[21:37:53] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[21:37:54] [Thread-8/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
[21:37:54] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
[21:37:54] [Sound Library Loader/INFO]: Sound engine started
[21:37:59] [Client thread/INFO]: Created: 16x16 textures/blocks-atlas
[21:38:00] [Client thread/INFO]: Created: 16x16 textures/items-atlas
[21:38:00] [Client thread/INFO] [FML]: Injecting itemstacks
[21:38:00] [Client thread/INFO] [FML]: Itemstack injection complete
[21:38:00] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods
[21:38:00] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Classification Mod v1, FMLFileResourcePack:Elterion RPG
[21:38:02] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
[21:38:02] [Client thread/INFO]: Created: 512x512 textures/items-atlas
[21:38:02] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
[21:38:02] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down...
[21:38:03] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:     Author: Paul Lamb, www.paulscode.com
[21:38:03] [Client thread/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
[21:38:03] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
[21:38:03] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...
[21:38:03] [Thread-10/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
[21:38:03] [Thread-10/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[21:38:03] [Thread-10/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
[21:38:03] [Sound Library Loader/INFO] [STDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
[21:38:03] [Sound Library Loader/INFO]: Sound engine started
[21:38:08] [Client thread/ERROR] [TEXTURE ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
[21:38:08] [Client thread/ERROR] [TEXTURE ERRORS]: The following texture errors were found.
[21:38:08] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================
[21:38:08] [Client thread/ERROR] [TEXTURE ERRORS]:   DOMAIN minecraft
[21:38:08] [Client thread/ERROR] [TEXTURE ERRORS]: --------------------------------------------------
[21:38:08] [Client thread/ERROR] [TEXTURE ERRORS]:   domain minecraft is missing 5 textures
[21:38:08] [Client thread/ERROR] [TEXTURE ERRORS]:     domain minecraft has 3 locations:
[21:38:08] [Client thread/ERROR] [TEXTURE ERRORS]:       unknown resourcepack type net.minecraft.client.resources.DefaultResourcePack : Default
[21:38:08] [Client thread/ERROR] [TEXTURE ERRORS]:       mod FML resources at C:\Users\lnti1\.gradle\caches\minecraft\net\minecraftforge\forge\1.7.10-10.13.4.1558-1.7.10\forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar
[21:38:08] [Client thread/ERROR] [TEXTURE ERRORS]:       mod Forge resources at C:\Users\lnti1\.gradle\caches\minecraft\net\minecraftforge\forge\1.7.10-10.13.4.1558-1.7.10\forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar
[21:38:08] [Client thread/ERROR] [TEXTURE ERRORS]: -------------------------
[21:38:08] [Client thread/ERROR] [TEXTURE ERRORS]:     The missing resources for domain minecraft are:
[21:38:08] [Client thread/ERROR] [TEXTURE ERRORS]:       textures/items/MISSING_ICON_ITEM_4123_null.png
[21:38:08] [Client thread/ERROR] [TEXTURE ERRORS]:       textures/items/MISSING_ICON_ITEM_4122_null.png
[21:38:08] [Client thread/ERROR] [TEXTURE ERRORS]:       textures/items/MISSING_ICON_ITEM_4121_null.png
[21:38:08] [Client thread/ERROR] [TEXTURE ERRORS]:       textures/items/MISSING_ICON_ITEM_4119_null.png
[21:38:08] [Client thread/ERROR] [TEXTURE ERRORS]:       textures/items/MISSING_ICON_ITEM_4118_null.png
[21:38:08] [Client thread/ERROR] [TEXTURE ERRORS]: -------------------------
[21:38:08] [Client thread/ERROR] [TEXTURE ERRORS]:     No other errors exist for domain minecraft
[21:38:08] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================
[21:38:08] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================
[21:38:08] [Client thread/ERROR] [TEXTURE ERRORS]:   DOMAIN elterionrpg
[21:38:08] [Client thread/ERROR] [TEXTURE ERRORS]: --------------------------------------------------
[21:38:08] [Client thread/ERROR] [TEXTURE ERRORS]:   domain elterionrpg is missing 4 textures
[21:38:08] [Client thread/ERROR] [TEXTURE ERRORS]:     domain elterionrpg has 2 locations:
[21:38:08] [Client thread/ERROR] [TEXTURE ERRORS]:       mod classification1 resources at C:\Users\lnti1\Desktop\mod\bin
[21:38:08] [Client thread/ERROR] [TEXTURE ERRORS]:       mod ElterionRPG resources at C:\Users\lnti1\Desktop\mod\bin
[21:38:08] [Client thread/ERROR] [TEXTURE ERRORS]: -------------------------
[21:38:08] [Client thread/ERROR] [TEXTURE ERRORS]:     The missing resources for domain elterionrpg are:
[21:38:08] [Client thread/ERROR] [TEXTURE ERRORS]:       textures/items/reinforcedplate.png
[21:38:08] [Client thread/ERROR] [TEXTURE ERRORS]:       textures/items/reinforcedhelmet.png
[21:38:08] [Client thread/ERROR] [TEXTURE ERRORS]:       textures/items/reinforcedboots.png
[21:38:08] [Client thread/ERROR] [TEXTURE ERRORS]:       textures/items/reinforcedpants.png
[21:38:08] [Client thread/ERROR] [TEXTURE ERRORS]: -------------------------
[21:38:08] [Client thread/ERROR] [TEXTURE ERRORS]:     No other errors exist for domain elterionrpg
[21:38:08] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================
[21:38:08] [Client thread/ERROR] [TEXTURE ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
[21:38:56] [Server thread/INFO]: Starting integrated minecraft server version 1.7.10
[21:38:56] [Server thread/INFO]: Generating keypair
[21:38:56] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance
[21:38:56] [Server thread/INFO] [FML]: Applying holder lookups
[21:38:56] [Server thread/INFO] [FML]: Holder lookups applied
[21:38:57] [Server thread/INFO] [FML]: Loading dimension 0 (Новый мир) (net.minecraft.server.integrated.IntegratedServer@23a3202c)
[21:38:57] [Server thread/INFO] [FML]: Loading dimension 1 (Новый мир) (net.minecraft.server.integrated.IntegratedServer@23a3202c)
[21:38:57] [Server thread/INFO] [FML]: Loading dimension -1 (Новый мир) (net.minecraft.server.integrated.IntegratedServer@23a3202c)
[21:38:57] [Server thread/INFO]: Preparing start region for level 0
[21:38:58] [Server thread/INFO]: Preparing spawn area: 2%
[21:38:59] [Server thread/INFO]: Preparing spawn area: 36%
[21:39:00] [Server thread/INFO]: Preparing spawn area: 76%
[21:39:00] [Server thread/INFO] [STDOUT]: [ua.agravaine.hooklib.asm.HookLogger$SystemOutLogger:debug:20]: [DEBUG] Injecting hooks into class net.minecraftforge.common.ForgeHooks
[21:39:00] [Server thread/INFO] [STDOUT]: [ua.agravaine.hooklib.asm.HookLogger$SystemOutLogger:debug:20]: [DEBUG] Patching method net.minecraftforge.common.ForgeHooks#getTotalArmorValue(Lnet/minecraft/entity/player/EntityPlayer;)I
[21:39:01] [Server thread/INFO]: Changing view distance to 2, from 10
[21:39:01] [Server thread/ERROR] [FML]: Exception caught during firing event net.minecraftforge.event.entity.living.LivingHurtEvent@5f98d477:
java.lang.NullPointerException
    at ua.agravaine.rpginventory.proxy.DamageEvent.damage(DamageEvent.java:52) ~[DamageEvent.class:?]
    at cpw.mods.fml.common.eventhandler.ASMEventHandler_14_DamageEvent_damage_LivingHurtEvent.invoke(.dynamic) ~[?:?]
    at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54) ~[ASMEventHandler.class:?]
    at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140) [EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingHurt(ForgeHooks.java:300) [ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.damageEntity(EntityLivingBase.java:1261) [EntityLivingBase.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:870) [EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityBat.attackEntityFrom(EntityBat.java:234) [EntityBat.class:?]
    at net.minecraft.entity.Entity.dealFireDamage(Entity.java:1042) [Entity.class:?]
    at net.minecraft.entity.Entity.moveEntity(Entity.java:909) [Entity.class:?]
    at net.minecraft.entity.EntityLivingBase.moveEntityWithHeading(EntityLivingBase.java:1680) [EntityLivingBase.class:?]
    at net.minecraft.entity.EntityLivingBase.onLivingUpdate(EntityLivingBase.java:2023) [EntityLivingBase.class:?]
    at net.minecraft.entity.EntityLiving.onLivingUpdate(EntityLiving.java:431) [EntityLiving.class:?]
    at net.minecraft.entity.EntityLivingBase.onUpdate(EntityLivingBase.java:1816) [EntityLivingBase.class:?]
    at net.minecraft.entity.EntityLiving.onUpdate(EntityLiving.java:250) [EntityLiving.class:?]
    at net.minecraft.entity.passive.EntityBat.onUpdate(EntityBat.java:122) [EntityBat.class:?]
    at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2298) [World.class:?]
    at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:684) [WorldServer.class:?]
    at net.minecraft.world.World.updateEntity(World.java:2258) [World.class:?]
    at net.minecraft.world.World.updateEntities(World.java:2108) [World.class:?]
    at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:515) [WorldServer.class:?]
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:703) [MinecraftServer.class:?]
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614) [MinecraftServer.class:?]
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) [IntegratedServer.class:?]
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485) [MinecraftServer.class:?]
    at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?]
[21:39:01] [Server thread/ERROR] [FML]: Index: 1 Listeners:
[21:39:01] [Server thread/ERROR] [FML]: 0: NORMAL
[21:39:01] [Server thread/ERROR] [FML]: 1: ASM: ua.agravaine.rpginventory.proxy.DamageEvent@79c62ffb damage(Lnet/minecraftforge/event/entity/living/LivingHurtEvent;)V
[21:39:01] [Server thread/ERROR] [FML]: 2: ASM: ua.agravaine.rpginventory.proxy.EventsClient@ae4c757 damage(Lnet/minecraftforge/event/entity/living/LivingHurtEvent;)V
[21:39:01] [Server thread/ERROR]: Encountered an unexpected exception
net.minecraft.util.ReportedException: Ticking entity
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:709) ~[MinecraftServer.class:?]
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614) ~[MinecraftServer.class:?]
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) ~[IntegratedServer.class:?]
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485) [MinecraftServer.class:?]
    at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?]
Caused by: java.lang.NullPointerException
    at ua.agravaine.rpginventory.proxy.DamageEvent.damage(DamageEvent.java:52) ~[DamageEvent.class:?]
    at cpw.mods.fml.common.eventhandler.ASMEventHandler_14_DamageEvent_damage_LivingHurtEvent.invoke(.dynamic) ~[?:?]
    at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54) ~[ASMEventHandler.class:?]
    at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140) ~[EventBus.class:?]
    at net.minecraftforge.common.ForgeHooks.onLivingHurt(ForgeHooks.java:300) ~[ForgeHooks.class:?]
    at net.minecraft.entity.EntityLivingBase.damageEntity(EntityLivingBase.java:1261) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:870) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.passive.EntityBat.attackEntityFrom(EntityBat.java:234) ~[EntityBat.class:?]
    at net.minecraft.entity.Entity.dealFireDamage(Entity.java:1042) ~[Entity.class:?]
    at net.minecraft.entity.Entity.moveEntity(Entity.java:909) ~[Entity.class:?]
    at net.minecraft.entity.EntityLivingBase.moveEntityWithHeading(EntityLivingBase.java:1680) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.EntityLivingBase.onLivingUpdate(EntityLivingBase.java:2023) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.EntityLiving.onLivingUpdate(EntityLiving.java:431) ~[EntityLiving.class:?]
    at net.minecraft.entity.EntityLivingBase.onUpdate(EntityLivingBase.java:1816) ~[EntityLivingBase.class:?]
    at net.minecraft.entity.EntityLiving.onUpdate(EntityLiving.java:250) ~[EntityLiving.class:?]
    at net.minecraft.entity.passive.EntityBat.onUpdate(EntityBat.java:122) ~[EntityBat.class:?]
    at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2298) ~[World.class:?]
    at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:684) ~[WorldServer.class:?]
    at net.minecraft.world.World.updateEntity(World.java:2258) ~[World.class:?]
    at net.minecraft.world.World.updateEntities(World.java:2108) ~[World.class:?]
    at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:515) ~[WorldServer.class:?]
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:703) ~[MinecraftServer.class:?]
    ... 4 more
[21:39:01] [Server thread/ERROR]: This crash report has been saved to: C:\Users\lnti1\Desktop\mod\eclipse\.\crash-reports\crash-2019-01-29_21.39.01-server.txt
[21:39:01] [Server thread/INFO]: Stopping server
[21:39:01] [Server thread/INFO]: Saving players
[21:39:01] [Server thread/INFO]: Saving worlds
[21:39:01] [Server thread/INFO]: Saving chunks for level 'Новый мир'/Overworld
[21:39:02] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: ---- Minecraft Crash Report ----
// I feel sad now :(

Time: 29.01.19 21:39
Description: Ticking entity

java.lang.NullPointerException: Ticking entity
    at ua.agravaine.rpginventory.proxy.DamageEvent.damage(DamageEvent.java:52)
    at cpw.mods.fml.common.eventhandler.ASMEventHandler_14_DamageEvent_damage_LivingHurtEvent.invoke(.dynamic)
    at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54)
    at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140)
    at net.minecraftforge.common.ForgeHooks.onLivingHurt(ForgeHooks.java:300)
    at net.minecraft.entity.EntityLivingBase.damageEntity(EntityLivingBase.java:1261)
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:870)
    at net.minecraft.entity.passive.EntityBat.attackEntityFrom(EntityBat.java:234)
    at net.minecraft.entity.Entity.dealFireDamage(Entity.java:1042)
    at net.minecraft.entity.Entity.moveEntity(Entity.java:909)
    at net.minecraft.entity.EntityLivingBase.moveEntityWithHeading(EntityLivingBase.java:1680)
    at net.minecraft.entity.EntityLivingBase.onLivingUpdate(EntityLivingBase.java:2023)
    at net.minecraft.entity.EntityLiving.onLivingUpdate(EntityLiving.java:431)
    at net.minecraft.entity.EntityLivingBase.onUpdate(EntityLivingBase.java:1816)
    at net.minecraft.entity.EntityLiving.onUpdate(EntityLiving.java:250)
    at net.minecraft.entity.passive.EntityBat.onUpdate(EntityBat.java:122)
    at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2298)
    at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:684)
    at net.minecraft.world.World.updateEntity(World.java:2258)
    at net.minecraft.world.World.updateEntities(World.java:2108)
    at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:515)
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:703)
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614)
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485)
    at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)


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

-- Head --
Stacktrace:
    at ua.agravaine.rpginventory.proxy.DamageEvent.damage(DamageEvent.java:52)
    at cpw.mods.fml.common.eventhandler.ASMEventHandler_14_DamageEvent_damage_LivingHurtEvent.invoke(.dynamic)
    at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54)
    at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140)
    at net.minecraftforge.common.ForgeHooks.onLivingHurt(ForgeHooks.java:300)
    at net.minecraft.entity.EntityLivingBase.damageEntity(EntityLivingBase.java:1261)
    at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:870)
    at net.minecraft.entity.passive.EntityBat.attackEntityFrom(EntityBat.java:234)
    at net.minecraft.entity.Entity.dealFireDamage(Entity.java:1042)
    at net.minecraft.entity.Entity.moveEntity(Entity.java:909)
    at net.minecraft.entity.EntityLivingBase.moveEntityWithHeading(EntityLivingBase.java:1680)
    at net.minecraft.entity.EntityLivingBase.onLivingUpdate(EntityLivingBase.java:2023)
    at net.minecraft.entity.EntityLiving.onLivingUpdate(EntityLiving.java:431)
    at net.minecraft.entity.EntityLivingBase.onUpdate(EntityLivingBase.java:1816)
    at net.minecraft.entity.EntityLiving.onUpdate(EntityLiving.java:250)
    at net.minecraft.entity.passive.EntityBat.onUpdate(EntityBat.java:122)
    at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2298)
    at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:684)
    at net.minecraft.world.World.updateEntity(World.java:2258)

-- Entity being ticked --
Details:
    Entity Type: Bat (net.minecraft.entity.passive.EntityBat)
    Entity ID: 175
    Entity Name: Летучая мышь
    Entity's Exact location: 81,47, 14,98, 86,35
    Entity's Block location: World: (81,14,86), Chunk: (at 1,0,6 in 5,5; contains blocks 80,0,80 to 95,255,95), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
    Entity's Momentum: 0,14, -0,24, -0,28
Stacktrace:
    at net.minecraft.world.World.updateEntities(World.java:2108)
    at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:515)

-- Affected level --
Details:
    Level name: Новый мир
    All players: 0 total; []
    Chunk stats: ServerChunkCache: 625 Drop: 0
    Level seed: -460482642339039332
    Level generator: ID 00 - default, ver 1. Features enabled: true
    Level generator options:
    Level spawn location: World: (0,64,160), Chunk: (at 0,4,0 in 0,10; contains blocks 0,0,160 to 15,255,175), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
    Level time: 101572 game time, 14113 day time
    Level dimension: 0
    Level storage version: 0x04ABD - Anvil
    Level weather: Rain time: 5474 (now: false), thunder time: 113692 (now: false)
    Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
Stacktrace:
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:703)
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614)
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485)
    at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)

-- System Details --
Details:
    Minecraft Version: 1.7.10
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_191, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 702787504 bytes (670 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 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: 12, tallocated: 94
    FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1558 5 mods loaded, 5 mods active
    States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
    UCHIJAAAA    mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
    UCHIJAAAA    FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar)
    UCHIJAAAA    Forge{10.13.4.1558} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar)
    UCHIJAAAA    classification1{1.1 dev.lnti} [Classification Mod v1] (bin)
    UCHIJAAAA    ElterionRPG{1.0} [Elterion RPG] (bin)
    GL info: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
    Profiler Position: N/A (disabled)
    Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
    Player Count: 0 / 8; []
    Type: Integrated Server (map_client.txt)
    Is Modded: Definitely; Client brand changed to 'fml,forge'
[21:39:02] [Client thread/INFO] [STDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:393]: #@!@# Game crashed! Crash report saved to: #@!@# .\crash-reports\crash-2019-01-29_21.39.01-server.txt
[21:39:02] [Client thread/INFO] [FML]: Waiting for the server to terminate/save.
[21:39:02] [Server thread/INFO]: Saving chunks for level 'Новый мир'/Nether
[21:39:02] [Server thread/INFO]: Saving chunks for level 'Новый мир'/The End
[21:39:03] [Server thread/INFO] [FML]: Unloading dimension 0
[21:39:03] [Server thread/INFO] [FML]: Unloading dimension -1
[21:39:03] [Server thread/INFO] [FML]: Unloading dimension 1
[21:39:03] [Server thread/INFO] [FML]: Applying holder lookups
[21:39:03] [Server thread/INFO] [FML]: Holder lookups applied
[21:39:03] [Server thread/INFO] [FML]: The state engine was in incorrect state SERVER_STOPPING and forced into state SERVER_STOPPED. Errors may have been discarded.
[21:39:03] [Client thread/INFO] [FML]: Server terminated.
AL lib: (EE) alc_cleanup: 1 device not closed
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release


Java:
 @SubscribeEvent

        public void damage(LivingHurtEvent event) {

        EntityPlayer player = mc.thePlayer;

            ItemStack is = player.getCurrentEquippedItem();//строка 52

            Entity from = event.source.getSourceOfDamage();

            EntityLivingBase to = event.entityLiving;

            if(is.getItem() == ElterionRPG.sword_bastard_st){

            if (from instanceof EntityPlayer) {

                event.ammount = i1;
 
Сверху