Jump to content

Block JSON errors


MajesticMadman

Recommended Posts

Hi,

I'm having problems getting a block to get its custom model in world and in inventory.

 

The below line is the only thing I can see that indicates where its going wrong, but I don't know what it's expecting differently:

Line from console: Caused by: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Invalid escape sequence at line 5 column 53 path $.variants..

 

This is the console with errors:

Spoiler

2018-11-06 12:34:47,085 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2018-11-06 12:34:47,087 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[12:34:47] [main/INFO] [GradleStart]: Extra: []
[12:34:47] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/user/.gradle/caches/minecraft/assets, --assetIndex, 1.12, --accessToken{REDACTED}, --version, 1.12.2, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[12:34:47] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[12:34:47] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[12:34:47] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[12:34:47] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[12:34:47] [main/INFO] [FML]: Forge Mod Loader version 14.23.2.2628 for Minecraft 1.12.2 loading
[12:34:47] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_144, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jre1.8.0_144
[12:34:47] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[12:34:47] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLCorePlugin (net.minecraftforge.fml.relauncher.FMLCorePlugin), we are in deobf and it's a forge core plugin
[12:34:47] [main/INFO] [FML]: Ignoring missing certificate for coremod FMLForgePlugin (net.minecraftforge.classloading.FMLForgePlugin), we are in deobf and it's a forge core plugin
[12:34:47] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[12:34:47] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
[12:34:47] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[12:34:47] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[12:34:47] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[12:34:47] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[12:34:47] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[12:34:47] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[12:34:47] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
2018-11-06 12:34:47,766 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2018-11-06 12:34:48,081 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2018-11-06 12:34:48,082 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[12:34:49] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[12:34:49] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[12:34:49] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[12:34:50] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[12:34:50] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[12:34:50] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[12:34:50] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[12:34:51] [main/INFO]: Setting user: Player894
[12:34:54] [main/WARN]: Skipping bad option: lastServer:
[12:34:54] [main/INFO]: LWJGL Version: 2.9.4
[12:34:56] [main/INFO] [FML]: -- System Details --
Details:
    Minecraft Version: 1.12.2
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_144, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 437896184 bytes (417 MB) / 645398528 bytes (615 MB) up to 7615283200 bytes (7262 MB)
    JVM Flags: 0 total;
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML:
    Loaded coremods (and transformers):
    GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.6.0 NVIDIA 388.43' Renderer: 'GeForce GTX 1080/PCIe/SSE2'
[12:34:56] [main/INFO] [FML]: MinecraftForge v14.23.2.2628 Initialized
[12:34:56] [main/INFO] [FML]: Starts to replace vanilla recipe ingredients with ore ingredients.
[12:34:56] [main/INFO] [FML]: Replaced 1036 ore ingredients
[12:34:56] [main/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
[12:34:56] [main/INFO] [FML]: Searching D:\Games\Minecraft\Modding\Doctor Who\Dev\mods for mods
[12:34:57] [main/INFO] [FML]: Forge Mod Loader has identified 5 mods to load
[12:34:57] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, dw_lonelytraveller] at CLIENT
[12:34:57] [main/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, dw_lonelytraveller] at SERVER
[12:34:58] [main/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Doctor Who: The Lonely Traveller
[12:34:58] [main/INFO] [FML]: Processing ObjectHolder annotations
[12:34:58] [main/INFO] [FML]: Found 1168 ObjectHolder annotations
[12:34:58] [main/INFO] [FML]: Identifying ItemStackHolder annotations
[12:34:58] [main/INFO] [FML]: Found 0 ItemStackHolder annotations
[12:34:58] [main/INFO] [FML]: Configured a dormant chunk cache size of 0
[12:34:58] [Forge Version Check/INFO] [ForgeVersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[12:34:58] [main/INFO] [FML]: Applying holder lookups
[12:34:58] [main/INFO] [FML]: Holder lookups applied
[12:34:58] [main/INFO] [FML]: Applying holder lookups
[12:34:58] [main/INFO] [FML]: Holder lookups applied
[12:34:58] [main/INFO] [FML]: Applying holder lookups
[12:34:58] [main/INFO] [FML]: Holder lookups applied
[12:34:58] [main/INFO] [FML]: Applying holder lookups
[12:34:58] [main/INFO] [FML]: Holder lookups applied
[12:34:58] [main/INFO] [FML]: Injecting itemstacks
[12:34:58] [main/INFO] [FML]: Itemstack injection complete
[12:34:58] [Thread-3/INFO] [FML]: Using sync timing. 200 frames of Display.update took 48339165 nanos
[12:34:58] [Forge Version Check/INFO] [ForgeVersionCheck]: [forge] Found status: OUTDATED Target: 14.23.5.2768
[12:35:04] [Sound Library Loader/INFO]: Starting up SoundSystem...
[12:35:04] [Thread-5/INFO]: Initializing LWJGL OpenAL
[12:35:04] [Thread-5/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[12:35:04] [Thread-5/INFO]: OpenAL initialized.
[12:35:04] [Sound Library Loader/INFO]: Sound engine started
[12:35:12] [main/INFO] [FML]: Max texture size: 16384
[12:35:12] [main/INFO]: Created: 512x512 textures-atlas
[12:35:13] [main/ERROR] [FML]: Exception loading model for variant dw_lonelytraveller:dwlt_gallifrey_chair_council#inventory for item "dw_lonelytraveller:gallifrey_chair_council", normal location exception:
net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model dw_lonelytraveller:item/dwlt_gallifrey_chair_council with loader VanillaLoader.INSTANCE, skipping
    at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:153) ~[ModelLoaderRegistry.class:?]
    at net.minecraftforge.client.model.ModelLoader.loadItemModels(ModelLoader.java:314) ~[ModelLoader.class:?]
    at net.minecraft.client.renderer.block.model.ModelBakery.loadVariantItemModels(ModelBakery.java:175) ~[ModelBakery.class:?]
    at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:164) ~[ModelLoader.class:?]
    at net.minecraft.client.renderer.block.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?]
    at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:121) [SimpleReloadableResourceManager.class:?]
    at net.minecraft.client.Minecraft.init(Minecraft.java:559) [Minecraft.class:?]
    at net.minecraft.client.Minecraft.run(Minecraft.java:421) [Minecraft.class:?]
    at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_144]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_144]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_144]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_144]
    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_144]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_144]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_144]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_144]
    at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
    at GradleStart.main(GradleStart.java:25) [start/:?]
Caused by: java.io.FileNotFoundException: dw_lonelytraveller:models/item/dwlt_gallifrey_chair_council.json
    at net.minecraft.client.resources.FallbackResourceManager.getResource(FallbackResourceManager.java:69) ~[FallbackResourceManager.class:?]
    at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:65) ~[SimpleReloadableResourceManager.class:?]
    at net.minecraft.client.renderer.block.model.ModelBakery.loadModel(ModelBakery.java:334) ~[ModelBakery.class:?]
    at net.minecraftforge.client.model.ModelLoader.access$1600(ModelLoader.java:130) ~[ModelLoader.class:?]
    at net.minecraftforge.client.model.ModelLoader$VanillaLoader.loadModel(ModelLoader.java:880) ~[ModelLoader$VanillaLoader.class:?]
    at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?]
    ... 20 more
[12:35:13] [main/ERROR] [FML]: Exception loading model for variant dw_lonelytraveller:dwlt_gallifrey_chair_council#inventory for item "dw_lonelytraveller:gallifrey_chair_council", blockstate location exception:
net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model dw_lonelytraveller:dwlt_gallifrey_chair_council#inventory with loader VariantLoader.INSTANCE, skipping
    at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:153) ~[ModelLoaderRegistry.class:?]
    at net.minecraftforge.client.model.ModelLoader.loadItemModels(ModelLoader.java:322) ~[ModelLoader.class:?]
    at net.minecraft.client.renderer.block.model.ModelBakery.loadVariantItemModels(ModelBakery.java:175) ~[ModelBakery.class:?]
    at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:164) ~[ModelLoader.class:?]
    at net.minecraft.client.renderer.block.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?]
    at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:121) [SimpleReloadableResourceManager.class:?]
    at net.minecraft.client.Minecraft.init(Minecraft.java:559) [Minecraft.class:?]
    at net.minecraft.client.Minecraft.run(Minecraft.java:421) [Minecraft.class:?]
    at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_144]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_144]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_144]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_144]
    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_144]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_144]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_144]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_144]
    at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
    at GradleStart.main(GradleStart.java:25) [start/:?]
Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException
    at net.minecraft.client.renderer.block.model.ModelBlockDefinition.getVariant(ModelBlockDefinition.java:83) ~[ModelBlockDefinition.class:?]
    at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1189) ~[ModelLoader$VariantLoader.class:?]
    at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?]
    ... 20 more
[12:35:13] [main/ERROR] [FML]: Exception loading model for variant dw_lonelytraveller:gallifrey_chair_council#normal for blockstate "dw_lonelytraveller:gallifrey_chair_council"
net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model dw_lonelytraveller:gallifrey_chair_council#normal with loader VariantLoader.INSTANCE, skipping
    at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:153) ~[ModelLoaderRegistry.class:?]
    at net.minecraftforge.client.model.ModelLoader.registerVariant(ModelLoader.java:248) ~[ModelLoader.class:?]
    at net.minecraft.client.renderer.block.model.ModelBakery.loadBlock(ModelBakery.java:153) ~[ModelBakery.class:?]
    at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:236) ~[ModelLoader.class:?]
    at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:163) ~[ModelLoader.class:?]
    at net.minecraft.client.renderer.block.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?]
    at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:121) [SimpleReloadableResourceManager.class:?]
    at net.minecraft.client.Minecraft.init(Minecraft.java:559) [Minecraft.class:?]
    at net.minecraft.client.Minecraft.run(Minecraft.java:421) [Minecraft.class:?]
    at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_144]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_144]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_144]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_144]
    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_144]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_144]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_144]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_144]
    at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
    at GradleStart.main(GradleStart.java:25) [start/:?]
Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException
    at net.minecraft.client.renderer.block.model.ModelBlockDefinition.getVariant(ModelBlockDefinition.java:83) ~[ModelBlockDefinition.class:?]
    at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1189) ~[ModelLoader$VariantLoader.class:?]
    at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?]
    ... 21 more
[12:35:13] [main/ERROR] [FML]: Exception loading blockstate for the variant dw_lonelytraveller:gallifrey_chair_council#normal:
java.lang.Exception: Could not load model definition for variant dw_lonelytraveller:gallifrey_chair_council
    at net.minecraftforge.client.model.ModelLoader.getModelBlockDefinition(ModelLoader.java:281) ~[ModelLoader.class:?]
    at net.minecraft.client.renderer.block.model.ModelBakery.loadBlock(ModelBakery.java:121) ~[ModelBakery.class:?]
    at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:236) ~[ModelLoader.class:?]
    at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:163) ~[ModelLoader.class:?]
    at net.minecraft.client.renderer.block.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?]
    at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:121) [SimpleReloadableResourceManager.class:?]
    at net.minecraft.client.Minecraft.init(Minecraft.java:559) [Minecraft.class:?]
    at net.minecraft.client.Minecraft.run(Minecraft.java:421) [Minecraft.class:?]
    at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_144]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_144]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_144]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_144]
    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_144]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_144]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_144]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_144]
    at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
    at GradleStart.main(GradleStart.java:25) [start/:?]
Caused by: java.lang.RuntimeException: Encountered an exception when loading model definition of 'dw_lonelytraveller:gallifrey_chair_council' from: 'dw_lonelytraveller:blockstates/gallifrey_chair_council.json' in resourcepack: 'FMLFileResourcePack:Doctor Who: The Lonely Traveller'
    at net.minecraft.client.renderer.block.model.ModelBakery.loadModelBlockDefinition(ModelBakery.java:246) ~[ModelBakery.class:?]
    at net.minecraft.client.renderer.block.model.ModelBakery.loadMultipartMBD(ModelBakery.java:223) ~[ModelBakery.class:?]
    at net.minecraft.client.renderer.block.model.ModelBakery.getModelBlockDefinition(ModelBakery.java:208) ~[ModelBakery.class:?]
    at net.minecraftforge.client.model.ModelLoader.getModelBlockDefinition(ModelLoader.java:277) ~[ModelLoader.class:?]
    ... 20 more
Caused by: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Invalid escape sequence at line 5 column 53 path $.variants..
    at com.google.gson.Gson.fromJson(Gson.java:902) ~[Gson.class:?]
    at com.google.gson.Gson.fromJson(Gson.java:852) ~[Gson.class:?]
    at com.google.gson.Gson.fromJson(Gson.java:801) ~[Gson.class:?]
    at com.google.gson.Gson.fromJson(Gson.java:773) ~[Gson.class:?]
    at net.minecraftforge.client.model.BlockStateLoader.load(BlockStateLoader.java:79) ~[BlockStateLoader.class:?]
    at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(ModelBlockDefinition.java:42) ~[ModelBlockDefinition.class:?]
    at net.minecraft.client.renderer.block.model.ModelBakery.loadModelBlockDefinition(ModelBakery.java:242) ~[ModelBakery.class:?]
    at net.minecraft.client.renderer.block.model.ModelBakery.loadMultipartMBD(ModelBakery.java:223) ~[ModelBakery.class:?]
    at net.minecraft.client.renderer.block.model.ModelBakery.getModelBlockDefinition(ModelBakery.java:208) ~[ModelBakery.class:?]
    at net.minecraftforge.client.model.ModelLoader.getModelBlockDefinition(ModelLoader.java:277) ~[ModelLoader.class:?]
    ... 20 more
Caused by: com.google.gson.stream.MalformedJsonException: Invalid escape sequence at line 5 column 53 path $.variants..
    at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1559) ~[JsonReader.class:?]
    at com.google.gson.stream.JsonReader.readEscapeCharacter(JsonReader.java:1550) ~[JsonReader.class:?]
    at com.google.gson.stream.JsonReader.skipQuotedValue(JsonReader.java:1101) ~[JsonReader.class:?]
    at com.google.gson.stream.JsonReader.skipValue(JsonReader.java:1244) ~[JsonReader.class:?]
    at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:218) ~[ReflectiveTypeAdapterFactory$Adapter.class:?]
    at com.google.gson.Gson.fromJson(Gson.java:887) ~[Gson.class:?]
    at com.google.gson.Gson.fromJson(Gson.java:852) ~[Gson.class:?]
    at com.google.gson.Gson.fromJson(Gson.java:801) ~[Gson.class:?]
    at com.google.gson.Gson.fromJson(Gson.java:773) ~[Gson.class:?]
    at net.minecraftforge.client.model.BlockStateLoader.load(BlockStateLoader.java:79) ~[BlockStateLoader.class:?]
    at net.minecraft.client.renderer.block.model.ModelBlockDefinition.parseFromReader(ModelBlockDefinition.java:42) ~[ModelBlockDefinition.class:?]
    at net.minecraft.client.renderer.block.model.ModelBakery.loadModelBlockDefinition(ModelBakery.java:242) ~[ModelBakery.class:?]
    at net.minecraft.client.renderer.block.model.ModelBakery.loadMultipartMBD(ModelBakery.java:223) ~[ModelBakery.class:?]
    at net.minecraft.client.renderer.block.model.ModelBakery.getModelBlockDefinition(ModelBakery.java:208) ~[ModelBakery.class:?]
    at net.minecraftforge.client.model.ModelLoader.getModelBlockDefinition(ModelLoader.java:277) ~[ModelLoader.class:?]
    ... 20 more
[12:35:14] [main/INFO] [FML]: Applying holder lookups
[12:35:14] [main/INFO] [FML]: Holder lookups applied
[12:35:14] [main/INFO] [FML]: Injecting itemstacks
[12:35:14] [main/INFO] [FML]: Itemstack injection complete
[12:35:14] [main/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods
[12:35:14] [main/WARN]: Skipping bad option: lastServer:
[12:35:14] [main/INFO]: Narrator library for x64 successfully loaded
[12:35:15] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id
[12:35:19] [Server thread/INFO]: Starting integrated minecraft server version 1.12.2
[12:35:19] [Server thread/INFO]: Generating keypair
[12:35:19] [Server thread/INFO] [FML]: Injecting existing registry data into this server instance
[12:35:19] [Server thread/INFO] [FML]: Applying holder lookups
[12:35:19] [Server thread/INFO] [FML]: Holder lookups applied
[12:35:19] [Server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@e0d30ee)
[12:35:20] [Server thread/INFO]: Loaded 488 advancements
[12:35:20] [Server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@e0d30ee)
[12:35:20] [Server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@e0d30ee)
[12:35:20] [Server thread/INFO]: Preparing start region for level 0
[12:35:21] [Server thread/INFO]: Preparing spawn area: 92%
[12:35:21] [Server thread/INFO]: Changing view distance to 12, from 10
[12:35:23] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2
[12:35:23] [Netty Server IO #1/INFO] [FML]: Client protocol version 2
[12:35:23] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 5 mods : [email protected],[email protected],[email protected],[email protected],[email protected]
[12:35:23] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established
[12:35:23] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established
[12:35:23] [Server thread/INFO]: Player894[local:E:a3a296b2] logged in with entity id 335 at (-174.48110096807272, 75.84970523706303, 239.66937709418983)
[12:35:23] [Server thread/INFO]: Player894 joined the game
[12:35:24] [Server thread/INFO]: Saving and pausing game...
[12:35:24] [Server thread/INFO]: Saving chunks for level 'New World'/overworld
[12:35:25] [pool-2-thread-1/WARN]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@4dbfe3d1[id=b25e3f31-3d0d-30a3-b307-8902510a505e,name=Player894,properties={},legacy=false]
com.mojang.authlib.exceptions.AuthenticationException: The client has sent too many requests within a certain amount of time
    at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:79) ~[YggdrasilAuthenticationService.class:?]
    at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillGameProfile(YggdrasilMinecraftSessionService.java:180) [YggdrasilMinecraftSessionService.class:?]
    at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:60) [YggdrasilMinecraftSessionService$1.class:?]
    at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:57) [YggdrasilMinecraftSessionService$1.class:?]
    at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3716) [guava-21.0.jar:?]
    at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2424) [guava-21.0.jar:?]
    at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2298) [guava-21.0.jar:?]
    at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2211) [guava-21.0.jar:?]
    at com.google.common.cache.LocalCache.get(LocalCache.java:4154) [guava-21.0.jar:?]
    at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4158) [guava-21.0.jar:?]
    at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:5147) [guava-21.0.jar:?]
    at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:5153) [guava-21.0.jar:?]
    at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillProfileProperties(YggdrasilMinecraftSessionService.java:170) [YggdrasilMinecraftSessionService.class:?]
    at net.minecraft.client.Minecraft.getProfileProperties(Minecraft.java:3188) [Minecraft.class:?]
    at net.minecraft.client.resources.SkinManager$3.run(SkinManager.java:138) [SkinManager$3.class:?]
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_144]
    at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_144]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_144]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_144]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_144]
[12:35:25] [Server thread/INFO]: Saving chunks for level 'New World'/the_nether
[12:35:25] [Server thread/INFO]: Saving chunks for level 'New World'/the_end
[12:35:30] [Server thread/INFO]: Saving and pausing game...
[12:35:30] [Server thread/INFO]: Saving chunks for level 'New World'/overworld
[12:35:30] [Server thread/INFO]: Saving chunks for level 'New World'/the_nether
[12:35:30] [Server thread/INFO]: Saving chunks for level 'New World'/the_end
[12:35:32] [main/INFO]: Stopping!
[12:35:32] [Server thread/INFO]: Stopping server
[12:35:32] [Server thread/INFO]: Saving players
[12:35:32] [Server thread/INFO]: Saving worlds
[12:35:32] [Server thread/INFO]: Saving chunks for level 'New World'/overworld
[12:35:32] [Server thread/INFO]: Saving chunks for level 'New World'/the_nether
[12:35:32] [Server thread/INFO]: Saving chunks for level 'New World'/the_end
[12:35:32] [Server thread/INFO] [FML]: Unloading dimension 0
[12:35:32] [Server thread/INFO] [FML]: Unloading dimension -1
[12:35:32] [Server thread/INFO] [FML]: Unloading dimension 1
[12:35:32] [Server thread/INFO] [FML]: Applying holder lookups
[12:35:32] [Server thread/INFO] [FML]: Holder lookups applied
[12:35:32] [main/INFO]: SoundSystem shutting down...
[12:35:32] [main/WARN]: Author: Paul Lamb, www.paulscode.com

 

 

My blockstate is located "src\main\resources\assets\dw_lonelytraveller\blockstates\gallifrey_chair_council.json" and contains:

{
    "forge_marker": 1,
    "variants": {
        "normal": {
            "model": "dw_lonelytraveller:Gallifrey\council_chamber\gallifrey_chair_council"
        },
        "inventory": {
            "model": "dw_lonelytraveller:Gallifrey\council_chamber\gallifrey_chair_council"
        }
    }
}

 

 

My Model is located "src\main\resources\assets\dw_lonelytraveller\models\block\Gallifrey\council_chamber\gallifrey_chair_council.json" and contains (The lack of textures is intentional right now):

{
	"elements": [
		{
			"name": "LegFL",
			"from": [1, 0, 1],
			"to": [2, 19, 2],
			"faces": {
				"north": {"uv": [0, 0, 1, 14], "texture": "#missing"},
				"east": {"uv": [0, 0, 1, 14], "texture": "#missing"},
				"south": {"uv": [0, 0, 1, 14], "texture": "#missing"},
				"west": {"uv": [0, 0, 1, 14], "texture": "#missing"},
				"up": {"uv": [0, 0, 1, 1], "texture": "#missing"},
				"down": {"uv": [0, 0, 1, 1], "texture": "#missing"}
			}
		},
		{
			"name": "LegFR",
			"from": [14, 0, 1],
			"to": [15, 19, 2],
			"faces": {
				"north": {"uv": [0, 0, 1, 14], "texture": "#missing"},
				"east": {"uv": [0, 0, 1, 14], "texture": "#missing"},
				"south": {"uv": [0, 0, 1, 14], "texture": "#missing"},
				"west": {"uv": [0, 0, 1, 14], "texture": "#missing"},
				"up": {"uv": [0, 0, 1, 1], "texture": "#missing"},
				"down": {"uv": [0, 0, 1, 1], "texture": "#missing"}
			}
		},
		{
			"name": "LegRL",
			"from": [1, 0, 14],
			"to": [2, 32, 15],
			"faces": {
				"north": {"uv": [0, 0, 1, 16], "texture": "#missing"},
				"east": {"uv": [0, 0, 1, 16], "texture": "#missing"},
				"south": {"uv": [0, 0, 1, 16], "texture": "#missing"},
				"west": {"uv": [0, 0, 1, 16], "texture": "#missing"},
				"up": {"uv": [0, 0, 1, 1], "texture": "#missing"},
				"down": {"uv": [0, 0, 1, 1], "texture": "#missing"}
			}
		},
		{
			"name": "LegRR",
			"from": [14, 0, 14],
			"to": [15, 32, 15],
			"faces": {
				"north": {"uv": [0, 0, 1, 16], "texture": "#missing"},
				"east": {"uv": [0, 0, 1, 16], "texture": "#missing"},
				"south": {"uv": [0, 0, 1, 16], "texture": "#missing"},
				"west": {"uv": [0, 0, 1, 16], "texture": "#missing"},
				"up": {"uv": [0, 0, 1, 1], "texture": "#missing"},
				"down": {"uv": [0, 0, 1, 1], "texture": "#missing"}
			}
		},
		{
			"name": "ChairBase",
			"from": [2, 10, 2],
			"to": [14, 14, 14],
			"faces": {
				"north": {"uv": [0, 0, 12, 4], "texture": "#missing"},
				"east": {"uv": [0, 0, 12, 4], "texture": "#missing"},
				"south": {"uv": [0, 0, 12, 4], "texture": "#missing"},
				"west": {"uv": [0, 0, 12, 4], "texture": "#missing"},
				"up": {"uv": [0, 0, 12, 12], "texture": "#missing"},
				"down": {"uv": [0, 0, 12, 12], "texture": "#missing"}
			}
		},
		{
			"name": "ChairBack",
			"from": [6, 6, 14],
			"to": [10, 25, 15],
			"faces": {
				"north": {"uv": [0, 0, 4, 16], "texture": "#missing"},
				"east": {"uv": [0, 0, 1, 16], "texture": "#missing"},
				"south": {"uv": [0, 0, 4, 16], "texture": "#missing"},
				"west": {"uv": [0, 0, 1, 16], "texture": "#missing"},
				"up": {"uv": [0, 0, 4, 1], "texture": "#missing"},
				"down": {"uv": [0, 0, 4, 1], "texture": "#missing"}
			}
		},
		{
			"name": "BraceBack",
			"from": [2, 4, 14],
			"to": [15, 6, 15],
			"faces": {
				"north": {"uv": [0, 0, 13, 2], "texture": "#missing"},
				"east": {"uv": [0, 0, 1, 2], "texture": "#missing"},
				"south": {"uv": [0, 0, 13, 2], "texture": "#missing"},
				"west": {"uv": [0, 0, 1, 2], "texture": "#missing"},
				"up": {"uv": [0, 0, 13, 1], "texture": "#missing"},
				"down": {"uv": [0, 0, 13, 1], "texture": "#missing"}
			}
		},
		{
			"name": "BraceLeft",
			"from": [1, 4, 2],
			"to": [2, 6, 14],
			"faces": {
				"north": {"uv": [0, 0, 1, 2], "texture": "#missing"},
				"east": {"uv": [0, 0, 12, 2], "texture": "#missing"},
				"south": {"uv": [0, 0, 1, 2], "texture": "#missing"},
				"west": {"uv": [0, 0, 12, 2], "texture": "#missing"},
				"up": {"uv": [0, 0, 1, 12], "texture": "#missing"},
				"down": {"uv": [0, 0, 1, 12], "texture": "#missing"}
			}
		},
		{
			"name": "BraceRight",
			"from": [14, 4, 2],
			"to": [15, 6, 14],
			"faces": {
				"north": {"uv": [0, 0, 1, 2], "texture": "#missing"},
				"east": {"uv": [0, 0, 12, 2], "texture": "#missing"},
				"south": {"uv": [0, 0, 1, 2], "texture": "#missing"},
				"west": {"uv": [0, 0, 12, 2], "texture": "#missing"},
				"up": {"uv": [0, 0, 1, 12], "texture": "#missing"},
				"down": {"uv": [0, 0, 1, 12], "texture": "#missing"}
			}
		},
		{
			"from": [2, 26, 14],
			"to": [14, 30, 15],
			"faces": {
				"north": {"uv": [0, 0, 10, 4], "texture": "#missing"},
				"east": {"uv": [0, 0, 1, 4], "texture": "#missing"},
				"south": {"uv": [0, 0, 10, 4], "texture": "#missing"},
				"west": {"uv": [0, 0, 1, 4], "texture": "#missing"},
				"up": {"uv": [0, 0, 10, 1], "texture": "#missing"},
				"down": {"uv": [0, 0, 10, 1], "texture": "#missing"}
			}
		},
		{
			"from": [3, 30, 14],
			"to": [13, 31, 15],
			"faces": {
				"north": {"uv": [0, 0, 10, 4], "texture": "#missing"},
				"east": {"uv": [0, 0, 1, 4], "texture": "#missing"},
				"south": {"uv": [0, 0, 10, 4], "texture": "#missing"},
				"west": {"uv": [0, 0, 1, 4], "texture": "#missing"},
				"up": {"uv": [0, 0, 10, 1], "texture": "#missing"},
				"down": {"uv": [0, 0, 10, 1], "texture": "#missing"}
			}
		},
		{
			"from": [3, 25, 14],
			"to": [13, 26, 15],
			"faces": {
				"north": {"uv": [0, 0, 10, 4], "texture": "#missing"},
				"east": {"uv": [0, 0, 1, 4], "texture": "#missing"},
				"south": {"uv": [0, 0, 10, 4], "texture": "#missing"},
				"west": {"uv": [0, 0, 1, 4], "texture": "#missing"},
				"up": {"uv": [0, 0, 10, 1], "texture": "#missing"},
				"down": {"uv": [0, 0, 10, 1], "texture": "#missing"}
			}
		},
		{
			"name": "ArmLef",
			"from": [14, 18, 2],
			"to": [15, 19, 14],
			"faces": {
				"north": {"uv": [0, 0, 1, 2], "texture": "#missing"},
				"east": {"uv": [0, 0, 12, 2], "texture": "#missing"},
				"south": {"uv": [0, 0, 1, 2], "texture": "#missing"},
				"west": {"uv": [0, 0, 12, 2], "texture": "#missing"},
				"up": {"uv": [0, 0, 1, 12], "texture": "#missing"},
				"down": {"uv": [0, 0, 1, 12], "texture": "#missing"}
			}
		},
		{
			"name": "ArmRight",
			"from": [1, 18, 2],
			"to": [2, 19, 14],
			"faces": {
				"north": {"uv": [0, 0, 1, 2], "texture": "#missing"},
				"east": {"uv": [0, 0, 12, 2], "texture": "#missing"},
				"south": {"uv": [0, 0, 1, 2], "texture": "#missing"},
				"west": {"uv": [0, 0, 12, 2], "texture": "#missing"},
				"up": {"uv": [0, 0, 1, 12], "texture": "#missing"},
				"down": {"uv": [0, 0, 1, 12], "texture": "#missing"}
			}
		}
	],
	"display": {
		"thirdperson_righthand": {
			"scale": [0.3, 0.3, 0.3],
			"rotation": [0, 146, 0]
		},
		"gui": {
			"scale": [0.4, 0.4, 0.4],
			"rotation": [12, 155, 0],
			"translation": [0, -3.5, 0]
		},
		"fixed": {
			"scale": [0, 0.65, 0.1],
			"translation": [0, -4.5, -1]
		},
		"ground": {
			"scale": [0.3, 0.3, 0.3]
		},
		"firstperson_lefthand": {
			"scale": [0.3, 0.3, 0.3],
			"rotation": [0, 118, 0],
			"translation": [0, 0, 2.5]
		},
		"firstperson_righthand": {
			"scale": [0.3, 0.3, 0.3],
			"translation": [0, 0, 2.5],
			"rotation": [0, 118, 0]
		},
		"thirdperson_lefthand": {
			"scale": [0.3, 0.3, 0.3],
			"rotation": [0, 146, 0]
		}
	},
	"groups": [0, 1, 2, 3, 4, 5, 6, 7, 8,
		{
			"name": "HeadRest",
			"isOpen": true,
			"export": true,
			"visibility": true,
			"children": [9, 10, 11]
		}, 12, 13]
}

 

Edited by MajesticMadman
Link to comment
Share on other sites

1 hour ago, MajesticMadman said:

"model": "dw_lonelytraveller:Gallifrey\council_chamber\gallifrey_chair_council"

Backslashes in a string in JSON indicate escape sequences.  So your attempted escape sequences in this line are "\c" and "\g".  I would try using forward slashes for the directory paths instead.

Link to comment
Share on other sites

This is why ResourceLocation exists

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Link to comment
Share on other sites

On 11/8/2018 at 12:37 AM, Cadiboo said:

This is why ResourceLocation exists

Yes, but as there are going to be a lot of items/blocks within the file trees so models>blocks would be the parent. Them every block would be separated into a different category at this level, and the a sub category and potentially more subs dependent on the block. So I was trying to find a way to do it in the JSON which would be simpler than having to create a variable for each block and within that set the file path and then reference that in the ModelResourceLocation

Link to comment
Share on other sites

What?? I was saying that resource location exists to prevent issues like this. If you don’t have anything special (Transformations / 3D models) for your time you should probably auto generate the models.

55 minutes ago, MajesticMadman said:

Them every block would be separated into a different category at this level

I’ve gone all the way down this path and don’t recommend it. Vanilla does it with all models in a single folder and that’s the easiest way to do it.

1 hour ago, MajesticMadman said:

I was trying to find a way to do it in the JSON

The only way to do it is with JSON.

1 hour ago, MajesticMadman said:

simpler than having to create a variable for each block and within that set the file path and then reference that in the ModelResourceLocation

for(Item item : allModItems) ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation( item.getRegistryName(), “normal”));

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Link to comment
Share on other sites

Join the conversation

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

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

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

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

×   Your previous content has been restored.   Clear editor

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

Announcements



×
×
  • Create New...

Important Information

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