Почему не появляется модель в майнкрафте

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

Java:
package ru.lnti.tinymod.Main;

import net.minecraft.block.Block;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.registry.GameRegistry;



@Mod (modid = "tinymod", name="tinymod", version = "1.0")
public class main {

    @Instance("tinymod")
    public static main instance;
   
    public static final String MODID = "tinymod";
    public static final String NAME = "tinymod";
    public static final String VERSION = "1.0";

   
    @SidedProxy(clientSide = "ru.lnti.tinymod.Main.ClientProxy", serverSide = "ru.lnti.tinymod.Main.CommonProxy")
    public static CommonProxy proxy;
    public static CreativeTabs tinytab = new ru.lnti.tinymod.creativetabs.tinytab(12, null);
   
    public static Block Sign_stop;


    public void preInit(FMLPreInitializationEvent event) {

        Sign_stop = new ru.lnti.tinymod.blocks.Sign_stop();
        GameRegistry.registerBlock(Sign_stop, "sign_stop");
        GameRegistry.registerTileEntity(TileEntityObj.class, "TileEntityObj");
       
        proxy.preInit();
    }

    @EventHandler
    public void init(FMLInitializationEvent event) {
        proxy.init();
    }

Java:
package ru.lnti.tinymod.blocks;

import ru.lnti.tinymod.Main.TileEntityObj;
import ru.lnti.tinymod.Main.main;
import net.minecraft.block.Block;
import net.minecraft.block.ITileEntityProvider;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.MathHelper;
import net.minecraft.world.World;

public class Sign_stop extends Block implements ITileEntityProvider {

    public Sign_stop() {
        super(Material.circuits);
        setCreativeTab(main.tinytab);
        setHardness(0.25F);
        setStepSound(soundTypeMetal);
        setBlockTextureName("iron_block");
        setBlockName(main.MODID + ".Sign_stop");
    }

    @Override
    public TileEntity createNewTileEntity(World world, int metadata) {
        return new TileEntityObj();
    }

    public int getRenderType() {
        return -1;
    }

    public boolean isOpaqueCube() {
        return false;
    }

    public boolean renderAsNormalBlock() {
        return false;
    }

Java:
package ru.lnti.tinymod.Main;

import net.minecraft.client.Minecraft;
import net.minecraft.item.ItemStack;
import net.minecraftforge.client.IItemRenderer;

import org.lwjgl.opengl.GL11;

public class RenderItemBlockObj implements IItemRenderer {

    @Override
    public boolean handleRenderType(ItemStack is, ItemRenderType type) {
        return true;
    }

    @Override
    public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack is, ItemRendererHelper helper) {
        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(RenderTileEntityObj.texture);
        RenderTileEntityObj.model.renderAll();
        GL11.glPopMatrix();
    }

}

Java:
package ru.lnti.tinymod.Main;

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 org.lwjgl.opengl.GL11;

public class RenderTileEntityObj extends TileEntitySpecialRenderer {

    public static final IModelCustom model =
            AdvancedModelLoader.loadModel(new ResourceLocation(main.MODID, "obj/Sign_stop.obj"));
    public static final ResourceLocation texture = new ResourceLocation(main.MODID, "textures/blocks/Sign_stop.png");

    @Override
    public void renderTileEntityAt(TileEntity tile, double x, double y, double z, float f) {
        render((TileEntityObj)tile, x, y, z, f);
    }

    private void render(TileEntityObj tile, double x, double y, double z, float f) {
        GL11.glPushMatrix();
        GL11.glTranslated(x, y, z);
        GL11.glTranslatef(0.5F, 0.0F, 0.5F);
        bindTexture(texture);
        model.renderAll();
        GL11.glPopMatrix();
    }


   
}

Java:
package ru.lnti.tinymod.Main;

import net.minecraft.tileentity.TileEntity;

public class TileEntityObj extends TileEntity {

    public TileEntityObj() {
       

    }
   
    }

Java:
package ru.lnti.tinymod.Main;


import net.minecraft.item.Item;
import net.minecraftforge.client.MinecraftForgeClient;
import cpw.mods.fml.client.registry.ClientRegistry;


public class ClientProxy extends CommonProxy {

    public void preInit() {
        super.preInit();
    }

    public void init() {
        super.init();


        ClientRegistry.bindTileEntitySpecialRenderer(TileEntityObj.class, new RenderTileEntityObj());
        MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(main.Sign_stop), new RenderItemBlockObj());

    }

}
 
516
11
39
Код:
[21:24:05] [main/INFO]: Extra: []

[21:24:07] [main/INFO]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/lnti/.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:24:07] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker

[21:24:07] [main/INFO]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker

[21:24:07] [main/INFO]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker

[21:24:07] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker

[21:24:07] [main/INFO]: Forge Mod Loader version 7.99.36.1558 for Minecraft 1.7.10 loading

[21:24:07] [main/INFO]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_161, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jdk1.8.0_161\jre

[21:24:07] [main/INFO]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation

[21:24:08] [main/INFO]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker

[21:24:08] [main/INFO]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin

[21:24:08] [main/INFO]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin

[21:24:08] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[21:24:08] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker

[21:24:08] [main/INFO]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker

[21:24:08] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[21:24:08] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[21:24:08] [main/INFO]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper

[21:24:10] [main/ERROR]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!

[21:24:26] [main/ERROR]: FML appears to be missing any signature data. This is not a good thing

[21:24:26] [main/INFO]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper

[21:24:26] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker

[21:24:30] [main/INFO]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker

[21:24:30] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker

[21:24:30] [main/INFO]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker

[21:24:31] [main/INFO]: Launching wrapped minecraft {net.minecraft.client.main.Main}

[21:24:38] [main/INFO]: Setting user: Player527

[21:24:47] [Client thread/INFO]: LWJGL Version: 2.9.1

[21:24:55] [Client thread/INFO]: [cpw.mods.fml.client.SplashProgress:start:188]: ---- Minecraft Crash Report ----

// I let you down. Sorry :(



Time: 27.09.18 21:24

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_161, Oracle Corporation

    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation

    Memory: 797886696 bytes (760 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.200.1062.1002' Renderer: 'AMD Radeon(TM) R4 Graphics'

[21:24:56] [Client thread/INFO]: Attempting early MinecraftForge initialization

[21:24:56] [Client thread/INFO]: MinecraftForge v10.13.4.1558 Initialized

[21:24:56] [Client thread/INFO]: Replaced 183 ore recipies

[21:24:58] [Client thread/INFO]: Completed early MinecraftForge initialization

[21:25:00] [Client thread/INFO]: Found 0 mods from the command line. Injecting into mod discoverer

[21:25:00] [Client thread/INFO]: Searching C:\Users\lnti\Desktop\mod\eclipse\mods for mods

[21:26:14] [Client thread/INFO]: Forge Mod Loader has identified 4 mods to load

[21:26:18] [Client thread/INFO]: Attempting connection with missing mods [mcp, FML, Forge, tinymod] at CLIENT

[21:26:18] [Client thread/INFO]: Attempting connection with missing mods [mcp, FML, Forge, tinymod] at SERVER

[21:26:23] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:tinymod

[21:26:24] [Client thread/INFO]: Processing ObjectHolder annotations

[21:26:24] [Client thread/INFO]: Found 341 ObjectHolder annotations

[21:26:24] [Client thread/INFO]: Identifying ItemStackHolder annotations

[21:26:24] [Client thread/INFO]: Found 0 ItemStackHolder annotations

[21:26:25] [Client thread/INFO]: Configured a dormant chunk cache size of 0

[21:26:25] [Client thread/INFO]: Applying holder lookups

[21:26:25] [Client thread/INFO]: Holder lookups applied

[21:26:25] [Client thread/INFO]: Injecting itemstacks

[21:26:25] [Client thread/INFO]: Itemstack injection complete

[21:26:26] [Sound Library Loader/INFO]: [paulscode.sound.SoundSystemLogger:message:69]:

[21:26:26] [Sound Library Loader/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...

[21:26:26] [Thread-8/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL

[21:26:26] [Thread-8/INFO]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see LWJGL - Lightweight Java Game Library)

[21:26:27] [Thread-8/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.

[21:26:27] [Sound Library Loader/INFO]: [paulscode.sound.SoundSystemLogger:message:69]:

[21:26:27] [Sound Library Loader/INFO]: Sound engine started

[21:27:06] [Client thread/INFO]: Created: 16x16 textures/blocks-atlas

[21:27:06] [Client thread/INFO]: Created: 16x16 textures/items-atlas

[21:27:07] [Client thread/INFO]: Injecting itemstacks

[21:27:07] [Client thread/INFO]: Itemstack injection complete

[21:27:09] [Client thread/INFO]: Forge Mod Loader has successfully loaded 4 mods

[21:27:09] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:tinymod

[21:27:14] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas

[21:27:16] [Client thread/INFO]: Created: 256x256 textures/items-atlas

[21:27:17] [Client thread/INFO]: [paulscode.sound.SoundSystemLogger:message:69]:

[21:27:17] [Client thread/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down...

[21:27:17] [Client thread/INFO]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:     Author: Paul Lamb, www.paulscode.com

[21:27:17] [Client thread/INFO]: [paulscode.sound.SoundSystemLogger:message:69]:

[21:27:17] [Sound Library Loader/INFO]: [paulscode.sound.SoundSystemLogger:message:69]:

[21:27:17] [Sound Library Loader/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...

[21:27:17] [Thread-10/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL

[21:27:17] [Thread-10/INFO]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see LWJGL - Lightweight Java Game Library)

[21:27:17] [Thread-10/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.

[21:27:17] [Sound Library Loader/INFO]: [paulscode.sound.SoundSystemLogger:message:69]:

[21:27:17] [Sound Library Loader/INFO]: Sound engine started

[21:27:44] [Client thread/ERROR]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=

[21:27:44] [Client thread/ERROR]: The following texture errors were found.

[21:27:44] [Client thread/ERROR]: ==================================================

[21:27:44] [Client thread/ERROR]:   DOMAIN tinymod

[21:27:44] [Client thread/ERROR]: --------------------------------------------------

[21:27:44] [Client thread/ERROR]:   domain tinymod is missing 3 textures

[21:27:44] [Client thread/ERROR]:     domain tinymod has 1 location:

[21:27:44] [Client thread/ERROR]:       mod tinymod resources at C:\Users\lnti\Desktop\mod\bin

[21:27:44] [Client thread/ERROR]: -------------------------

[21:27:44] [Client thread/ERROR]:     The missing resources for domain tinymod are:

[21:27:44] [Client thread/ERROR]:       textures/items/Diamond_coin.png

[21:27:44] [Client thread/ERROR]:       textures/items/Iron_coin.png

[21:27:44] [Client thread/ERROR]:       textures/items/Gold_coin.png

[21:27:44] [Client thread/ERROR]: -------------------------

[21:27:44] [Client thread/ERROR]:     No other errors exist for domain tinymod

[21:27:44] [Client thread/ERROR]: ==================================================

[21:27:44] [Client thread/ERROR]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=

[21:27:58] [Server thread/INFO]: Starting integrated minecraft server version 1.7.10

[21:27:58] [Server thread/INFO]: Generating keypair

[21:27:59] [Server thread/INFO]: Injecting existing block and item data into this server instance

[21:27:59] [Server thread/INFO]: Applying holder lookups

[21:27:59] [Server thread/INFO]: Holder lookups applied

[21:28:00] [Server thread/INFO]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@6f8ca0de)

[21:28:00] [Server thread/INFO]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@6f8ca0de)

[21:28:00] [Server thread/INFO]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@6f8ca0de)

[21:28:00] [Server thread/INFO]: Preparing start region for level 0

[21:28:01] [Server thread/INFO]: Preparing spawn area: 0%

[21:28:02] [Server thread/INFO]: Preparing spawn area: 19%

[21:28:03] [Server thread/WARN]: Skipping BlockEntity with id TileEntityObj

[21:28:03] [Server thread/INFO]: Preparing spawn area: 56%

[21:28:04] [Server thread/INFO]: Changing view distance to 12, from 10

[21:28:06] [Netty Client IO #0/INFO]: Server protocol version 2

[21:28:06] [Netty IO #1/INFO]: Client protocol version 2

[21:28:06] [Netty IO #1/INFO]: Client attempting to join with 4 mods : [email protected],[email protected],[email protected],[email protected]

[21:28:06] [Netty IO #1/INFO]: Attempting connection with missing mods [] at CLIENT

[21:28:06] [Netty Client IO #0/INFO]: Attempting connection with missing mods [] at SERVER

[21:28:06] [Server thread/INFO]: [Server thread] Server side modded connection established

[21:28:06] [Client thread/INFO]: [Client thread] Client side modded connection established

[21:28:06] [Server thread/INFO]: Player527[local:E:4e5a41ef] logged in with entity id 150 at (-122.26536133072833, 86.97924170797238, 48.79580901941581)

[21:28:06] [Server thread/INFO]: Player527 joined the game

[21:28:08] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 2220ms behind, skipping 44 tick(s)

[21:28:17] [Server thread/INFO]: Player527 has just earned the achievement [Taking Inventory]

[21:28:17] [Client thread/INFO]: [CHAT] Player527 has just earned the achievement [Taking Inventory]

[21:28:33] [Client thread/INFO]: Stopping!

[21:28:33] [Client thread/INFO]: [paulscode.sound.SoundSystemLogger:message:69]:

[21:28:33] [Client thread/INFO]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down...

[21:28:33] [Server thread/INFO]: Stopping server

[21:28:33] [Server thread/INFO]: Saving players

[21:28:33] [Server thread/INFO]: Saving worlds

[21:28:33] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld

[21:28:33] [Client thread/INFO]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:     Author: Paul Lamb, www.paulscode.com

[21:28:33] [Client thread/INFO]: [paulscode.sound.SoundSystemLogger:message:69]:

[21:28:33] [Server thread/INFO]: Saving chunks for level 'New World'/Nether

[21:28:34] [Server thread/INFO]: Saving chunks for level 'New World'/The End

[21:28:34] [Client Shutdown Thread/INFO]: Stopping server

[21:28:34] [Client Shutdown Thread/INFO]: Saving players

Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
 
Последнее редактирование модератором:
1,159
38
544
1) оформляй лог нормально, сейчас его очень тяжко читать
2) Виду в логах твоих потерю текстур
Код:
[21:27:44] [Client thread/ERROR]: -------------------------
[21:27:44] [Client thread/ERROR]: The missing resources for domain tinymod are:
[21:27:44] [Client thread/ERROR]: textures/items/Diamond_coin.png
[21:27:44] [Client thread/ERROR]: textures/items/Iron_coin.png
[21:27:44] [Client thread/ERROR]: textures/items/Gold_coin.png
[21:27:44] [Client thread/ERROR]: -------------------------

Могу предположить, что ты не правильно регаешь текстуры. Думаю, тебе стоит хранить текстуры в resourcres/assets/YOUR_MOD_ID_LOWERCASE/textures/items/

Тогда, указывать текстуру для блока из кода следует так:
setBlockTextureName(YOUR_MOD_ID_LOWERCASE + ":" + textures/blocks/dron_block");

Если ты не укажешь домен, то майн будет искать текстуры в собственном ванильном раке текстур, а этого нам не надо.

3) вижу что ты регистрируешь рендер итема, но не рендер ентити (TileEntitySpecialRenderer). Можешь пока глянуть мой блок - он хорошо работает. + чекни код в проксях.

4) Залей код куда-нибудь (гитхаб или архив). Я домой приезду и поковыряю его, если к тому времени сам не разберешься
 
1,159
38
544
Не думаю, что это все. Тамму него ещё полигоны не треугольные.
 
Сверху