okay so bassically I run the game after setting up code and I get this crash report
---- Minecraft Crash Report ----
// This is a token for 1 free hug. Redeem at your nearest Mojangsta: [~~HUG~~]
Time: 6/30/15 8:13 PM
Description: Initializing game
net.minecraftforge.client.model.ModelFormatException: Error parsing entry ('f 18/8 6/4 7/6 19/9 211/10 193/11 225/12', line 2261) in file 'elemental gaming mod:textures/obj/DwainEdwards1.obj' - Incorrect format
at net.minecraftforge.client.model.obj.WavefrontObject.parseFace(WavefrontObject.java:490)
at net.minecraftforge.client.model.obj.WavefrontObject.loadObjModel(WavefrontObject.java:122)
at net.minecraftforge.client.model.obj.WavefrontObject.<init>(WavefrontObject.java:56)
at net.minecraftforge.client.model.obj.ObjModelLoader.loadInstance(ObjModelLoader.java:27)
at net.minecraftforge.client.model.AdvancedModelLoader.loadModel(AdvancedModelLoader.java:65)
at com.DwainEdwards1.TileEntity.TESRDE1.<init>(TESRDE1.java:16)
at com.DwainEdwards1.Main.ClientProxy.registerRenderInfo(ClientProxy.java:11)
at com.DwainEdwards1.Main.MainRegistry.PreLoad(MainRegistry.java:36)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119)
at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:556)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:522)
at net.minecraft.client.Minecraft.run(Minecraft.java:942)
at net.minecraft.client.main.Main.main(Main.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
at GradleStart.main(Unknown Source)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Stacktrace:
at net.minecraftforge.client.model.obj.WavefrontObject.parseFace(WavefrontObject.java:490)
at net.minecraftforge.client.model.obj.WavefrontObject.loadObjModel(WavefrontObject.java:122)
at net.minecraftforge.client.model.obj.WavefrontObject.<init>(WavefrontObject.java:56)
at net.minecraftforge.client.model.obj.ObjModelLoader.loadInstance(ObjModelLoader.java:27)
at net.minecraftforge.client.model.AdvancedModelLoader.loadModel(AdvancedModelLoader.java:65)
at com.DwainEdwards1.TileEntity.TESRDE1.<init>(TESRDE1.java:16)
at com.DwainEdwards1.Main.ClientProxy.registerRenderInfo(ClientProxy.java:11)
at com.DwainEdwards1.Main.MainRegistry.PreLoad(MainRegistry.java:36)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119)
at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:556)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:522)
-- Initialization --
Details:
Stacktrace:
at net.minecraft.client.Minecraft.run(Minecraft.java:942)
at net.minecraft.client.main.Main.main(Main.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
at GradleStart.main(Unknown Source)
-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 8.1 (amd64) version 6.3
Java Version: 1.8.0_45, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 752665800 bytes (717 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 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: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1456 4 mods loaded, 4 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UCH mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
UCH FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1456-1.7.10.jar)
UCH Forge{10.13.4.1456} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1456-1.7.10.jar)
UCE elemental gaming mod{0.1} [Elemental Gaming Mod] (bin)
GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 347.25' Renderer: 'GeForce GT 520/PCIe/SSE2'
Launched Version: 1.7.10
LWJGL: 2.9.1
OpenGL: GeForce GT 520/PCIe/SSE2 GL version 4.5.0 NVIDIA 347.25, NVIDIA Corporation
GL Caps: Using GL 1.3 multitexturing.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Anisotropic filtering is supported and maximum anisotropy is 16.
Shaders are available because OpenGL 2.1 is supported.
Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: []
Current Language: English (US)
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Anisotropic Filtering: Off (1)
I am the owner of the project Placeable Items (Emx is a coauthor). It seems that the issue here is your .obj model and not your actual code. First off, you need to make sure all of your shapes are correct with minecraft (squares and triangles, no multi-block model). You can take a look at some of ours here: https://github.com/Ferdzz/PlaceableItems/tree/master/src/main/resources/assets/placeableitems/obj . When exporting the .obj model in Blender, uncheck every option except for the one regarding the UV mapping (forgot the official name)
oh okay thanks guess I was making my object a little too complex... thanks for the help!
although I have a question.. what do you mean by no multiblock model? like I was trying to make a sort of posed steve character and well that seems to be the problem? is it becuase he had arms legs and a body?
// This is a token for 1 free hug. Redeem at your nearest Mojangsta: [~~HUG~~] Time: 6/30/15 8:13 PM
Description: Initializing game net.minecraftforge.client.model.ModelFormatException: Error parsing entry ('f 18/8 6/4 7/6 19/9 211/10 193/11 225/12', line 2261) in file 'elemental gaming mod:textures/obj/DwainEdwards1.obj' - Incorrect format
at net.minecraftforge.client.model.obj.WavefrontObject.parseFace(WavefrontObject.java:490)
at net.minecraftforge.client.model.obj.WavefrontObject.loadObjModel(WavefrontObject.java:122)
at net.minecraftforge.client.model.obj.WavefrontObject.<init>(WavefrontObject.java:56)
at net.minecraftforge.client.model.obj.ObjModelLoader.loadInstance(ObjModelLoader.java:27)
at net.minecraftforge.client.model.AdvancedModelLoader.loadModel(AdvancedModelLoader.java:65)
at com.DwainEdwards1.TileEntity.TESRDE1.<init>(TESRDE1.java:16)
at com.DwainEdwards1.Main.ClientProxy.registerRenderInfo(ClientProxy.java:11)
at com.DwainEdwards1.Main.MainRegistry.PreLoad(MainRegistry.java:36)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119)
at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:556)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:522)
at net.minecraft.client.Minecraft.run(Minecraft.java:942)
at net.minecraft.client.main.Main.main(Main.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
at GradleStart.main(Unknown Source) A detailed walkthrough of the error, its code path and all known details is as follows:
--------------------------------------------------------------------------------------- -- Head --
Stacktrace:
at net.minecraftforge.client.model.obj.WavefrontObject.parseFace(WavefrontObject.java:490)
at net.minecraftforge.client.model.obj.WavefrontObject.loadObjModel(WavefrontObject.java:122)
at net.minecraftforge.client.model.obj.WavefrontObject.<init>(WavefrontObject.java:56)
at net.minecraftforge.client.model.obj.ObjModelLoader.loadInstance(ObjModelLoader.java:27)
at net.minecraftforge.client.model.AdvancedModelLoader.loadModel(AdvancedModelLoader.java:65)
at com.DwainEdwards1.TileEntity.TESRDE1.<init>(TESRDE1.java:16)
at com.DwainEdwards1.Main.ClientProxy.registerRenderInfo(ClientProxy.java:11)
at com.DwainEdwards1.Main.MainRegistry.PreLoad(MainRegistry.java:36)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119)
at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:556)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:522) -- Initialization --
Details:
Stacktrace:
at net.minecraft.client.Minecraft.run(Minecraft.java:942)
at net.minecraft.client.main.Main.main(Main.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source)
at GradleStart.main(Unknown Source) -- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 8.1 (amd64) version 6.3
Java Version: 1.8.0_45, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 752665800 bytes (717 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 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: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1456 4 mods loaded, 4 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UCH mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
UCH FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1456-1.7.10.jar)
UCH Forge{10.13.4.1456} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1456-1.7.10.jar)
UCE elemental gaming mod{0.1} [Elemental Gaming Mod] (bin)
GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 347.25' Renderer: 'GeForce GT 520/PCIe/SSE2'
Launched Version: 1.7.10
LWJGL: 2.9.1
OpenGL: GeForce GT 520/PCIe/SSE2 GL version 4.5.0 NVIDIA 347.25, NVIDIA Corporation
GL Caps: Using GL 1.3 multitexturing.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Anisotropic filtering is supported and maximum anisotropy is 16.
Shaders are available because OpenGL 2.1 is supported. Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: []
Current Language: English (US)
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Anisotropic Filtering: Off (1)
here is the code : MainRegistry
import net.minecraftforge.common.MinecraftForge; import com.DwainEdwards1.Blocks.MBlocks;
import com.DwainEdwards1.Blocks.TESDE1;
import com.DwainEdwards1.CreativeTabs.MCreativeTabs;
import com.DwainEdwards1.Item.Mitems;
import com.DwainEdwards1.World.MWorld;
import com.DwainEdwards1.lib.RefStrings; import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
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 = RefStrings.MODID , name = RefStrings.NAME , version = RefStrings.Version )
public class MainRegistry {
@SidedProxy(clientSide = RefStrings.CLIENTSIDE , serverSide = RefStrings.SERVERSIDE )
public static ServerProxy proxy;
@EventHandler
public static void PreLoad(FMLPreInitializationEvent PreEvent) {
//creative tabs
MCreativeTabs.initiialiseTabs();
//blocks
MBlocks.mainRegistry();
//items
Mitems.mainRegistry();
//proxy
proxy.registerRenderInfo();
//recipes
CraftingManager.mainRegistry();
//worldgen
MWorld.mainRegistry();
GameRegistry.registerTileEntity(TESDE1.class, "TESRDE1");
}
@EventHandler
public static void Load(FMLInitializationEvent event) {
MinecraftForge.addGrassSeed(new ItemStack(Mitems.ESeed), 1);
MinecraftForge.addGrassSeed(new ItemStack(Mitems.WSeed), 1);
MinecraftForge.addGrassSeed(new ItemStack(Mitems.LSeed), 1);
MinecraftForge.addGrassSeed(new ItemStack(Mitems.ISeed), 1);
MinecraftForge.addGrassSeed(new ItemStack(Mitems.FSeed), 1);
MinecraftForge.addGrassSeed(new ItemStack(Mitems.DSeed), 1);
MinecraftForge.addGrassSeed(new ItemStack(Mitems.USeed), 1);
MinecraftForge.addGrassSeed(new ItemStack(Mitems.VSeed), 1);
}
@EventHandler
public static void PostLoad(FMLPostInitializationEvent PostEvent) {
}
}
client proxy
import com.DwainEdwards1.TileEntity.TESRDE1; import cpw.mods.fml.client.registry.ClientRegistry; public class ClientProxy extends ServerProxy {
public void registerRenderInfo() {
ClientRegistry.bindTileEntitySpecialRenderer(TESDE1.class, new TESRDE1());
}
}
Tile Entity Special Renderer:
import org.lwjgl.opengl.GL12; import com.DwainEdwards1.lib.RefStrings; 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; public class TESRDE1 extends TileEntitySpecialRenderer {
IModelCustom model = AdvancedModelLoader.loadModel(new ResourceLocation(RefStrings.MODID, "textures/obj/DwainEdwards1.obj"));
ResourceLocation texture = new ResourceLocation(RefStrings.MODID, "textures/blocks/DwainEdwards1.png");
@Override
public void renderTileEntityAt(TileEntity entity, double x, double y, double z, float p_147500_8_) {
bindTexture(texture);
GL11.glPushMatrix();
GL11.glEnable(GL12.GL_RESCALE_NORMAL);
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
GL11.glTranslatef((float) x + 0.5F, (float) y + 0.0F, (float) z + 0.5F);
GL11.glScalef(0.09375F, 0.09375F, 0.09375F);
model.renderAll();
GL11.glPopMatrix();
}
}
block
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World; public class DE1 extends BlockContainer {
private static final String name = "DE1"; public DE1(){
super(Material.glass);
setBlockTextureName(RefStrings.MODID + ":DwainEdwards1");
setBlockBounds(0.25F, 0, 0.25F, 0.75F, 0.5F, 0.75F);
setBlockName(name);
} @Override
public boolean shouldSideBeRendered(IBlockAccess world, int x, int y, int z, int side)
{
return false;
}
@Override
public boolean isOpaqueCube() {
return false;
}
@Override
public boolean renderAsNormalBlock() {
return false;
}
@Override
public TileEntity createNewTileEntity(World world, int par2) {
return new TESDE1();
}
}
Blocks Class
import com.DwainEdwards1.lib.RefStrings; import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs; public class MBlocks {
public static void mainRegistry() {
initializeBlock();
registerBlock();
}
//regular blocks
public static Block CIce; //Elemental Gaming Blocks
public static Block DE1; //crops
public static Block ECrop;
public static Block WCrop;
public static Block LCrop;
public static Block ICrop;
public static Block FCrop;
public static Block DCrop;
public static Block UCrop;
public static Block VCrop; public static void initializeBlock() {
//crops
ECrop = new eCrop().setBlockName("ECrop").setBlockTextureName(RefStrings.MODID + ":Earth");
WCrop = new wCrop().setBlockName("WCrop").setBlockTextureName(RefStrings.MODID + ":Water");
LCrop = new lCrop().setBlockName("LCrop").setBlockTextureName(RefStrings.MODID + ":Lightning");
ICrop = new iCrop().setBlockName("ICrop").setBlockTextureName(RefStrings.MODID + ":Ice");
FCrop = new fCrop().setBlockName("FCrop").setBlockTextureName(RefStrings.MODID + ":Fire");
DCrop = new dCrop().setBlockName("DCrop").setBlockTextureName(RefStrings.MODID + ":Diamond");
UCrop = new uCrop().setBlockName("UCrop").setBlockTextureName(RefStrings.MODID + ":Uranium");
VCrop = new vCrop().setBlockName("VCrop").setBlockTextureName(RefStrings.MODID + ":Void");
//elemental gaming blocks
DE1 = new DE1().setBlockName("DE1").setCreativeTab(MCreativeTabs.tabElementalItems);
//items
CIce = new CIce(Material.ice).setBlockName("CIce").setCreativeTab(MCreativeTabs.tabElementalItems).setBlockTextureName(RefStrings.MODID + ":CIce");
}
public static void registerBlock() {
GameRegistry.registerBlock(CIce, CIce.getUnlocalizedName());
GameRegistry.registerBlock(ECrop, ECrop.getUnlocalizedName());
GameRegistry.registerBlock(WCrop, WCrop.getUnlocalizedName());
GameRegistry.registerBlock(LCrop, LCrop.getUnlocalizedName());
GameRegistry.registerBlock(ICrop, ICrop.getUnlocalizedName());
GameRegistry.registerBlock(FCrop, FCrop.getUnlocalizedName());
GameRegistry.registerBlock(DCrop, DCrop.getUnlocalizedName());
GameRegistry.registerBlock(UCrop, UCrop.getUnlocalizedName());
GameRegistry.registerBlock(VCrop, VCrop.getUnlocalizedName());
GameRegistry.registerBlock(DE1, DE1.getUnlocalizedName()); }
}
If you need anything else for trying to figure out the problem just let me know I am using https://emxtutorials.wordpress.com/using-wavefront-obj-models-for-blocks/ as my guidance for this...
I am the owner of the project Placeable Items (Emx is a coauthor). It seems that the issue here is your .obj model and not your actual code. First off, you need to make sure all of your shapes are correct with minecraft (squares and triangles, no multi-block model). You can take a look at some of ours here: https://github.com/Ferdzz/PlaceableItems/tree/master/src/main/resources/assets/placeableitems/obj . When exporting the .obj model in Blender, uncheck every option except for the one regarding the UV mapping (forgot the official name)
Check out my mod, Placeable Items!
If my comment helped you or you just like me, hit the green arrow down there!
oh okay thanks guess I was making my object a little too complex... thanks for the help!
although I have a question.. what do you mean by no multiblock model? like I was trying to make a sort of posed steve character and well that seems to be the problem? is it becuase he had arms legs and a body?
What I meant is you can have as many boxes as you want in your model. But those boxes can only take the very basic shape of a square or rectangle.
Check out my mod, Placeable Items!
If my comment helped you or you just like me, hit the green arrow down there!
You only want triangles in your obj models, or else forge won't be able to read it.
Hey Emmanian ^^ And no, that is not true. I don't always check Triangulate Faces, and it works
Check out my mod, Placeable Items!
If my comment helped you or you just like me, hit the green arrow down there!
you learn something new everyday, i guess
it just all depends on your models they dont have to be triangulated but its alot easier than finding the face thats causing the error
OH okay thanks was really curious to that! thank you!
everyone else your help is very much appreciated! thanks you so much!
thank you that helped me alot