Не рендерится 3D модель(1)

Версия Minecraft
1.6.4
149
1
2
Создавалась однажды мной же такая же тема. Но там 1/4 нужного кода не было, а сейчас, я все перепроверил просто до конца и так и не смог выявить причину не рендера ._.
Cобсна смарите.
Код:
@NetworkMod(clientSideRequired=true,serverSideRequired=true,
clientPacketHandlerSpec = @SidedPacketHandler(channels = {"Sender"}, packetHandler = PacketHandlerClient.class),
serverPacketHandlerSpec = @SidedPacketHandler(channels = {"Sender"}, packetHandler = PacketHandlerServer.class))

@Mod(modid="TutorialMod",name="Tutorial Mod",version="Release")

public class TestMod {
 
    @Instance("TutorialMod")
    public static TestMod instance = new TestMod();
 
    @SidedProxy(clientSide = "ru.coolmyfolken.client.ClientProxy", serverSide = "ru.coolmyfolken.common.CommonProxy")
    public static CommonProxy proxy;
    public static ClientProxy cProxy;
 
    //blocks
    public static Block charOld;

 
 
    @PreInit
    public void PreInit(FMLPreInitializationEvent e){
     
        testBlock = new TestBlock(1601, Material.rock).setUnlocalizedName("TestBlock");
        charOld = new CharOld(1602);
    }

    @Init
    public void init(FMLInitializationEvent event){
 
        GameRegistry.registerBlock(charOld, "Char Old");
        LanguageRegistry.addName(charOld, "Стол");
     
        GameRegistry.registerTileEntity(TileEntityCharOld.class, "TileEntityCharOld");
     
        RenderingRegistry.registerEntityRenderingHandler(EntityBullet.class, new RenderEntityB());
     
    }
    @EventHandler
    public void serverStart(FMLServerStartingEvent event) throws Exception {
     
    }

}

Код:
import net.minecraft.block.Block;
import net.minecraft.block.ITileEntityProvider;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.world.World;
import ru.coolmyfolken.tilenentity.TileEntityCharOld;

public class CharOld extends Block implements ITileEntityProvider{

    public CharOld(int par1) {
        super(par1, Material.rock);
        this.setCreativeTab(CreativeTabs.tabDecorations);
     
    }
 
    @Override
    public TileEntity createNewTileEntity(World world) {
        return new TileEntityCharOld();
    }

    public boolean isOpaqueCube(){
        return false;
    }

    public boolean renderAsNormalBlock(){
        return false;
    }
 
    public int getRenderType(){
        return -1;
    }
 
}

Код:
import net.minecraft.tileentity.TileEntity;

public class TileEntityCharOld extends TileEntity{
 
    public TileEntityCharOld() {

    }

}

Код:
import org.lwjgl.opengl.GL11;

import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ResourceLocation;
import net.minecraft.world.IBlockAccess;
import net.minecraftforge.client.model.AdvancedModelLoader;
import net.minecraftforge.client.model.IModelCustom;
import ru.coolmyfolken.models.ModelTable;
import ru.coolmyfolken.tilenentity.TileEntityCharOld;

public class RenderTileCharOld extends TileEntitySpecialRenderer{

    public static final ModelTable model = new ModelTable();
 
    private void renderTE(TileEntityCharOld te, double x, double y, double z, float f) {
        GL11.glPushMatrix();
        GL11.glTranslated(x, y, z);
        GL11.glTranslatef(0.5F, 1.5F, 0.5F);
        GL11.glRotatef(180F, 0.0F, 0.0F, 1.0F);
        GL11.glScalef(1.0F, -1.0F, -1.0F);
        bindTexture(new ResourceLocation("coolmyfolken", "textures/models/blocks/charOld.png"));
        model.render();
        GL11.glPopMatrix();
        }

    @Override
    public void renderTileEntityAt(TileEntity tileentity, double d0, double d1, double d2, float f) {
        renderTE((TileEntityCharOld)tileentity, d0, d1, d2, f);
    }

}

Код:
import cpw.mods.fml.client.registry.ClientRegistry;
import ru.coolmyfolken.common.CommonProxy;
import ru.coolmyfolken.render.blocks.RenderTileCharOld;
import ru.coolmyfolken.tilenentity.TileEntityCharOld;

public class ClientProxy extends CommonProxy {
 
    public void preInit() {
        super.preInit();
    }
 
    public void init() {
        super.init();
        ClientRegistry.bindTileEntitySpecialRenderer(TileEntityCharOld.class, new RenderTileCharOld());
    }

public void registerRenderInformation(){
 
    }

}

Код:
public class CommonProxy{  

    public void registerTiles(){
         
    }
    public void preInit() {
     
    }
    public void init() {
     
    }
 
}

Screenshot_9.png

PS. Код сверял с кодом Тимахи
 
Последнее редактирование:
Решение
Код:
    @PreInit
    public void PreInit(FMLPreInitializationEvent e){
    
        testBlock = new TestBlock(1601, Material.rock).setUnlocalizedName("TestBlock");
        charOld = new CharOld(1602);
    }

    @Init
    public void init(FMLInitializationEvent event){

        GameRegistry.registerBlock(charOld, "Char Old");
        LanguageRegistry.addName(charOld, "Стол");
    
        GameRegistry.registerTileEntity(TileEntityCharOld.class, "TileEntityCharOld");
    
        RenderingRegistry.registerEntityRenderingHandler(EntityBullet.class, new RenderEntityB());
    
    }

Java:
    @PreInit
    public void PreInit(FMLPreInitializationEvent e){
        testBlock = new TestBlock(1601...

timaxa007

Модератор
5,831
409
672
Код:
    @PreInit
    public void PreInit(FMLPreInitializationEvent e){
    
        testBlock = new TestBlock(1601, Material.rock).setUnlocalizedName("TestBlock");
        charOld = new CharOld(1602);
    }

    @Init
    public void init(FMLInitializationEvent event){

        GameRegistry.registerBlock(charOld, "Char Old");
        LanguageRegistry.addName(charOld, "Стол");
    
        GameRegistry.registerTileEntity(TileEntityCharOld.class, "TileEntityCharOld");
    
        RenderingRegistry.registerEntityRenderingHandler(EntityBullet.class, new RenderEntityB());
    
    }

Java:
    @PreInit
    public void PreInit(FMLPreInitializationEvent e){
        testBlock = new TestBlock(1601, Material.rock).setUnlocalizedName("TestBlock");
        charOld = new CharOld(1602);
      proxy.preInit();//<-Этого нет.
    }

    @Init
    public void init(FMLInitializationEvent event){

        GameRegistry.registerBlock(charOld, "Char Old");
        LanguageRegistry.addName(charOld, "Стол");
    
        GameRegistry.registerTileEntity(TileEntityCharOld.class, "TileEntityCharOld");
    
        RenderingRegistry.registerEntityRenderingHandler(EntityBullet.class, new RenderEntityB());
    
      proxy.init();//<-Этого нет.
    }
 
149
1
2
Java:
    @PreInit
    public void PreInit(FMLPreInitializationEvent e){
        testBlock = new TestBlock(1601, Material.rock).setUnlocalizedName("TestBlock");
        charOld = new CharOld(1602);
      proxy.preInit();//<-Этого нет.
    }

    @Init
    public void init(FMLInitializationEvent event){

        GameRegistry.registerBlock(charOld, "Char Old");
        LanguageRegistry.addName(charOld, "Стол");
   
        GameRegistry.registerTileEntity(TileEntityCharOld.class, "TileEntityCharOld");
   
        RenderingRegistry.registerEntityRenderingHandler(EntityBullet.class, new RenderEntityB());
   
      proxy.init();//<-Этого нет.
    }

Аригато!
 
149
1
2
Кстати када рендерю obj модель, выходит краш
Код:
2017-12-12 13:53:50 [INFO] [STDOUT] ---- Minecraft Crash Report ----
2017-12-12 13:53:50 [INFO] [STDOUT] // I bet Cylons wouldn't have this problem.
2017-12-12 13:53:50 [INFO] [STDOUT]
2017-12-12 13:53:50 [INFO] [STDOUT] Time: 12.12.17 13:53
2017-12-12 13:53:50 [INFO] [STDOUT] Description: Initializing game
2017-12-12 13:53:50 [INFO] [STDOUT]
2017-12-12 13:53:50 [INFO] [STDOUT] java.lang.IllegalArgumentException: The resource name could not be found
2017-12-12 13:53:50 [INFO] [STDOUT]     at net.minecraftforge.client.model.AdvancedModelLoader.loadModel(AdvancedModelLoader.java:68)
2017-12-12 13:53:50 [INFO] [STDOUT]     at ru.coolmyfolken.render.blocks.RenderTileCharOld.<init>(RenderTileCharOld.java:17)
2017-12-12 13:53:50 [INFO] [STDOUT]     at ru.coolmyfolken.client.ClientProxy.init(ClientProxy.java:16)
2017-12-12 13:53:50 [INFO] [STDOUT]     at ru.coolmyfolken.TestMod.init(TestMod.java:113)
2017-12-12 13:53:50 [INFO] [STDOUT]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2017-12-12 13:53:50 [INFO] [STDOUT]     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2017-12-12 13:53:50 [INFO] [STDOUT]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2017-12-12 13:53:50 [INFO] [STDOUT]     at java.lang.reflect.Method.invoke(Unknown Source)
2017-12-12 13:53:50 [INFO] [STDOUT]     at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:545)
2017-12-12 13:53:50 [INFO] [STDOUT]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2017-12-12 13:53:50 [INFO] [STDOUT]     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2017-12-12 13:53:50 [INFO] [STDOUT]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2017-12-12 13:53:50 [INFO] [STDOUT]     at java.lang.reflect.Method.invoke(Unknown Source)
2017-12-12 13:53:50 [INFO] [STDOUT]     at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
2017-12-12 13:53:50 [INFO] [STDOUT]     at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2017-12-12 13:53:50 [INFO] [STDOUT]     at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
2017-12-12 13:53:50 [INFO] [STDOUT]     at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
2017-12-12 13:53:50 [INFO] [STDOUT]     at com.google.common.eventbus.EventBus.post(EventBus.java:267)
2017-12-12 13:53:50 [INFO] [STDOUT]     at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:201)
2017-12-12 13:53:50 [INFO] [STDOUT]     at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181)
2017-12-12 13:53:50 [INFO] [STDOUT]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2017-12-12 13:53:50 [INFO] [STDOUT]     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2017-12-12 13:53:50 [INFO] [STDOUT]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2017-12-12 13:53:50 [INFO] [STDOUT]     at java.lang.reflect.Method.invoke(Unknown Source)
2017-12-12 13:53:50 [INFO] [STDOUT]     at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
2017-12-12 13:53:50 [INFO] [STDOUT]     at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2017-12-12 13:53:50 [INFO] [STDOUT]     at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
2017-12-12 13:53:50 [INFO] [STDOUT]     at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
2017-12-12 13:53:50 [INFO] [STDOUT]     at com.google.common.eventbus.EventBus.post(EventBus.java:267)
2017-12-12 13:53:50 [INFO] [STDOUT]     at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:112)
2017-12-12 13:53:50 [INFO] [STDOUT]     at cpw.mods.fml.common.Loader.initializeMods(Loader.java:699)
2017-12-12 13:53:50 [INFO] [STDOUT]     at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:249)
2017-12-12 13:53:50 [INFO] [STDOUT]     at net.minecraft.client.Minecraft.startGame(Minecraft.java:509)
2017-12-12 13:53:50 [INFO] [STDOUT]     at net.minecraft.client.Minecraft.run(Minecraft.java:808)
2017-12-12 13:53:50 [INFO] [STDOUT]     at net.minecraft.client.main.Main.main(Main.java:93)
2017-12-12 13:53:50 [INFO] [STDOUT]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2017-12-12 13:53:50 [INFO] [STDOUT]     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2017-12-12 13:53:50 [INFO] [STDOUT]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2017-12-12 13:53:50 [INFO] [STDOUT]     at java.lang.reflect.Method.invoke(Unknown Source)
2017-12-12 13:53:50 [INFO] [STDOUT]     at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
2017-12-12 13:53:50 [INFO] [STDOUT]     at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
2017-12-12 13:53:50 [INFO] [STDOUT]
2017-12-12 13:53:50 [INFO] [STDOUT]
2017-12-12 13:53:50 [INFO] [STDOUT] A detailed walkthrough of the error, its code path and all known details is as follows:
2017-12-12 13:53:50 [INFO] [STDOUT] ---------------------------------------------------------------------------------------
2017-12-12 13:53:50 [INFO] [STDOUT]
2017-12-12 13:53:50 [INFO] [STDOUT] -- Head --
2017-12-12 13:53:50 [INFO] [STDOUT] Stacktrace:
2017-12-12 13:53:50 [INFO] [STDOUT]     at net.minecraftforge.client.model.AdvancedModelLoader.loadModel(AdvancedModelLoader.java:68)
2017-12-12 13:53:50 [INFO] [STDOUT]     at ru.coolmyfolken.render.blocks.RenderTileCharOld.<init>(RenderTileCharOld.java:17)
2017-12-12 13:53:50 [INFO] [STDOUT]     at ru.coolmyfolken.client.ClientProxy.init(ClientProxy.java:16)
2017-12-12 13:53:50 [INFO] [STDOUT]     at ru.coolmyfolken.TestMod.init(TestMod.java:113)
2017-12-12 13:53:50 [INFO] [STDOUT]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2017-12-12 13:53:50 [INFO] [STDOUT]     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2017-12-12 13:53:50 [INFO] [STDOUT]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2017-12-12 13:53:50 [INFO] [STDOUT]     at java.lang.reflect.Method.invoke(Unknown Source)
2017-12-12 13:53:50 [INFO] [STDOUT]     at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:545)
2017-12-12 13:53:50 [INFO] [STDOUT]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2017-12-12 13:53:50 [INFO] [STDOUT]     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2017-12-12 13:53:50 [INFO] [STDOUT]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2017-12-12 13:53:50 [INFO] [STDOUT]     at java.lang.reflect.Method.invoke(Unknown Source)
2017-12-12 13:53:50 [INFO] [STDOUT]     at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
2017-12-12 13:53:50 [INFO] [STDOUT]     at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2017-12-12 13:53:50 [INFO] [STDOUT]     at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
2017-12-12 13:53:51 [INFO] [STDOUT]     at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
2017-12-12 13:53:51 [INFO] [STDOUT]     at com.google.common.eventbus.EventBus.post(EventBus.java:267)
2017-12-12 13:53:51 [INFO] [STDOUT]     at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:201)
2017-12-12 13:53:51 [INFO] [STDOUT]     at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181)
2017-12-12 13:53:51 [INFO] [STDOUT]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2017-12-12 13:53:51 [INFO] [STDOUT]     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2017-12-12 13:53:51 [INFO] [STDOUT]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2017-12-12 13:53:51 [INFO] [STDOUT]     at java.lang.reflect.Method.invoke(Unknown Source)
2017-12-12 13:53:51 [INFO] [STDOUT]     at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
2017-12-12 13:53:51 [INFO] [STDOUT]     at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2017-12-12 13:53:51 [INFO] [STDOUT]     at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
2017-12-12 13:53:51 [INFO] [STDOUT]     at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
2017-12-12 13:53:51 [INFO] [STDOUT]     at com.google.common.eventbus.EventBus.post(EventBus.java:267)
2017-12-12 13:53:51 [INFO] [STDOUT]     at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:112)
2017-12-12 13:53:51 [INFO] [STDOUT]     at cpw.mods.fml.common.Loader.initializeMods(Loader.java:699)
2017-12-12 13:53:51 [INFO] [STDOUT]     at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:249)
2017-12-12 13:53:51 [INFO] [STDOUT]     at net.minecraft.client.Minecraft.startGame(Minecraft.java:509)
2017-12-12 13:53:51 [INFO] [STDOUT]
2017-12-12 13:53:51 [INFO] [STDOUT] -- Initialization --
2017-12-12 13:53:51 [INFO] [STDOUT] Details:
2017-12-12 13:53:51 [INFO] [STDOUT] Stacktrace:
2017-12-12 13:53:51 [INFO] [STDOUT]     at net.minecraft.client.Minecraft.run(Minecraft.java:808)
2017-12-12 13:53:51 [INFO] [STDOUT]     at net.minecraft.client.main.Main.main(Main.java:93)
2017-12-12 13:53:51 [INFO] [STDOUT]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2017-12-12 13:53:51 [INFO] [STDOUT]     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2017-12-12 13:53:51 [INFO] [STDOUT]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2017-12-12 13:53:51 [INFO] [STDOUT]     at java.lang.reflect.Method.invoke(Unknown Source)
2017-12-12 13:53:51 [INFO] [STDOUT]     at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
2017-12-12 13:53:51 [INFO] [STDOUT]     at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
2017-12-12 13:53:51 [INFO] [STDOUT]
2017-12-12 13:53:51 [INFO] [STDOUT] -- System Details --
2017-12-12 13:53:51 [INFO] [STDOUT] Details:
2017-12-12 13:53:51 [INFO] [STDOUT]     Minecraft Version: 1.6.4
2017-12-12 13:53:51 [INFO] [STDOUT]     Operating System: Windows 10 (amd64) version 10.0
2017-12-12 13:53:51 [INFO] [STDOUT]     Java Version: 1.8.0_101, Oracle Corporation
2017-12-12 13:53:51 [INFO] [STDOUT]     Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
2017-12-12 13:53:51 [INFO] [STDOUT]     Memory: 894249488 bytes (852 MB) / 1056309248 bytes (1007 MB) up to 1056309248 bytes (1007 MB)
2017-12-12 13:53:51 [INFO] [STDOUT]     JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
2017-12-12 13:53:51 [INFO] [STDOUT]     AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
2017-12-12 13:53:51 [INFO] [STDOUT]     Suspicious classes: FML and Forge are installed
2017-12-12 13:53:51 [INFO] [STDOUT]     IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
2017-12-12 13:53:51 [INFO] [STDOUT]     FML: MCP v8.11 FML v6.4.50.1,345 Minecraft Forge 9.11.1.1345 4 mods loaded, 4 mods active
2017-12-12 13:53:51 [INFO] [STDOUT]     mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized
2017-12-12 13:53:51 [INFO] [STDOUT]     FML{6.4.50.1,345} [Forge Mod Loader] (bin) Unloaded->Constructed->Pre-initialized->Initialized
2017-12-12 13:53:51 [INFO] [STDOUT]     Forge{9.11.1.1345} [Minecraft Forge] (bin) Unloaded->Constructed->Pre-initialized->Initialized
2017-12-12 13:53:51 [INFO] [STDOUT]     TutorialMod{Release} [Tutorial Mod] (bin) Unloaded->Constructed->Pre-initialized->Errored
2017-12-12 13:53:51 [INFO] [STDOUT]     Launched Version: 1.6
2017-12-12 13:53:51 [INFO] [STDOUT]     LWJGL: 2.9.0
2017-12-12 13:53:51 [INFO] [STDOUT]     OpenGL: Intel(R) HD Graphics GL version 4.0.0 - Build 10.18.10.4425, Intel
2017-12-12 13:53:51 [INFO] [STDOUT]     Is Modded: Definitely; Client brand changed to 'fml,forge'
2017-12-12 13:53:51 [INFO] [STDOUT]     Type: Client (map_client.txt)
2017-12-12 13:53:51 [INFO] [STDOUT]     Resource Pack: StalkerZ_ResPack
2017-12-12 13:53:51 [INFO] [STDOUT]     Current Language: English (US)
2017-12-12 13:53:51 [INFO] [STDOUT]     Profiler Position: N/A (disabled)
2017-12-12 13:53:51 [INFO] [STDOUT]     Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
2017-12-12 13:53:51 [INFO] [STDOUT] #@!@# Game crashed! Crash report saved to: #@!@# D:\Gluposti\ISHODI\TestMod\forge\mcp\jars\.\crash-reports\crash-2017-12-12_13.53.50-client.txt
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

Странно что он найти не может, если название и путь верны ;/
 

timaxa007

Модератор
5,831
409
672
2017-12-12 13:53:50 [INFO] [STDOUT] java.lang.IllegalArgumentException: The resource name could not be found
[/CODE]
Не удалось найти имя ресурса. Возможно, всё таки не правильный путь. Формат файла в ResourceLocation не указываешь?
 
149
1
2
Не удалось найти имя ресурса. Возможно, всё таки не правильный путь. Формат файла в ResourceLocation не указываешь?
Угууу
Код:
import org.lwjgl.opengl.GL11;

import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.client.model.AdvancedModelLoader;
import net.minecraftforge.client.model.IModelCustom;
import ru.coolmyfolken.tilenentity.TileEntityCharOld;

public class RenderTileCharOld extends TileEntitySpecialRenderer{

    public IModelCustom model;
    
    public RenderTileCharOld(){
        model = AdvancedModelLoader.loadModel("/coolmyfolken/models/blocks/OldChair.obj");
    }
    
    private void renderTE(TileEntityCharOld te, double x, double y, double z, float f) {
        GL11.glPushMatrix();
        GL11.glTranslated(x, y, z);
        GL11.glTranslatef(0.5F, 1.5F, 0.5F);
        GL11.glRotatef(180F, 0.0F, 1.0F, 0.0F);
        GL11.glScalef(1.0F, -1.0F, -1.0F);
        bindTexture(new ResourceLocation("coolmyfolken", "textures/models/blocks/charOld.png"));
        model.renderAll();
        GL11.glPopMatrix();
    }

    @Override
    public void renderTileEntityAt(TileEntity tileentity, double d0, double d1, double d2, float f) {
        renderTE((TileEntityCharOld)tileentity, d0, d1, d2, f);
    }

}
 

timaxa007

Модератор
5,831
409
672
Типа коллизия видимости в один блок.
Java:
@SideOnly(Side.CLIENT)
@Override
public AxisAlignedBB getRenderBoundingBox() {
    return AxisAlignedBB.getBoundingBox(xCoord - 1D, yCoord, zCoord - 1D, xCoord + 2D, yCoord + 7D, zCoord + 2D);;
}
Типа такого кода в твой TileEntity (не в рендер).
 
Сверху