Jump to content

[1.7.2] ResourceLocation Problem (Techne Model)


Trese759

Recommended Posts

Hi, I have a problem with the ResourceLocation for a model created on techne. The model of Minecraft exists but can not recognize the texture, I also tried to make sure that

 

the object is three-dimensional but also inventory them is completely invisible. How can I fix?

 

Main

 

@EventHandler
public void preInit(FMLPreInitializationEvent event) {

	//Models
	superWorkbench = new SuperWorkbench(Material.rock).setBlockName("SuperWorkbench").setCreativeTab(tabMK).setBlockTextureName("");
		LanguageRegistry.addName(superWorkbench, "Super Workbench");
		GameRegistry.registerBlock(superWorkbench, "SuperWorkbench");

@EventHandler
public void load(FMLInitializationEvent event) {

	//Renders
	proxy.registerRenderThing();

}

 

SuperWorkbench

 

package megakron.blocks;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import megakron.tileentity.TileEntitySuperWorkbench;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;

public class SuperWorkbench extends BlockContainer {

public SuperWorkbench(Material material) {
	super(material);

	this.setHardness((float) 2.0);
	this.setResistance((float) 4.0);

}

public int getRenderType() {
	return -1;
}

public boolean isOpaqueCube() {
	return false;
}

public boolean renderAsNormalBlock() {
	return false;
}

@Override
public TileEntity createNewTileEntity(World var1, int var2) {
	// TODO Auto-generated method stub
	return new TileEntitySuperWorkbench();
}

@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister iconRegister) {
	this.blockIcon = iconRegister.registerIcon("megakron:SuperWorkbench");
}

}

 

ModelSuperWorkbench

 

package megakron.models;

import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;

public class ModelSuperWorkbench extends ModelBase {
  //fields
    ModelRenderer Shape1;
    ModelRenderer Shape2;
    ModelRenderer Shape3;
    ModelRenderer Shape4;
    ModelRenderer Shape5;
    ModelRenderer Shape6;
    ModelRenderer Shape7;
    ModelRenderer Shape8;
    ModelRenderer Shape9;
    ModelRenderer Shape10;
    ModelRenderer Shape11;
    ModelRenderer Shape12;
    ModelRenderer Shape13;
    ModelRenderer Shape14;
    ModelRenderer Shape15;
  
  public ModelSuperWorkbench() {
    textureWidth = 64;
    textureHeight = 64;
    
      Shape1 = new ModelRenderer(this, 0, 0);
      Shape1.addBox(0F, 0F, 0F, 16, 7, 16);
      Shape1.setRotationPoint(-8F, 17F, -8F);
      Shape1.setTextureSize(64, 64);
      Shape1.mirror = true;
      setRotation(Shape1, 0F, 0F, 0F);
      Shape2 = new ModelRenderer(this, 0, 23);
      Shape2.addBox(0F, 0F, 0F, 14, 2, 14);
      Shape2.setRotationPoint(-7F, 15F, -7F);
      Shape2.setTextureSize(64, 64);
      Shape2.mirror = true;
      setRotation(Shape2, 0F, 0F, 0F);
      Shape3 = new ModelRenderer(this, 0, 0);
      Shape3.addBox(0F, 0F, 0F, 16, 7, 16);
      Shape3.setRotationPoint(-8F, 8F, -8F);
      Shape3.setTextureSize(64, 64);
      Shape3.mirror = true;
      setRotation(Shape3, 0F, 0F, 0F);
      Shape4 = new ModelRenderer(this, 0, 0);
      Shape4.addBox(0F, 0F, 0F, 2, 2, 2);
      Shape4.setRotationPoint(-8F, 15F, -8F);
      Shape4.setTextureSize(64, 64);
      Shape4.mirror = true;
      setRotation(Shape4, 0F, 0F, 0F);
      Shape5 = new ModelRenderer(this, 0, 0);
      Shape5.addBox(0F, 0F, 0F, 2, 2, 2);
      Shape5.setRotationPoint(-8F, 15F, 6F);
      Shape5.setTextureSize(64, 64);
      Shape5.mirror = true;
      setRotation(Shape5, 0F, 0F, 0F);
      Shape6 = new ModelRenderer(this, 0, 0);
      Shape6.addBox(0F, 0F, 0F, 2, 2, 2);
      Shape6.setRotationPoint(6F, 15F, -8F);
      Shape6.setTextureSize(64, 64);
      Shape6.mirror = true;
      setRotation(Shape6, 0F, 0F, 0F);
      Shape7 = new ModelRenderer(this, 0, 0);
      Shape7.addBox(0F, 0F, 0F, 2, 2, 2);
      Shape7.setRotationPoint(6F, 15F, 6F);
      Shape7.setTextureSize(64, 64);
      Shape7.mirror = true;
      setRotation(Shape7, 0F, 0F, 0F);
      Shape8 = new ModelRenderer(this, 0, 39);
      Shape8.addBox(0F, 0F, 0F, 16, 1, 1);
      Shape8.setRotationPoint(-8F, 7.5F, -8F);
      Shape8.setTextureSize(64, 64);
      Shape8.mirror = true;
      setRotation(Shape8, 0F, 0F, 0F);
      Shape9 = new ModelRenderer(this, 0, 39);
      Shape9.addBox(0F, 0F, 0F, 16, 1, 1);
      Shape9.setRotationPoint(-8F, 7.5F, -3F);
      Shape9.setTextureSize(64, 64);
      Shape9.mirror = true;
      setRotation(Shape9, 0F, 0F, 0F);
      Shape10 = new ModelRenderer(this, 0, 39);
      Shape10.addBox(0F, 0F, 0F, 16, 1, 1);
      Shape10.setRotationPoint(-8F, 7.5F, 2F);
      Shape10.setTextureSize(64, 64);
      Shape10.mirror = true;
      setRotation(Shape10, 0F, 0F, 0F);
      Shape11 = new ModelRenderer(this, 0, 39);
      Shape11.addBox(0F, 0F, 0F, 16, 1, 1);
      Shape11.setRotationPoint(-8F, 7.5F, 7F);
      Shape11.setTextureSize(64, 64);
      Shape11.mirror = true;
      setRotation(Shape11, 0F, 0F, 0F);
      Shape12 = new ModelRenderer(this, 0, 41);
      Shape12.addBox(0F, 0F, 0F, 1, 1, 16);
      Shape12.setRotationPoint(-8F, 7.5F, -8F);
      Shape12.setTextureSize(64, 64);
      Shape12.mirror = true;
      setRotation(Shape12, 0F, 0F, 0F);
      Shape13 = new ModelRenderer(this, 0, 41);
      Shape13.addBox(0F, 0F, 0F, 1, 1, 16);
      Shape13.setRotationPoint(-3F, 7.5F, -8F);
      Shape13.setTextureSize(64, 64);
      Shape13.mirror = true;
      setRotation(Shape13, 0F, 0F, 0F);
      Shape14 = new ModelRenderer(this, 0, 41);
      Shape14.addBox(0F, 0F, 0F, 1, 1, 16);
      Shape14.setRotationPoint(2F, 7.5F, -8F);
      Shape14.setTextureSize(64, 64);
      Shape14.mirror = true;
      setRotation(Shape14, 0F, 0F, 0F);
      Shape15 = new ModelRenderer(this, 0, 41);
      Shape15.addBox(0F, 0F, 0F, 1, 1, 16);
      Shape15.setRotationPoint(7F, 7.5F, -8F);
      Shape15.setTextureSize(64, 64);
      Shape15.mirror = true;
      setRotation(Shape15, 0F, 0F, 0F);
  }
  
  public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
    super.render(entity, f, f1, f2, f3, f4, f5);
    setRotationAngles(f, f1, f2, f3, f4, f5, entity);
    Shape1.render(f5);
    Shape2.render(f5);
    Shape3.render(f5);
    Shape4.render(f5);
    Shape5.render(f5);
    Shape6.render(f5);
    Shape7.render(f5);
    Shape8.render(f5);
    Shape9.render(f5);
    Shape10.render(f5);
    Shape11.render(f5);
    Shape12.render(f5);
    Shape13.render(f5);
    Shape14.render(f5);
    Shape15.render(f5);
  }
  
  public void renderModel(float f) {
  
  Shape1.render(f);
  Shape2.render(f);
  Shape3.render(f);
  Shape4.render(f);
  Shape5.render(f);
  Shape6.render(f);
  Shape7.render(f);
  Shape8.render(f);
  Shape9.render(f);
  Shape10.render(f);
  Shape11.render(f);
  Shape12.render(f);
  Shape13.render(f);
  Shape14.render(f);
  Shape15.render(f);
  
  }
  
  private void setRotation(ModelRenderer model, float x, float y, float z) {
    model.rotateAngleX = x;
    model.rotateAngleY = y;
    model.rotateAngleZ = z;
  }
  
  public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity) {
    super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
  }

}

 

TileEntitySuperWorkbench

 

package megakron.tileentity;

import net.minecraft.tileentity.TileEntity;

public class TileEntitySuperWorkbench extends TileEntity {

}

 

RenderSuperWorkbench

 

package megakron.render;

import org.lwjgl.opengl.GL11;

import scala.tools.nsc.Phases.Model;
import megakron.models.ModelSuperWorkbench;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ResourceLocation;

public class RenderSuperWorkbench extends TileEntitySpecialRenderer {

private static final ResourceLocation texture = new ResourceLocation("megakron:/texture/models/SuperWorkbench.png");

private ModelSuperWorkbench model;

public RenderSuperWorkbench() {
	this.model = new ModelSuperWorkbench();
}

@Override
public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float f) {

	GL11.glPushMatrix();
		GL11.glTranslatef((float) x + 0.5F, (float) y + 1.5F, (float) z + 0.5F);
		GL11.glRotatef(180, (float) 0.0, (float) 0.0, (float) 1.0);

	this.bindTexture(texture);

		GL11.glPushMatrix();
		this.model.renderModel((float) 0.0625F);
	GL11.glPopMatrix();	
	GL11.glPopMatrix();
}

}

 

ClientProxy

 

package megakron;

import cpw.mods.fml.client.registry.ClientRegistry;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.item.Item;
import net.minecraftforge.client.MinecraftForgeClient;
import megakron.render.ItemRenderSuperWorkbench;
import megakron.render.RenderSuperWorkbench;
import megakron.tileentity.TileEntitySuperWorkbench;

public class ClientProxy extends CommonProxy {

public void registerRenderThing() {

	//SuperWorkbench
	TileEntitySpecialRenderer render = new RenderSuperWorkbench();
	ClientRegistry.bindTileEntitySpecialRenderer(TileEntitySuperWorkbench.class, new RenderSuperWorkbench());
	MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(Megakron.superWorkbench), new ItemRenderSuperWorkbench(render, new TileEntitySuperWorkbench

()));

}

public void registerTileEntitySpescialRenderer() {

}

}

 

Report

 

[15:37:42] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[15:37:42] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[15:37:42] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
[15:37:42] [main/INFO] [FML]: Forge Mod Loader version 7.2.217.1147 for Minecraft 1.7.2 loading
[15:37:42] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre1.7.0
[15:37:42] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[15:37:42] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[15:37:42] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
[15:37:42] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[15:37:42] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[15:37:42] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[15:37:42] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[15:37:44] [main/ERROR] [FML]: The minecraft jar file:/C:/Users/PC/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-10.12.2.1147/forgeSrc-1.7.2-

10.12.2.1147.jar!/net/minecraft/client/ClientBrandRetriever.class appears to be corrupt! There has been CRITICAL TAMPERING WITH MINECRAFT, it is highly unlikely minecraft will 

work! STOP NOW, get a clean copy and try again!
[15:37:44] [main/ERROR] [FML]: FML has been ordered to ignore the invalid or missing minecraft certificate. This is very likely to cause a problem!
[15:37:44] [main/ERROR] [FML]: Technical information: ClientBrandRetriever was at jar:file:/C:/Users/PC/.gradle/caches/minecraft/net/minecraftforge/forge/1.7.2-

10.12.2.1147/forgeSrc-1.7.2-10.12.2.1147.jar!/net/minecraft/client/ClientBrandRetriever.class, there were 0 certificates for it
[15:37:44] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[15:37:44] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[15:37:44] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
[15:37:44] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[15:37:45] [main/INFO]: Setting user: Player216
[15:37:46] [Client thread/INFO]: LWJGL Version: 2.9.0
[15:37:46] [Client thread/ERROR]: Couldn't set icon
javax.imageio.IIOException: Can't read input file!
at javax.imageio.ImageIO.read(Unknown Source) ~[?:1.7.0]
at net.minecraft.client.Minecraft.readImage(Minecraft.java:629) ~[Minecraft.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:458) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:880) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
[15:37:46] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
[15:37:46] [Client thread/INFO] [FML]: MinecraftForge v10.12.2.1147 Initialized
[15:37:46] [Client thread/INFO] [FML]: Replaced 182 ore recipies
[15:37:46] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
[15:37:47] [Client thread/INFO] [FML]: Searching C:\Users\PC\Desktop\Minecraft mods\1.7.10 MegaKron\eclipse\mods for mods
[15:37:47] [Client thread/ERROR] [FML]: FML has detected a mod that is using a package name based on 'net.minecraft.src' : net.minecraft.src.FMLRenderAccessLibrary. This is 

generally a severe programming error.  There should be no mod code in the minecraft namespace. MOVE YOUR MOD! If you're in eclipse, select your source code and 'refactor' it 

into a new package. Go on. DO IT NOW!
[15:37:49] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
[15:37:49] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:MegaKron
[15:37:49] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
[15:37:49] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations
[15:37:49] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[15:37:49] [Client thread/INFO] [FML]: Applying holder lookups
[15:37:50] [Client thread/INFO] [FML]: Holder lookups applied

Starting up SoundSystem...
Initializing LWJGL OpenAL
    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
OpenAL initialized.

[15:37:50] [sound Library Loader/INFO]: Sound engine started
[15:37:50] [Client thread/ERROR]: Using missing texture, unable to load megakron:textures/blocks/SuperWorkbench.png
java.io.FileNotFoundException: megakron:textures/blocks/SuperWorkbench.png
at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:126) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:569) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:880) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
[15:37:51] [Client thread/INFO]: Created: 1024x1024 textures/blocks-atlas
[15:37:52] [Client thread/INFO]: Created: 512x512 textures/items-atlas
[15:37:52] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
[15:37:52] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:MegaKron
[15:37:52] [Client thread/INFO]: Created: 512x512 textures/items-atlas
[15:37:52] [Client thread/ERROR]: Using missing texture, unable to load megakron:textures/blocks/SuperWorkbench.png
java.io.FileNotFoundException: megakron:textures/blocks/SuperWorkbench.png
at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:126) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.onResourceManagerReload(TextureManager.java:170) [TextureManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134) 

[simpleReloadableResourceManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118) [simpleReloadableResourceManager.class:?]
at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:614) [Minecraft.class:?]
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:303) [FMLClientHandler.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:573) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:880) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
[15:37:53] [Client thread/INFO]: Created: 1024x1024 textures/blocks-atlas

SoundSystem shutting down...
    Author: Paul Lamb, www.paulscode.com


Starting up SoundSystem...
Initializing LWJGL OpenAL
    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
OpenAL initialized.

[15:37:54] [sound Library Loader/INFO]: Sound engine started
[15:37:54] [MCO Availability Checker #1/ERROR]: Couldn't connect to Realms
[15:37:56] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:gui.button.press
[15:37:58] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:gui.button.press
[15:37:58] [server thread/INFO]: Starting integrated minecraft server version 1.7.2
[15:37:58] [server thread/INFO]: Generating keypair
[15:37:58] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance
[15:37:59] [server thread/INFO] [FML]: Applying holder lookups
[15:37:59] [server thread/INFO] [FML]: Holder lookups applied
[15:37:59] [server thread/INFO] [FML]: Loading dimension 0 (Copy of New World) (net.minecraft.server.integrated.IntegratedServer@db53b7d)
[15:37:59] [server thread/INFO] [FML]: Loading dimension 1 (Copy of New World) (net.minecraft.server.integrated.IntegratedServer@db53b7d)
[15:37:59] [server thread/INFO] [FML]: Loading dimension -1 (Copy of New World) (net.minecraft.server.integrated.IntegratedServer@db53b7d)
[15:37:59] [server thread/INFO]: Preparing start region for level 0
[15:38:00] [server thread/INFO]: Preparing spawn area: 33%
[15:38:01] [Netty Client IO #0/INFO] [FML]: Server protocol version 1
[15:38:01] [Netty IO #1/INFO] [FML]: Client protocol version 1
[15:38:01] [Netty IO #1/INFO] [FML]: Client attempting to join with 4 mods : [email protected],[email protected],[email protected],[email protected]
[15:38:01] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT
[15:38:01] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER
[15:38:01] [server thread/INFO] [FML]: [server thread] Server side modded connection established
[15:38:01] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established
[15:38:01] [server thread/INFO]: Player216[local:E:d4cf89e2] logged in with entity id 316 at (-244.37276383032616, 68.0, 167.11981303878963)
[15:38:01] [server thread/INFO]: Player216 joined the game
[15:38:02] [Client thread/WARN]: Failed to load texture: megakron:/texture/models/SuperWorkbench.png
java.io.FileNotFoundException: megakron:/texture/models/SuperWorkbench.png
at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:65) ~[FallbackResourceManager.class:?]
at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:67) ~[simpleReloadableResourceManager.class:?]
at net.minecraft.client.renderer.texture.SimpleTexture.loadTexture(SimpleTexture.java:35) ~[simpleTexture.class:?]
at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?]
at net.minecraft.client.renderer.texture.TextureManager.bindTexture(TextureManager.java:45) [TextureManager.class:?]
at net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer.bindTexture(TileEntitySpecialRenderer.java:25) [TileEntitySpecialRenderer.class:?]
at megakron.render.RenderSuperWorkbench.renderTileEntityAt(RenderSuperWorkbench.java:28) [RenderSuperWorkbench.class:?]
at net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher.renderTileEntityAt(TileEntityRendererDispatcher.java:141) 

[TileEntityRendererDispatcher.class:?]
at net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher.renderTileEntity(TileEntityRendererDispatcher.java:126) [TileEntityRendererDispatcher.class:?]
at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:538) [RenderGlobal.class:?]
at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1290) [EntityRenderer.class:?]
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1087) [EntityRenderer.class:?]
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1012) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:900) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]

Link to comment
Share on other sites

You need a custom IItemRenderer implementation for your model in order to render it inside the inventory. Here an example:

https://github.com/SanAndreasP/EnderStuffPlus/blob/master/java/de/sanandrew/mods/enderstuffp/client/render/ItemRendererWeatherAltar.java

 

To register it, simply do:

MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(superWorkbench), new ItemRendererSuperWorkbench());

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Link to comment
Share on other sites

You didn't show your ItemRenderSuperWorkbench class

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

I'm so sorry.

 

package megakron.render;

import org.lwjgl.opengl.GL11;

import megakron.Megakron;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.client.IItemRenderer;
import net.minecraftforge.client.MinecraftForgeClient;

public class ItemRenderSuperWorkbench implements IItemRenderer {

TileEntitySpecialRenderer render;

private TileEntity entity;
public ItemRenderSuperWorkbench(TileEntitySpecialRenderer render, TileEntity entity) {
	this.entity = entity;
	this.render = render;
}

@Override
public boolean handleRenderType(ItemStack item, ItemRenderType type) {
	// TODO Auto-generated method stub
	return type != ItemRenderType.INVENTORY;
}

@Override
public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item,
		ItemRendererHelper helper) {
	// TODO Auto-generated method stub
	return true;
}

@Override
public void renderItem(ItemRenderType type, ItemStack item, Object... data) {

	if(type == IItemRenderer.ItemRenderType.ENTITY) {
		GL11.glTranslatef(-0.5F, 0.0F, -0.5F);
	this.render.renderTileEntityAt(this.entity, 0.0D, 0.0D, 0.0D, 0.0F);
	}

}

}

Link to comment
Share on other sites

	@Override
public void renderItem(ItemRenderType type, ItemStack item, Object... data) {

	if(type == IItemRenderer.ItemRenderType.ENTITY) {
		GL11.glTranslatef(-0.5F, 0.0F, -0.5F);
	this.render.renderTileEntityAt(this.entity, 0.0D, 0.0D, 0.0D, 0.0F);
	}

}

 

I do not see a case for

type == IItemRenderer.ItemRenderType.INVENTORY

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I've been trying to give a little transparency to a block and a custom model, but I'm running into the same issue with the transparency of the block Some guides say I use ItemBlockRenderTypes.setRenderLayer in a ClientEvent class but its deprecated, I already tried to set a Properties in Properties.copy(Blocks.FLOWERPOT) But the render in game still doesn't has transparency, only as an Item  
    • My friends and I are modding to survive But recently I want to use cmd to open the server instead of making the single player game public But when I used two methods to start the server, I encountered two problems first A I used forge to install the server files Created using the original server jar The server was installed successfully and the mod was also loaded successfully. But after I replaced the world file with my survival map, I found that the mod items inside disappeared but could be taken from creation again. So I tried to install the server using forge first B I have studied forge for a long time but successfully installed it. But when I put in mods it crashed But mods can be installed on the server   我和我的朋友們正在mod為了生存 但是最近我想用cmd打開伺服器而不是把單人遊戲公開 但是當我使用兩種方法啟動伺服器時,我遇到了兩個問題 首先AI使用forge安裝伺服器檔案使用原始伺服器jar 建立伺服器已成功安裝,mod 也已成功載入。但是當我用我的生存地圖替換世界文件後,我發現裡面的mod物品消失了,但可以再次從創建中取出。所以我嘗試先使用forge安裝伺服器,BI研究了forge很久但成功安裝了它。但是當我安裝 mods 時它崩潰了但是 mods 可以安裝在伺服器上 我和我的朋友正在mod生存 但最近我想使用cmd開啟伺服器而不是單人遊戲公開   但是當我使用了兩種方法開啟伺服器時遇到了兩種問題   第1個A 我使用了forge安裝伺服器文件 在使用原版伺服器jar建立    伺服器安裝成功 mod也順利加載  但是我將我的生存地圖替換世界文件後發現裡面的mod物品消失了但可以再次從創造拿取  所以我嘗試使用forge安裝伺服器   第2個B forge我研究了很久但也成功安裝了 但是當我放入 mods 之後發生了崩潰 但是mods在1A伺服器上是可以安裝的 Ps 我用谷歌翻譯 so    
    • That’s probably not it because as I stated I’ve done it before. I did it like deadass 10 - 20 times when trying to learn to make this mod pack because I kept wanting to reset my profiles and such. So it definitely works, it looks like maybe the creephosting files were the things that couldn’t be reached I tried reading the crash log
    • I don't know if this is the right place or not, but I have put together a custom modpack and I am in need of others to help me. It's a questing modpack with a lore book i'm currently writing out through Patchouli, and i am in need of somebody who will assist me in making the quests for the pack. It's a Zombie apocalypse modpack inspired by Deceasedcraft  with a tinge of magic and RPG mechanics via Mine and slash. Is there anybody willing to assist me as i'm one person building a modpack I could also use help with optimizations since that's not really my strong suite. 
    • File a report to SPYRECOVERY36 @ gmail com he can legitimately assist in proper review and recovery of all your assets that was stolen. Endeavor to submit your request for a refund to his mail . He also spy and hack any device remotely without any trace. Contact via spyrecovery36 @ gm ail com  
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.