Jump to content

JMars89

Members
  • Posts

    4
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

JMars89's Achievements

Tree Puncher

Tree Puncher (2/8)

1

Reputation

  1. Hi all, I'm trying to integrage video w/ my mod. After not much success, I've boiled down to one basic issue. Forge uses a special type called "ResourceLocation" to reference assets. Most video players use the type "File" to read video. I can convert "ResourceLocation" to an input stream, but I can't get on from there. Any help would be greatly appreciated. Thanks,
  2. Hi all, The end objective here is to play a video in minecraft. Where i'm stuck currently, is finding resources (ie a picture or video) in my assets directory. Here is a test I've borrowed from another question to return a filepath to me, but it doesn't work. The function to test (or eventually play video) will be called from my GUI on a button press which I have also posted. Test for video's existence: package com.mycompany.mymod; import java.io.IOException; import net.minecraft.client.Minecraft; import net.minecraft.client.resources.IResource; import net.minecraft.util.ResourceLocation; import com.mycompany.mymod.Main; public class FileAndResourceLocations { public static void testFile(String location) { String modid = Main.MODID; try { IResource iresource = Minecraft.getMinecraft().getResourceManager().getResource(new ResourceLocation(modid + ":" + location)); StringBuilder builder = new StringBuilder(); int ch; while((ch = iresource.getInputStream().read()) != -1){ builder.append((char)ch); } System.out.println(builder.toString()); } catch (IOException e) { e.printStackTrace(); System.out.println("didn't work"); } } } GUI: package com.mycompany.mymod_content.client.gui; import java.io.File; import java.io.IOException; import org.lwjgl.opengl.GL11; import com.mycompany.mymod.FileAndResourceLocations; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.GuiButton; import net.minecraft.client.gui.GuiScreen; import net.minecraft.client.renderer.Tessellator; import net.minecraft.client.resources.IResource; import net.minecraft.util.ResourceLocation; import java.awt.image.BufferedImage; public class GuiTreasureMap extends GuiScreen{ private GuiButton a; private BufferedImage img; private int imgID = 5006; @Override public void drawScreen(int mouseX, int mouseY, float partialTicks) { this.drawDefaultBackground(); GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); this.mc.getTextureManager().bindTexture(new ResourceLocation("mymod:textures/gui/treasure_map2.png")); int x = (width-(256))/2; int y = (height-(256))/2; drawTexturedModalRect(x, y, 0, 0, 256, 256); this.fontRendererObj.drawString(treasure_map_txt, this.width / 2 - 25, this.height / 2 - 75, 0000); this.fontRendererObj.drawString(treasure_map_txt2, this.width / 2 - 100, this.height / 2 - 45, 0000); this.fontRendererObj.drawString(treasure_map_txt3, this.width / 2 - 40, this.height / 2 - 35, 0000); this.fontRendererObj.drawString(treasure_map_txt4, this.width / 2 - 103, this.height / 2 - 25, 0000); this.fontRendererObj.drawString(treasure_map_txt5, this.width / 2 - 65, this.height / 2 - 15, 0000); // this.fontRendererObj.drawString(treasure_map_txt6, this.width / 2 - 100, this.height / 2 - 0, 0000); super.drawScreen(mouseX, mouseY, partialTicks); } @Override public boolean doesGuiPauseGame() { return true; } @Override public void initGui() { this.buttonList.add(this.a = new GuiButton(0, this.width / 2 - 100, this.height / 2 + 90, "Back To Game")); } @Override protected void actionPerformed(GuiButton button) throws IOException { if (button == this.a) { //Main.packetHandler.sendToServer(...); //java.awt.Desktop.getDesktop().browse(java.net.URI.create("http://wwwgoogle.com")); //java.awt.Desktop.getDesktop().open(new ResourceLocation("mymod:textures/gui/treasure_map2.png")); FileAndResourceLocations.testFile("textures/gui/GuiTreasureMap"); this.mc.displayGuiScreen(null); if (this.mc.currentScreen == null) this.mc.setIngameFocus(); } } private String treasure_map_txt = ""; private String treasure_map_txt2 = ""; private String treasure_map_txt3 = ""; private String treasure_map_txt4 = ""; private String treasure_map_txt5 = ""; //private String treasure_map_txt6 = } When I run this I get a FileNotFoundException: [14:07:27] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: java.io.FileNotFoundException: minecraft:gui/GuiTreasureMap [14:07:27] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.client.resources.FallbackResourceManager.getResource(Unknown Source) [14:07:27] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(Unknown Source) [14:07:27] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at com.mycompany.mymod.FileAndResourceLocations.testFile(FileAndResourceLocations.java:17) [14:07:27] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at com.mycompany.mymod.client.gui.GuiTreasureMap.actionPerformed(GuiTreasureMap.java:69) [14:07:27] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.client.gui.GuiScreen.mouseClicked(Unknown Source) [14:07:27] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.client.gui.GuiScreen.handleMouseInput(Unknown Source) [14:07:27] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.client.gui.GuiScreen.handleInput(Unknown Source) [14:07:27] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.client.Minecraft.runTick(Unknown Source) [14:07:27] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.client.Minecraft.runGameLoop(Unknown Source) [14:07:27] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.client.Minecraft.run(Unknown Source) [14:07:27] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.client.main.Main.main(Unknown Source) [14:07:27] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [14:07:27] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [14:07:27] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [14:07:27] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at java.lang.reflect.Method.invoke(Unknown Source) [14:07:27] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [14:07:27] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [14:07:27] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [14:07:27] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [14:07:27] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [14:07:27] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at java.lang.reflect.Method.invoke(Unknown Source) [14:07:27] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [14:07:27] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: at GradleStart.main(Unknown Source) [14:07:27] [Client thread/INFO] [sTDOUT]: [com.mycompany.mymod.FileAndResourceLocations:testFile:26]: didn't work
  3. Thanks for contributing everyone and helping me out. I've made some progress but have some interesting issues. I have literally spent two days on this and modified my code dozens of ways. If you can help me out here, I will bow before ever unwaivery godly-debugging presence. My treasuremap2 block is rendering but only in one direction. Evenmore curious, it seems to be rendering whatever the first model file in my assets.mymod_content.models.block package is. Other than being confusing it's self, it tells me that the blockstates.json file is being ignored. I should theoretically be able to make a change to all blocks in the block states.json file and see a change, but I don't. Also you can see in the console readout that I am detecting a facing property for when the block is placed. Thank everyone for their time, it is much appreciated. Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release [16:07:25] [main/INFO] [GradleStart]: Extra: [] [16:07:25] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, /Users/jamie/.gradle/caches/minecraft/assets, --assetIndex, 1.8, --accessToken{REDACTED}, --version, 1.8, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker] [16:07:25] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [16:07:25] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [16:07:25] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [16:07:25] [main/INFO] [FML]: Forge Mod Loader version 11.14.3.1521 for Minecraft 1.8 loading [16:07:25] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_60, running on Mac OS X:x86_64:10.10.5, installed at /Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/jre [16:07:25] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [16:07:25] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [16:07:25] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [16:07:25] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [16:07:25] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [16:07:25] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [16:07:26] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [16:07:26] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [16:07:26] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [16:07:26] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [16:07:26] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [16:07:26] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [16:07:26] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [16:07:27] [Client thread/INFO]: Setting user: Player404 [16:07:29] [Client thread/INFO]: LWJGL Version: 2.9.2 [16:07:29] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [16:07:29] [Client thread/INFO] [FML]: MinecraftForge v11.14.3.1521 Initialized [16:07:29] [Client thread/INFO] [FML]: Replaced 204 ore recipies [16:07:29] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [16:07:29] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer [16:07:29] [Client thread/INFO] [FML]: Searching /Users/jamie/Desktop/forge-1/run/mods for mods [16:07:30] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [16:07:31] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, mymod_content] at CLIENT [16:07:31] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, mymod_content] at SERVER [16:07:31] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:mymod Content [16:07:31] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [16:07:31] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations [16:07:31] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations [16:07:31] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations [16:07:31] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [16:07:31] [Client thread/INFO] [sTDOUT]: [com.mycompany.mymod_content.blocks.BasicBlock:<init>:42]: PropertyDirection{name=facing, clazz=class net.minecraft.util.EnumFacing, values=[down, up, north, south, west, east]} [16:07:31] [Client thread/INFO] [sTDOUT]: [com.mycompany.mymod_content.blocks.BasicBlock:<init>:50]: PropertyDirection{name=facing, clazz=class net.minecraft.util.EnumFacing, values=[down, up, north, south, west, east]} [16:07:31] [Client thread/INFO] [sTDOUT]: [com.mycompany.mymod_content.blocks.BasicBlock:<init>:56]: PropertyDirection{name=facing, clazz=class net.minecraft.util.EnumFacing, values=[down, up, north, south, west, east]} [16:07:31] [Client thread/INFO] [sTDOUT]: [com.mycompany.mymod_content.Main:preInit:30]: Called Method: preInit event [16:07:31] [Client thread/INFO] [FML]: Applying holder lookups [16:07:31] [Client thread/INFO] [FML]: Holder lookups applied [16:07:31] [Client thread/INFO] [FML]: Injecting itemstacks [16:07:31] [Client thread/INFO] [FML]: Itemstack injection complete [16:07:31] [sound Library Loader/INFO]: Starting up SoundSystem... [16:07:32] [Thread-7/INFO]: Initializing LWJGL OpenAL [16:07:32] [Thread-7/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [16:07:32] [Thread-7/INFO]: OpenAL initialized. [16:07:32] [sound Library Loader/INFO]: Sound engine started [16:07:33] [Client thread/INFO] [FML]: Max texture size: 16384 [16:07:33] [Client thread/INFO]: Created: 16x16 textures-atlas [16:07:33] [Client thread/INFO] [sTDOUT]: [com.mycompany.mymod_content.Main:init:36]: Called Method: init event [16:07:33] [Client thread/INFO] [FML]: Injecting itemstacks [16:07:33] [Client thread/INFO] [FML]: Itemstack injection complete [16:07:33] [Client thread/INFO] [sTDOUT]: [com.mycompany.mymod_content.Main:postInit:42]: Called Method: postInit event [16:07:33] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods [16:07:33] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:mymod Content [16:07:33] [Client thread/INFO]: SoundSystem shutting down... [16:07:34] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com [16:07:34] [sound Library Loader/INFO]: Starting up SoundSystem... [16:07:34] [Thread-9/INFO]: Initializing LWJGL OpenAL [16:07:34] [Thread-9/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [16:07:34] [Thread-9/INFO]: OpenAL initialized. [16:07:34] [sound Library Loader/INFO]: Sound engine started [16:07:35] [Client thread/INFO] [FML]: Max texture size: 16384 [16:07:35] [Client thread/INFO]: Created: 512x512 textures-atlas [16:07:40] [server thread/INFO]: Starting integrated minecraft server version 1.8 [16:07:40] [server thread/INFO]: Generating keypair [16:07:40] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance [16:07:40] [server thread/INFO] [FML]: Applying holder lookups [16:07:40] [server thread/INFO] [FML]: Holder lookups applied [16:07:40] [server thread/INFO] [FML]: Loading dimension 0 (TheNextEpisode) (net.minecraft.server.integrated.IntegratedServer@54d3d8d) [16:07:40] [server thread/INFO] [FML]: Loading dimension 1 (TheNextEpisode) (net.minecraft.server.integrated.IntegratedServer@54d3d8d) [16:07:40] [server thread/INFO] [FML]: Loading dimension -1 (TheNextEpisode) (net.minecraft.server.integrated.IntegratedServer@54d3d8d) [16:07:40] [server thread/INFO]: Preparing start region for level 0 [16:07:41] [server thread/INFO]: Changing view distance to 12, from 10 [16:07:42] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2 [16:07:42] [Netty Server IO #1/INFO] [FML]: Client protocol version 2 [16:07:42] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 4 mods : [email protected],[email protected],[email protected],[email protected] [16:07:42] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established [16:07:42] [server thread/INFO] [FML]: [server thread] Server side modded connection established [16:07:42] [server thread/INFO]: Player404[local:E:239bf040] logged in with entity id 115 at (812.9941968071159, 4.0, 29.578231509824818) [16:07:42] [server thread/INFO]: Player404 joined the game [16:07:49] [server thread/INFO]: Saving and pausing game... [16:07:49] [server thread/INFO]: Saving chunks for level 'TheNextEpisode'/Overworld [16:07:49] [server thread/INFO]: Saving chunks for level 'TheNextEpisode'/Nether [16:07:49] [server thread/INFO]: Saving chunks for level 'TheNextEpisode'/The End [16:08:14] [server thread/INFO]: Saving and pausing game... [16:08:14] [server thread/INFO]: Saving chunks for level 'TheNextEpisode'/Overworld [16:08:14] [server thread/INFO]: Saving chunks for level 'TheNextEpisode'/Nether [16:08:14] [server thread/INFO]: Saving chunks for level 'TheNextEpisode'/The End [16:20:51] [Client thread/INFO] [sTDOUT]: [com.mycompany.mymod_content.blocks.BasicBlock:onBlockPlaced:79]: up [16:20:51] [server thread/INFO] [sTDOUT]: [com.mycompany.mymod_content.blocks.BasicBlock:onBlockPlaced:79]: up [16:20:51] [server thread/INFO] [sTDOUT]: [com.mycompany.mymod_content.blocks.BasicBlock:getMetaFromState:86]: PropertyDirection{name=facing, clazz=class net.minecraft.util.EnumFacing, values=[down, up, north, south, west, east]}toMeta [16:20:51] [server thread/INFO] [sTDOUT]: [com.mycompany.mymod_content.blocks.BasicBlock:getMetaFromState:86]: PropertyDirection{name=facing, clazz=class net.minecraft.util.EnumFacing, values=[down, up, north, south, west, east]}toMeta 2 [16:20:57] [Client thread/INFO] [sTDOUT]: [com.mycompany.mymod_content.blocks.BasicBlock:onBlockPlaced:79]: west [16:20:57] [server thread/INFO] [sTDOUT]: [com.mycompany.mymod_content.blocks.BasicBlock:onBlockPlaced:79]: west [16:20:57] [server thread/INFO] [sTDOUT]: [com.mycompany.mymod_content.blocks.BasicBlock:getMetaFromState:86]: PropertyDirection{name=facing, clazz=class net.minecraft.util.EnumFacing, values=[down, up, north, south, west, east]}toMeta [16:20:57] [server thread/INFO] [sTDOUT]: [com.mycompany.mymod_content.blocks.BasicBlock:getMetaFromState:86]: PropertyDirection{name=facing, clazz=class net.minecraft.util.EnumFacing, values=[down, up, north, south, west, east]}toMeta 4 [16:21:00] [Client thread/INFO] [sTDOUT]: [com.mycompany.mymod_content.blocks.BasicBlock:onBlockPlaced:79]: north [16:21:00] [server thread/INFO] [sTDOUT]: [com.mycompany.mymod_content.blocks.BasicBlock:onBlockPlaced:79]: north [16:21:00] [server thread/INFO] [sTDOUT]: [com.mycompany.mymod_content.blocks.BasicBlock:getMetaFromState:86]: PropertyDirection{name=facing, clazz=class net.minecraft.util.EnumFacing, values=[down, up, north, south, west, east]}toMeta [16:21:00] [server thread/INFO] [sTDOUT]: [com.mycompany.mymod_content.blocks.BasicBlock:getMetaFromState:86]: PropertyDirection{name=facing, clazz=class net.minecraft.util.EnumFacing, values=[down, up, north, south, west, east]}toMeta 2 [16:21:03] [Client thread/INFO] [sTDOUT]: [com.mycompany.mymod_content.blocks.BasicBlock:onBlockPlaced:79]: east [16:21:03] [server thread/INFO] [sTDOUT]: [com.mycompany.mymod_content.blocks.BasicBlock:onBlockPlaced:79]: east [16:21:03] [server thread/INFO] [sTDOUT]: [com.mycompany.mymod_content.blocks.BasicBlock:getMetaFromState:86]: PropertyDirection{name=facing, clazz=class net.minecraft.util.EnumFacing, values=[down, up, north, south, west, east]}toMeta [16:21:03] [server thread/INFO] [sTDOUT]: [com.mycompany.mymod_content.blocks.BasicBlock:getMetaFromState:86]: PropertyDirection{name=facing, clazz=class net.minecraft.util.EnumFacing, values=[down, up, north, south, west, east]}toMeta 5 [16:21:07] [Client thread/INFO] [sTDOUT]: [com.mycompany.mymod_content.blocks.BasicBlock:onBlockPlaced:79]: south [16:21:07] [server thread/INFO] [sTDOUT]: [com.mycompany.mymod_content.blocks.BasicBlock:onBlockPlaced:79]: south [16:21:07] [server thread/INFO] [sTDOUT]: [com.mycompany.mymod_content.blocks.BasicBlock:getMetaFromState:86]: PropertyDirection{name=facing, clazz=class net.minecraft.util.EnumFacing, values=[down, up, north, south, west, east]}toMeta [16:21:07] [server thread/INFO] [sTDOUT]: [com.mycompany.mymod_content.blocks.BasicBlock:getMetaFromState:86]: PropertyDirection{name=facing, clazz=class net.minecraft.util.EnumFacing, values=[down, up, north, south, west, east]}toMeta [16:14:30] [server thread/INFO]: Saving and pausing game... [16:14:30] [server thread/INFO]: Saving chunks for level 'TheNextEpisode'/Overworld [16:14:30] [server thread/INFO]: Saving chunks for level 'TheNextEpisode'/Nether [16:14:30] [server thread/INFO]: Saving chunks for level 'TheNextEpisode'/The End [16:14:56] [server thread/INFO]: Player404 has just earned the achievement [Taking Inventory] [16:14:56] [Client thread/INFO]: [CHAT] Player404 has just earned the achievement [Taking Inventory] [16:15:03] [server thread/INFO]: Saving and pausing game... [16:15:03] [server thread/INFO]: Saving chunks for level 'TheNextEpisode'/Overworld [16:15:03] [server thread/INFO]: Saving chunks for level 'TheNextEpisode'/Nether [16:15:03] [server thread/INFO]: Saving chunks for level 'TheNextEpisode'/The End [16:15:15] [Client thread/INFO]: Stopping! [16:15:15] [Client thread/INFO]: SoundSystem shutting down... [16:15:15] [server thread/INFO]: Stopping server [16:15:15] [server thread/INFO]: Saving players [16:15:15] [server thread/INFO]: Saving worlds [16:15:15] [server thread/INFO]: Saving chunks for level 'TheNextEpisode'/Overworld [16:15:15] [server thread/INFO]: Saving chunks for level 'TheNextEpisode'/Nether [16:15:15] [server thread/INFO]: Saving chunks for level 'TheNextEpisode'/The End [16:15:15] [server thread/INFO] [FML]: Unloading dimension 0 [16:15:15] [server thread/INFO] [FML]: Unloading dimension -1 [16:15:15] [server thread/INFO] [FML]: Unloading dimension 1 [16:15:15] [server thread/INFO] [FML]: Applying holder lookups [16:15:15] [server thread/INFO] [FML]: Holder lookups applied [16:15:15] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com package com.mycompany.modname_content.blocks; import java.util.Iterator; import com.google.common.base.Predicate; import com.mycompany.modname_content.Main; import com.mycompany.modname_content.network.ModGuiHandler; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.block.properties.IProperty; import net.minecraft.block.properties.PropertyDirection; import net.minecraft.block.state.BlockState; import net.minecraft.block.state.IBlockState; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.BlockPos; import net.minecraft.util.EnumFacing; import net.minecraft.util.MathHelper; import net.minecraft.world.World; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; public class BasicBlock extends Block { public static final PropertyDirection FACING = PropertyDirection.create("facing"); public BasicBlock(String unlocalizedName, Material material, float hardness, float resistance) { super(material); this.setUnlocalizedName(unlocalizedName); this.setCreativeTab(CreativeTabs.tabBlock); this.setHardness(hardness); this.setResistance(resistance); this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.UP)); System.out.println(FACING); } public BasicBlock(String unlocalizedName, float hardness, float resistance) { this(unlocalizedName, Material.carpet, hardness, resistance); this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.UP)); System.out.println(FACING); } public BasicBlock(String unlocalizedName) { this(unlocalizedName, 2.0f, 10.0f); this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.UP)); System.out.println(FACING); } @Override protected BlockState createBlockState() { return new BlockState(this, new IProperty[]{FACING}); } public boolean isOpaqueCube() { return false; } public boolean isFullCube() { return false; } @Override public IBlockState onBlockPlaced(World world, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer) { System.out.println(facing); return this.getDefaultState().withProperty(FACING, getFacingFromEntity(world, pos, placer)); } public int getMetaFromState(IBlockState state) { System.out.println(FACING + "toMeta"); return ((EnumFacing) state.getValue(FACING)).getIndex(); } public IBlockState getStateFromMeta(int meta) { System.out.println(meta); return this.getDefaultState().withProperty(FACING, EnumFacing.getFront(meta)); } public void onBlockPlacedBy(World worldIn, BlockPos pos, IBlockState state, EntityLivingBase placer, ItemStack stack) { worldIn.setBlockState(pos, state.withProperty(FACING, getFacingFromEntity(worldIn, pos, placer)), 2); } /* @Override public boolean onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumFacing side, float hitX, float hitY, float hitZ) { if (worldIn.isRemote) { playerIn.openGui(Main.instance, 0, worldIn, (int) playerIn.posX, (int) playerIn.posY, (int) playerIn.posZ); } return false; } */ public static EnumFacing getFacingFromEntity(World worldIn, BlockPos clickedBlock, EntityLivingBase entityIn) { if (MathHelper.abs((float)entityIn.posX - (float)clickedBlock.getX()) < 2.0F && MathHelper.abs((float)entityIn.posZ - (float)clickedBlock.getZ()) < 2.0F) { double d0 = entityIn.posY + (double)entityIn.getEyeHeight(); if (d0 - (double)clickedBlock.getY() > 2.0D) { return EnumFacing.UP; } if ((double)clickedBlock.getY() - d0 > 0.0D) { return EnumFacing.DOWN; } } return entityIn.getHorizontalFacing().getOpposite(); } } package com.mycompany.mymod_content.client.render.blocks; import com.mycompany.mymod_content.Main; import com.mycompany.mymod_content.blocks.ModBlock; import net.minecraft.block.Block; import net.minecraft.client.Minecraft; import net.minecraft.client.resources.model.ModelBakery; import net.minecraft.client.resources.model.ModelResourceLocation; import net.minecraft.item.Item; public final class BlockRenderRegister { public static void preInit() { } public static void registerBlockRenderer() { reg(ModBlock.treasureMap2); } public static String modid = Main.MODID; public static void reg(Block block) { Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(block), 0, new ModelResourceLocation(modid + ":" + block.getUnlocalizedName().substring(5), "inventory")); } } package com.mycompany.mymod_content; import com.mycompany.mymod_content.client.render.blocks.BlockRenderRegister; import com.mycompany.mymod_content.client.render.items.ItemRenderRegister; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; public class ClientProxy extends CommonProxy{ @Override public void preInit(FMLPreInitializationEvent e) { // TODO Auto-generated method stub super.preInit(e); BlockRenderRegister.preInit(); } @Override public void init(FMLInitializationEvent e) { // TODO Auto-generated method stub super.init(e); ItemRenderRegister.registerItemRenderer(); BlockRenderRegister.registerBlockRenderer(); } @Override public void postInit(FMLPostInitializationEvent e) { // TODO Auto-generated method stub super.postInit(e); } } package com.mycompany.mymod_content.blocks; import net.minecraft.block.Block; import net.minecraftforge.fml.common.registry.GameRegistry; public final class ModBlock { public static Block treasureMap2; public static void createBlocks() { GameRegistry.registerBlock(treasureMap2 = new BasicBlock("treasure_map2").setLightLevel(1.0f), "treasure_map2"); } } { "variants": { "facing=north": { "model": "mymod_content:treasure_map2_wall_north" }, "facing=south": { "model": "mymod_content:treasure_map2_wall_north" }, "facing=east": { "model": "mymod_content:treasure_map2", "z": 45 }, "facing=west": { "model": "mymod_content:treasure_map2", "z": 45 }, "facing=up": { "model": "mymod_content:treasure_map2" }, "facing=down": { "model": "mymod_content:treasure_map2" } } } { "parent": "mymod_content:model/treasure_block_wall_north", "textures": { "texture": "mymod_content:blocks/treasure_map2" } } { "parent": "mymod_content:model/treasure_block_wall_north", "textures": { "texture": "mymod_content:blocks/treasure_map2" } } { "ambientocclusion": false, "textures": { "particle": "#texture" }, "elements": [ { "from": [ 5, 6, 2.5 ], "to": [ 11, 10, 2.6 ], "shade": false, "rotation": { "origin": [ 8, 8, 8 ], "axis": "x", "angle": 0, "rescale": true }, "faces": { "down": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture", "cullface": "down" }, "up": { "uv": [ 0, 0, 16, 15 ], "texture": "#texture", "rotation": 0 }, "north": { "uv": [ 6, 6, 10, 10 ], "texture": "#texture" }, "south": { "uv": [ 6, 6, 10, 10 ], "texture": "#texture" }, "west": { "uv": [ 6, 6, 10, 10 ], "texture": "#texture" }, "east": { "uv": [ 6, 6, 10, 10 ], "texture": "#texture" } } } ] } { "ambientocclusion": false, "textures": { "particle": "#texture" }, "elements": [ { "from": [ 5, 0, 6 ], "to": [ 11, 0.1, 10 ], "shade": false, "rotation": { "origin": [ 8, 8, 8 ], "axis": "y", "angle": 45, "rescale": true }, "faces": { "down": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture", "cullface": "down" }, "up": { "uv": [ 1, 1, 15, 15 ], "texture": "#texture" }, "north": { "uv": [ 6, 6, 10, 10 ], "texture": "#texture" }, "south": { "uv": [ 6, 6, 10, 10 ], "texture": "#texture" }, "west": { "uv": [ 6, 6, 10, 10 ], "texture": "#texture" }, "east": { "uv": [ 6, 6, 10, 10 ], "texture": "#texture" } } } ] } mymod
  4. Hi All I've seen a lot of posts about this but I can't quit nail it down. I've troubleshot a number of errors, but I'm not sure what to do about this one. All code is below - any helping eyes on this would be fantastic and I would be forever grateful -J Error: [17:12:36] [main/INFO] [GradleStart]: Extra: [] [17:12:36] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, /Users/jamie/.gradle/caches/minecraft/assets, --assetIndex, 1.8, --accessToken{REDACTED}, --version, 1.8, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker] [17:12:36] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [17:12:36] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [17:12:36] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [17:12:36] [main/INFO] [FML]: Forge Mod Loader version 11.14.3.1521 for Minecraft 1.8 loading [17:12:36] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_60, running on Mac OS X:x86_64:10.10.5, installed at /Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/jre [17:12:36] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [17:12:36] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [17:12:36] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [17:12:36] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [17:12:36] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [17:12:36] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [17:12:36] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [17:12:36] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [17:12:36] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [17:12:36] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [17:12:37] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [17:12:37] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [17:12:37] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [17:12:37] [Client thread/INFO]: Setting user: Player591 [17:12:39] [Client thread/INFO]: LWJGL Version: 2.9.2 [17:12:39] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [17:12:39] [Client thread/INFO] [FML]: MinecraftForge v11.14.3.1521 Initialized [17:12:39] [Client thread/INFO] [FML]: Replaced 204 ore recipies [17:12:39] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [17:12:39] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer [17:12:39] [Client thread/INFO] [FML]: Searching /Users/jamie/Desktop/forge-1/run/mods for mods [17:12:40] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [17:12:41] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, uncharted_content] at CLIENT [17:12:41] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, uncharted_content] at SERVER [17:12:41] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Uncharted Content [17:12:41] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [17:12:41] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations [17:12:41] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations [17:12:41] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations [17:12:41] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [17:12:41] [Client thread/INFO] [sTDOUT]: [com.mediacom.uncharted_content.Main:preInit:30]: Called Method: preInit event [17:12:41] [Client thread/INFO] [FML]: Applying holder lookups [17:12:41] [Client thread/INFO] [FML]: Holder lookups applied [17:12:41] [Client thread/INFO] [FML]: Injecting itemstacks [17:12:41] [Client thread/INFO] [FML]: Itemstack injection complete [17:12:41] [sound Library Loader/INFO]: Starting up SoundSystem... [17:12:41] [Thread-7/INFO]: Initializing LWJGL OpenAL [17:12:41] [Thread-7/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [17:12:41] [Thread-7/INFO]: OpenAL initialized. [17:12:42] [sound Library Loader/INFO]: Sound engine started [17:12:42] [Client thread/WARN]: Unable to load definition uncharted_content:treasure_map2#facing=north java.lang.RuntimeException: Encountered an exception when loading model definition of 'uncharted_content:treasure_map2#facing=north' from: 'uncharted_content:blockstates/treasure_map2.json' in resourcepack: 'FMLFileResourcePack:Uncharted Content' at net.minecraft.client.resources.model.ModelBakery.getModelBlockDefinition(Unknown Source) ~[ModelBakery.class:?] at net.minecraft.client.resources.model.ModelBakery.loadVariants(Unknown Source) [ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.loadBlocks(Unknown Source) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(Unknown Source) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(Unknown Source) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(Unknown Source) [simpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.startGame(Unknown Source) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Unknown Source) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Unknown Source) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_60] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_60] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_60] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_60] at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?] at GradleStart.main(Unknown Source) [start/:?] Caused by: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected name at line 4 column 71 at com.google.gson.Gson.fromJson(Gson.java:818) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:768) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:717) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:689) ~[Gson.class:?] at net.minecraftforge.client.model.BlockStateLoader.load(Unknown Source) ~[blockStateLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(Unknown Source) ~[ModelBlockDefinition.class:?] ... 21 more Caused by: com.google.gson.stream.MalformedJsonException: Expected name at line 4 column 71 at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?] at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:494) ~[JsonReader.class:?] at com.google.gson.stream.JsonReader.skipValue(JsonReader.java:1209) ~[JsonReader.class:?] at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:170) ~[ReflectiveTypeAdapterFactory$Adapter.class:?] at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:768) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:717) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:689) ~[Gson.class:?] at net.minecraftforge.client.model.BlockStateLoader.load(Unknown Source) ~[blockStateLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(Unknown Source) ~[ModelBlockDefinition.class:?] ... 21 more [17:12:42] [Client thread/WARN]: Unable to load definition uncharted_content:treasure_map2#facing=east java.lang.RuntimeException: Encountered an exception when loading model definition of 'uncharted_content:treasure_map2#facing=east' from: 'uncharted_content:blockstates/treasure_map2.json' in resourcepack: 'FMLFileResourcePack:Uncharted Content' at net.minecraft.client.resources.model.ModelBakery.getModelBlockDefinition(Unknown Source) ~[ModelBakery.class:?] at net.minecraft.client.resources.model.ModelBakery.loadVariants(Unknown Source) [ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.loadBlocks(Unknown Source) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(Unknown Source) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(Unknown Source) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(Unknown Source) [simpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.startGame(Unknown Source) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Unknown Source) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Unknown Source) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_60] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_60] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_60] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_60] at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?] at GradleStart.main(Unknown Source) [start/:?] Caused by: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected name at line 4 column 71 at com.google.gson.Gson.fromJson(Gson.java:818) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:768) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:717) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:689) ~[Gson.class:?] at net.minecraftforge.client.model.BlockStateLoader.load(Unknown Source) ~[blockStateLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(Unknown Source) ~[ModelBlockDefinition.class:?] ... 21 more Caused by: com.google.gson.stream.MalformedJsonException: Expected name at line 4 column 71 at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?] at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:494) ~[JsonReader.class:?] at com.google.gson.stream.JsonReader.skipValue(JsonReader.java:1209) ~[JsonReader.class:?] at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:170) ~[ReflectiveTypeAdapterFactory$Adapter.class:?] at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:768) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:717) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:689) ~[Gson.class:?] at net.minecraftforge.client.model.BlockStateLoader.load(Unknown Source) ~[blockStateLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(Unknown Source) ~[ModelBlockDefinition.class:?] ... 21 more [17:12:42] [Client thread/WARN]: Unable to load definition uncharted_content:treasure_map2#facing=south java.lang.RuntimeException: Encountered an exception when loading model definition of 'uncharted_content:treasure_map2#facing=south' from: 'uncharted_content:blockstates/treasure_map2.json' in resourcepack: 'FMLFileResourcePack:Uncharted Content' at net.minecraft.client.resources.model.ModelBakery.getModelBlockDefinition(Unknown Source) ~[ModelBakery.class:?] at net.minecraft.client.resources.model.ModelBakery.loadVariants(Unknown Source) [ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.loadBlocks(Unknown Source) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(Unknown Source) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(Unknown Source) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(Unknown Source) [simpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.startGame(Unknown Source) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Unknown Source) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Unknown Source) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_60] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_60] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_60] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_60] at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?] at GradleStart.main(Unknown Source) [start/:?] Caused by: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected name at line 4 column 71 at com.google.gson.Gson.fromJson(Gson.java:818) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:768) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:717) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:689) ~[Gson.class:?] at net.minecraftforge.client.model.BlockStateLoader.load(Unknown Source) ~[blockStateLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(Unknown Source) ~[ModelBlockDefinition.class:?] ... 21 more Caused by: com.google.gson.stream.MalformedJsonException: Expected name at line 4 column 71 at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?] at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:494) ~[JsonReader.class:?] at com.google.gson.stream.JsonReader.skipValue(JsonReader.java:1209) ~[JsonReader.class:?] at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:170) ~[ReflectiveTypeAdapterFactory$Adapter.class:?] at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:768) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:717) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:689) ~[Gson.class:?] at net.minecraftforge.client.model.BlockStateLoader.load(Unknown Source) ~[blockStateLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(Unknown Source) ~[ModelBlockDefinition.class:?] ... 21 more [17:12:42] [Client thread/WARN]: Unable to load definition uncharted_content:treasure_map2#facing=down java.lang.RuntimeException: Encountered an exception when loading model definition of 'uncharted_content:treasure_map2#facing=down' from: 'uncharted_content:blockstates/treasure_map2.json' in resourcepack: 'FMLFileResourcePack:Uncharted Content' at net.minecraft.client.resources.model.ModelBakery.getModelBlockDefinition(Unknown Source) ~[ModelBakery.class:?] at net.minecraft.client.resources.model.ModelBakery.loadVariants(Unknown Source) [ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.loadBlocks(Unknown Source) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(Unknown Source) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(Unknown Source) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(Unknown Source) [simpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.startGame(Unknown Source) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Unknown Source) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Unknown Source) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_60] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_60] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_60] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_60] at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?] at GradleStart.main(Unknown Source) [start/:?] Caused by: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected name at line 4 column 71 at com.google.gson.Gson.fromJson(Gson.java:818) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:768) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:717) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:689) ~[Gson.class:?] at net.minecraftforge.client.model.BlockStateLoader.load(Unknown Source) ~[blockStateLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(Unknown Source) ~[ModelBlockDefinition.class:?] ... 21 more Caused by: com.google.gson.stream.MalformedJsonException: Expected name at line 4 column 71 at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?] at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:494) ~[JsonReader.class:?] at com.google.gson.stream.JsonReader.skipValue(JsonReader.java:1209) ~[JsonReader.class:?] at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:170) ~[ReflectiveTypeAdapterFactory$Adapter.class:?] at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:768) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:717) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:689) ~[Gson.class:?] at net.minecraftforge.client.model.BlockStateLoader.load(Unknown Source) ~[blockStateLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(Unknown Source) ~[ModelBlockDefinition.class:?] ... 21 more [17:12:42] [Client thread/WARN]: Unable to load definition uncharted_content:treasure_map2#facing=west java.lang.RuntimeException: Encountered an exception when loading model definition of 'uncharted_content:treasure_map2#facing=west' from: 'uncharted_content:blockstates/treasure_map2.json' in resourcepack: 'FMLFileResourcePack:Uncharted Content' at net.minecraft.client.resources.model.ModelBakery.getModelBlockDefinition(Unknown Source) ~[ModelBakery.class:?] at net.minecraft.client.resources.model.ModelBakery.loadVariants(Unknown Source) [ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.loadBlocks(Unknown Source) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(Unknown Source) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(Unknown Source) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(Unknown Source) [simpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.startGame(Unknown Source) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Unknown Source) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Unknown Source) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_60] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_60] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_60] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_60] at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?] at GradleStart.main(Unknown Source) [start/:?] Caused by: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected name at line 4 column 71 at com.google.gson.Gson.fromJson(Gson.java:818) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:768) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:717) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:689) ~[Gson.class:?] at net.minecraftforge.client.model.BlockStateLoader.load(Unknown Source) ~[blockStateLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(Unknown Source) ~[ModelBlockDefinition.class:?] ... 21 more Caused by: com.google.gson.stream.MalformedJsonException: Expected name at line 4 column 71 at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?] at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:494) ~[JsonReader.class:?] at com.google.gson.stream.JsonReader.skipValue(JsonReader.java:1209) ~[JsonReader.class:?] at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:170) ~[ReflectiveTypeAdapterFactory$Adapter.class:?] at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:768) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:717) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:689) ~[Gson.class:?] at net.minecraftforge.client.model.BlockStateLoader.load(Unknown Source) ~[blockStateLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(Unknown Source) ~[ModelBlockDefinition.class:?] ... 21 more [17:12:43] [Client thread/WARN]: Unable to load definition uncharted_content:treasure_map2#facing=up java.lang.RuntimeException: Encountered an exception when loading model definition of 'uncharted_content:treasure_map2#facing=up' from: 'uncharted_content:blockstates/treasure_map2.json' in resourcepack: 'FMLFileResourcePack:Uncharted Content' at net.minecraft.client.resources.model.ModelBakery.getModelBlockDefinition(Unknown Source) ~[ModelBakery.class:?] at net.minecraft.client.resources.model.ModelBakery.loadVariants(Unknown Source) [ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.loadBlocks(Unknown Source) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(Unknown Source) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(Unknown Source) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(Unknown Source) [simpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.startGame(Unknown Source) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Unknown Source) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Unknown Source) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_60] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_60] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_60] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_60] at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?] at GradleStart.main(Unknown Source) [start/:?] Caused by: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected name at line 4 column 71 at com.google.gson.Gson.fromJson(Gson.java:818) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:768) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:717) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:689) ~[Gson.class:?] at net.minecraftforge.client.model.BlockStateLoader.load(Unknown Source) ~[blockStateLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(Unknown Source) ~[ModelBlockDefinition.class:?] ... 21 more Caused by: com.google.gson.stream.MalformedJsonException: Expected name at line 4 column 71 at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?] at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:494) ~[JsonReader.class:?] at com.google.gson.stream.JsonReader.skipValue(JsonReader.java:1209) ~[JsonReader.class:?] at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:170) ~[ReflectiveTypeAdapterFactory$Adapter.class:?] at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:768) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:717) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:689) ~[Gson.class:?] at net.minecraftforge.client.model.BlockStateLoader.load(Unknown Source) ~[blockStateLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(Unknown Source) ~[ModelBlockDefinition.class:?] ... 21 more [17:12:43] [Client thread/INFO] [FML]: Max texture size: 16384 [17:12:43] [Client thread/INFO]: Created: 16x16 textures-atlas [17:12:43] [Client thread/INFO] [sTDOUT]: [com.mediacom.uncharted_content.Main:init:36]: Called Method: init event [17:12:43] [Client thread/INFO] [FML]: Injecting itemstacks [17:12:43] [Client thread/INFO] [FML]: Itemstack injection complete [17:12:43] [Client thread/INFO] [sTDOUT]: [com.mediacom.uncharted_content.Main:postInit:42]: Called Method: postInit event [17:12:43] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods [17:12:43] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Uncharted Content [17:12:43] [Client thread/INFO]: SoundSystem shutting down... [17:12:44] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com [17:12:44] [sound Library Loader/INFO]: Starting up SoundSystem... [17:12:44] [Thread-9/INFO]: Initializing LWJGL OpenAL [17:12:44] [Thread-9/INFO]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [17:12:44] [Thread-9/INFO]: OpenAL initialized. [17:12:44] [sound Library Loader/INFO]: Sound engine started [17:12:44] [Client thread/WARN]: Unable to load definition uncharted_content:treasure_map2#facing=north java.lang.RuntimeException: Encountered an exception when loading model definition of 'uncharted_content:treasure_map2#facing=north' from: 'uncharted_content:blockstates/treasure_map2.json' in resourcepack: 'FMLFileResourcePack:Uncharted Content' at net.minecraft.client.resources.model.ModelBakery.getModelBlockDefinition(Unknown Source) ~[ModelBakery.class:?] at net.minecraft.client.resources.model.ModelBakery.loadVariants(Unknown Source) [ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.loadBlocks(Unknown Source) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(Unknown Source) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(Unknown Source) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(Unknown Source) [simpleReloadableResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(Unknown Source) [simpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.refreshResources(Unknown Source) [Minecraft.class:?] at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(Unknown Source) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Unknown Source) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Unknown Source) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Unknown Source) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_60] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_60] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_60] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_60] at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?] at GradleStart.main(Unknown Source) [start/:?] Caused by: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected name at line 4 column 71 at com.google.gson.Gson.fromJson(Gson.java:818) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:768) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:717) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:689) ~[Gson.class:?] at net.minecraftforge.client.model.BlockStateLoader.load(Unknown Source) ~[blockStateLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(Unknown Source) ~[ModelBlockDefinition.class:?] ... 24 more Caused by: com.google.gson.stream.MalformedJsonException: Expected name at line 4 column 71 at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?] at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:494) ~[JsonReader.class:?] at com.google.gson.stream.JsonReader.skipValue(JsonReader.java:1209) ~[JsonReader.class:?] at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:170) ~[ReflectiveTypeAdapterFactory$Adapter.class:?] at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:768) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:717) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:689) ~[Gson.class:?] at net.minecraftforge.client.model.BlockStateLoader.load(Unknown Source) ~[blockStateLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(Unknown Source) ~[ModelBlockDefinition.class:?] ... 24 more [17:12:44] [Client thread/WARN]: Unable to load definition uncharted_content:treasure_map2#facing=east java.lang.RuntimeException: Encountered an exception when loading model definition of 'uncharted_content:treasure_map2#facing=east' from: 'uncharted_content:blockstates/treasure_map2.json' in resourcepack: 'FMLFileResourcePack:Uncharted Content' at net.minecraft.client.resources.model.ModelBakery.getModelBlockDefinition(Unknown Source) ~[ModelBakery.class:?] at net.minecraft.client.resources.model.ModelBakery.loadVariants(Unknown Source) [ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.loadBlocks(Unknown Source) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(Unknown Source) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(Unknown Source) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(Unknown Source) [simpleReloadableResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(Unknown Source) [simpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.refreshResources(Unknown Source) [Minecraft.class:?] at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(Unknown Source) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Unknown Source) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Unknown Source) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Unknown Source) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_60] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_60] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_60] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_60] at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?] at GradleStart.main(Unknown Source) [start/:?] Caused by: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected name at line 4 column 71 at com.google.gson.Gson.fromJson(Gson.java:818) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:768) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:717) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:689) ~[Gson.class:?] at net.minecraftforge.client.model.BlockStateLoader.load(Unknown Source) ~[blockStateLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(Unknown Source) ~[ModelBlockDefinition.class:?] ... 24 more Caused by: com.google.gson.stream.MalformedJsonException: Expected name at line 4 column 71 at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?] at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:494) ~[JsonReader.class:?] at com.google.gson.stream.JsonReader.skipValue(JsonReader.java:1209) ~[JsonReader.class:?] at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:170) ~[ReflectiveTypeAdapterFactory$Adapter.class:?] at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:768) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:717) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:689) ~[Gson.class:?] at net.minecraftforge.client.model.BlockStateLoader.load(Unknown Source) ~[blockStateLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(Unknown Source) ~[ModelBlockDefinition.class:?] ... 24 more [17:12:44] [Client thread/WARN]: Unable to load definition uncharted_content:treasure_map2#facing=south java.lang.RuntimeException: Encountered an exception when loading model definition of 'uncharted_content:treasure_map2#facing=south' from: 'uncharted_content:blockstates/treasure_map2.json' in resourcepack: 'FMLFileResourcePack:Uncharted Content' at net.minecraft.client.resources.model.ModelBakery.getModelBlockDefinition(Unknown Source) ~[ModelBakery.class:?] at net.minecraft.client.resources.model.ModelBakery.loadVariants(Unknown Source) [ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.loadBlocks(Unknown Source) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(Unknown Source) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(Unknown Source) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(Unknown Source) [simpleReloadableResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(Unknown Source) [simpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.refreshResources(Unknown Source) [Minecraft.class:?] at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(Unknown Source) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Unknown Source) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Unknown Source) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Unknown Source) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_60] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_60] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_60] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_60] at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?] at GradleStart.main(Unknown Source) [start/:?] Caused by: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected name at line 4 column 71 at com.google.gson.Gson.fromJson(Gson.java:818) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:768) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:717) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:689) ~[Gson.class:?] at net.minecraftforge.client.model.BlockStateLoader.load(Unknown Source) ~[blockStateLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(Unknown Source) ~[ModelBlockDefinition.class:?] ... 24 more Caused by: com.google.gson.stream.MalformedJsonException: Expected name at line 4 column 71 at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?] at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:494) ~[JsonReader.class:?] at com.google.gson.stream.JsonReader.skipValue(JsonReader.java:1209) ~[JsonReader.class:?] at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:170) ~[ReflectiveTypeAdapterFactory$Adapter.class:?] at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:768) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:717) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:689) ~[Gson.class:?] at net.minecraftforge.client.model.BlockStateLoader.load(Unknown Source) ~[blockStateLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(Unknown Source) ~[ModelBlockDefinition.class:?] ... 24 more [17:12:44] [Client thread/WARN]: Unable to load definition uncharted_content:treasure_map2#facing=down java.lang.RuntimeException: Encountered an exception when loading model definition of 'uncharted_content:treasure_map2#facing=down' from: 'uncharted_content:blockstates/treasure_map2.json' in resourcepack: 'FMLFileResourcePack:Uncharted Content' at net.minecraft.client.resources.model.ModelBakery.getModelBlockDefinition(Unknown Source) ~[ModelBakery.class:?] at net.minecraft.client.resources.model.ModelBakery.loadVariants(Unknown Source) [ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.loadBlocks(Unknown Source) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(Unknown Source) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(Unknown Source) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(Unknown Source) [simpleReloadableResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(Unknown Source) [simpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.refreshResources(Unknown Source) [Minecraft.class:?] at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(Unknown Source) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Unknown Source) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Unknown Source) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Unknown Source) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_60] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_60] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_60] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_60] at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?] at GradleStart.main(Unknown Source) [start/:?] Caused by: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected name at line 4 column 71 at com.google.gson.Gson.fromJson(Gson.java:818) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:768) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:717) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:689) ~[Gson.class:?] at net.minecraftforge.client.model.BlockStateLoader.load(Unknown Source) ~[blockStateLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(Unknown Source) ~[ModelBlockDefinition.class:?] ... 24 more Caused by: com.google.gson.stream.MalformedJsonException: Expected name at line 4 column 71 at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?] at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:494) ~[JsonReader.class:?] at com.google.gson.stream.JsonReader.skipValue(JsonReader.java:1209) ~[JsonReader.class:?] at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:170) ~[ReflectiveTypeAdapterFactory$Adapter.class:?] at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:768) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:717) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:689) ~[Gson.class:?] at net.minecraftforge.client.model.BlockStateLoader.load(Unknown Source) ~[blockStateLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(Unknown Source) ~[ModelBlockDefinition.class:?] ... 24 more [17:12:44] [Client thread/WARN]: Unable to load definition uncharted_content:treasure_map2#facing=west java.lang.RuntimeException: Encountered an exception when loading model definition of 'uncharted_content:treasure_map2#facing=west' from: 'uncharted_content:blockstates/treasure_map2.json' in resourcepack: 'FMLFileResourcePack:Uncharted Content' at net.minecraft.client.resources.model.ModelBakery.getModelBlockDefinition(Unknown Source) ~[ModelBakery.class:?] at net.minecraft.client.resources.model.ModelBakery.loadVariants(Unknown Source) [ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.loadBlocks(Unknown Source) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(Unknown Source) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(Unknown Source) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(Unknown Source) [simpleReloadableResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(Unknown Source) [simpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.refreshResources(Unknown Source) [Minecraft.class:?] at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(Unknown Source) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Unknown Source) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Unknown Source) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Unknown Source) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_60] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_60] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_60] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_60] at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?] at GradleStart.main(Unknown Source) [start/:?] Caused by: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected name at line 4 column 71 at com.google.gson.Gson.fromJson(Gson.java:818) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:768) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:717) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:689) ~[Gson.class:?] at net.minecraftforge.client.model.BlockStateLoader.load(Unknown Source) ~[blockStateLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(Unknown Source) ~[ModelBlockDefinition.class:?] ... 24 more Caused by: com.google.gson.stream.MalformedJsonException: Expected name at line 4 column 71 at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?] at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:494) ~[JsonReader.class:?] at com.google.gson.stream.JsonReader.skipValue(JsonReader.java:1209) ~[JsonReader.class:?] at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:170) ~[ReflectiveTypeAdapterFactory$Adapter.class:?] at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:768) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:717) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:689) ~[Gson.class:?] at net.minecraftforge.client.model.BlockStateLoader.load(Unknown Source) ~[blockStateLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(Unknown Source) ~[ModelBlockDefinition.class:?] ... 24 more [17:12:44] [Client thread/WARN]: Unable to load definition uncharted_content:treasure_map2#facing=up java.lang.RuntimeException: Encountered an exception when loading model definition of 'uncharted_content:treasure_map2#facing=up' from: 'uncharted_content:blockstates/treasure_map2.json' in resourcepack: 'FMLFileResourcePack:Uncharted Content' at net.minecraft.client.resources.model.ModelBakery.getModelBlockDefinition(Unknown Source) ~[ModelBakery.class:?] at net.minecraft.client.resources.model.ModelBakery.loadVariants(Unknown Source) [ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.loadBlocks(Unknown Source) [ModelLoader.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(Unknown Source) [ModelLoader.class:?] at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(Unknown Source) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(Unknown Source) [simpleReloadableResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(Unknown Source) [simpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.refreshResources(Unknown Source) [Minecraft.class:?] at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(Unknown Source) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Unknown Source) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Unknown Source) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Unknown Source) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_60] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_60] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_60] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_60] at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?] at GradleStart.main(Unknown Source) [start/:?] Caused by: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Expected name at line 4 column 71 at com.google.gson.Gson.fromJson(Gson.java:818) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:768) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:717) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:689) ~[Gson.class:?] at net.minecraftforge.client.model.BlockStateLoader.load(Unknown Source) ~[blockStateLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(Unknown Source) ~[ModelBlockDefinition.class:?] ... 24 more Caused by: com.google.gson.stream.MalformedJsonException: Expected name at line 4 column 71 at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?] at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:494) ~[JsonReader.class:?] at com.google.gson.stream.JsonReader.skipValue(JsonReader.java:1209) ~[JsonReader.class:?] at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:170) ~[ReflectiveTypeAdapterFactory$Adapter.class:?] at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:768) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:717) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:689) ~[Gson.class:?] at net.minecraftforge.client.model.BlockStateLoader.load(Unknown Source) ~[blockStateLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(Unknown Source) ~[ModelBlockDefinition.class:?] ... 24 more [17:12:45] [Client thread/INFO] [FML]: Max texture size: 16384 [17:12:45] [Client thread/INFO]: Created: 512x512 textures-atlas BlockRenderRegister Class: package com.mymod.mymodname.client.render.blocks; import com.mymod.mymodname.Main; import com.mymod.mymodname.blocks.ModBlock; import net.minecraft.block.Block; import net.minecraft.client.Minecraft; import net.minecraft.client.resources.model.ModelResourceLocation; import net.minecraft.item.Item; public final class BlockRenderRegister { public static void registerBlockRenderer() { reg(ModBlock.treasureMap2); } public static String modid = Main.MODID; public static void reg(Block block) { Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(block), 0, new ModelResourceLocation(modid + ":" + block.getUnlocalizedName().substring(5), "inventory")); } } Block Class package com.mediacom.uncharted_content.blocks; import java.util.Iterator; import com.google.common.base.Predicate; import com.mediacom.uncharted_content.Main; import com.mediacom.uncharted_content.network.ModGuiHandler; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.block.properties.IProperty; import net.minecraft.block.properties.PropertyDirection; import net.minecraft.block.state.BlockState; import net.minecraft.block.state.IBlockState; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.BlockPos; import net.minecraft.util.EnumFacing; import net.minecraft.util.MathHelper; import net.minecraft.world.World; public class BasicBlock extends Block{ public static final PropertyDirection FACING = PropertyDirection.create("facing"); //public static final PropertyDirection FACING = PropertyDirection.create("facing"); public BasicBlock(String unlocalizedName, Material material, float hardness, float resistance) { super(material); this.setUnlocalizedName(unlocalizedName); this.setCreativeTab(CreativeTabs.tabBlock); this.setHardness(hardness); this.setResistance(resistance); } protected BlockState createBlockState() { return new BlockState(this, new IProperty[]{FACING}); } public BasicBlock(String unlocalizedName, float hardness, float resistance) { this(unlocalizedName, Material.carpet, hardness, resistance); } public BasicBlock(String unlocalizedName) { this(unlocalizedName, 2.0f, 10.0f); } public void onBlockPlacedBy(World worldIn, BlockPos pos, IBlockState state, EntityLivingBase placer, ItemStack stack) { worldIn.setBlockState(pos, state.withProperty(FACING, getFacingFromEntity(worldIn, pos, placer)), 2); } private Comparable getFacingFromEntity(World worldIn, BlockPos pos, EntityLivingBase placer) { // TODO Auto-generated method stub return null; } public int getMetaFromState(IBlockState state) { return 0; } public IBlockState getStateFromMeta(int meta) { return this.getDefaultState(); } public IBlockState onBlockPlaced(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer) { return this.getDefaultState().withProperty(FACING, facing); } @Override public boolean onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumFacing side, float hitX, float hitY, float hitZ) { if (worldIn.isRemote) { playerIn.openGui(Main.instance, 0, worldIn, (int) playerIn.posX, (int) playerIn.posY, (int) playerIn.posZ); } return false; } static final class SwitchEnumFacing { static final int[] FACING_LOOKUP = new int[EnumFacing.values().length]; static { try { FACING_LOOKUP[EnumFacing.DOWN.ordinal()] = 1; } catch (NoSuchFieldError var6) { ; } try { FACING_LOOKUP[EnumFacing.UP.ordinal()] = 2; } catch (NoSuchFieldError var5) { ; } try { FACING_LOOKUP[EnumFacing.NORTH.ordinal()] = 3; } catch (NoSuchFieldError var4) { ; } try { FACING_LOOKUP[EnumFacing.SOUTH.ordinal()] = 4; } catch (NoSuchFieldError var3) { ; } try { FACING_LOOKUP[EnumFacing.WEST.ordinal()] = 5; } catch (NoSuchFieldError var2) { ; } try { FACING_LOOKUP[EnumFacing.EAST.ordinal()] = 6; } catch (NoSuchFieldError var1) { ; } } } } Parent Model File { "ambientocclusion": false, "textures": { "particle": "#texture" }, "elements": [ { "from": [ 5, 0, 6 ], "to": [ 11, 0.1, 10 ], "shade": false, "rotation": { "origin": [ 8, 8, 8 ], "axis": "y", "angle": 45, "rescale": true }, "faces": { "down": { "uv": [ 0, 0, 16, 16 ], "texture": "#texture", "cullface": "down" }, "up": { "uv": [ 1, 1, 15, 15 ], "texture": "#texture", "rotation": 0 }, "north": { "uv": [ 6, 6, 10, 10 ], "texture": "#texture" }, "south": { "uv": [ 6, 6, 10, 10 ], "texture": "#texture" }, "west": { "uv": [ 6, 6, 10, 10 ], "texture": "#texture" }, "east": { "uv": [ 6, 6, 10, 10 ], "texture": "#texture" } } } ] } BlockState File { "variants": { "normal": { "model": "mymodname:treasure_map2"}, "facing=north": { "model": "mymodname:treasure_map2",}, "facing=south": { "model": "mymodname:treasure_map2", "y": 180}, "facing=east": { "model": "mymodname:treasure_map2", "y": 270}, "facing=west": { "model": "mymodname:treasure_map2", "y": 90}, "facing=down": { "model": "mymodname:treasure_map2", "y": 90}, } } BlockFile { "parent": "mymodname:model/treasure_block", "textures": { "texture": "mymodname:blocks/treasure_map2" } } Thanks again to anyone who contributes to help solve this.
×
×
  • Create New...

Important Information

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