Texture itemBlock



  • bonjour,
    je viens de creer un nouveau bloc , quand il est pose il a la bonne texture mais quand il est dans mon inventaire il a l apparence d un cube violet et noir, quelqu un peut t il m aider ?



  • Bonjour, déjà avec ce que tu donnes comme info, on ne peut pas t'aider, il nous faut les logs et le code que tu utilises pour enregistrer le rendu de ton item.



  • les log :

    2016-09-06 15:23:52,973 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
    2016-09-06 15:23:52,975 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
    [15:23:53] [main/INFO] [GradleStart]: Extra: []
    [15:23:53] [main/INFO] [GradleStart]: Running with arguments: [–userProperties, {}, --assetsDir, C:/Users/Mat/.gradle/caches/minecraft/assets, --assetIndex, 1.10, --accessToken{REDACTED}, --version, 1.10, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
    [15:23:53] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
    [15:23:53] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
    [15:23:53] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
    [15:23:53] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
    [15:23:53] [main/INFO] [FML]: Forge Mod Loader version 12.18.0.1996 for Minecraft 1.10 loading
    [15:23:53] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_91, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jre1.8.0_91
    [15:23:53] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
    [15:23:53] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
    [15:23:53] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
    [15:23:53] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
    [15:23:53] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
    [15:23:53] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
    [15:23:53] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
    [15:23:53] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
    [15:23:53] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
    [15:23:53] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
    [15:23:53] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
    [15:23:54] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
    [15:23:54] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
    [15:23:54] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
    [15:23:55] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
    [15:23:55] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
    [15:23:55] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
    [15:23:55] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
    2016-09-06 15:23:55,621 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
    2016-09-06 15:23:55,655 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
    2016-09-06 15:23:55,657 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
    [15:23:55] [Client thread/INFO]: Setting user: Player459
    [15:24:00] [Client thread/WARN]: Skipping bad option: lastServer:
    [15:24:00] [Client thread/INFO]: LWJGL Version: 2.9.4
    [15:24:00] [Client thread/INFO] [STDOUT]: [net.minecraftforge.fml.client.SplashProgress:start:221]: –-- Minecraft Crash Report ----
    // Everything's going to plan. No, really, that was supposed to happen.
    
    Time: 06/09/16 15:24
    Description: Loading screen debug info
    
    This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR
    
    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------
    
    -- System Details --
    Details:
    Minecraft Version: 1.10
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_91, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 825651480 bytes (787 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
    JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML:
    Loaded coremods (and transformers):
    GL info: ' Vendor: 'Intel' Version: '4.0.0 - Build 10.18.10.4358' Renderer: 'Intel(R) HD Graphics 4000'
    [15:24:00] [Client thread/INFO] [FML]: MinecraftForge v12.18.0.1996 Initialized
    [15:24:00] [Client thread/INFO] [FML]: Replaced 233 ore recipes
    [15:24:01] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
    [15:24:01] [Client thread/INFO] [FML]: Searching C:\Modding\forge-1.10-12.18.0.1996-1.10.0-mdk\run\mods for mods
    [15:24:01] [Client thread/INFO] [tmp]: Mod tmp is missing the required element 'name'. Substituting tmp
    [15:24:02] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
    [15:24:03] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, tmp] at CLIENT
    [15:24:03] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, tmp] at SERVER
    [15:24:03] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:tmp
    [15:24:03] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
    [15:24:03] [Client thread/INFO] [FML]: Found 423 ObjectHolder annotations
    [15:24:03] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
    [15:24:03] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
    [15:24:04] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
    [15:24:04] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
    [15:24:04] [Client thread/INFO] [FML]: Applying holder lookups
    [15:24:04] [Client thread/INFO] [FML]: Holder lookups applied
    [15:24:04] [Client thread/INFO] [FML]: Injecting itemstacks
    [15:24:04] [Client thread/INFO] [FML]: Itemstack injection complete
    [15:24:04] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Found status: BETA_OUTDATED Target: 12.18.0.2000
    [15:24:37] [Sound Library Loader/INFO]: Starting up SoundSystem…
    [15:24:37] [Thread-8/INFO]: Initializing LWJGL OpenAL
    [15:24:37] [Thread-8/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
    [15:24:37] [Thread-8/INFO]: OpenAL initialized.
    [15:24:37] [Sound Library Loader/INFO]: Sound engine started
    [15:24:41] [Client thread/INFO] [FML]: Max texture size: 8192
    [15:24:41] [Client thread/INFO]: Created: 16x16 textures-atlas
    [15:24:42] [Client thread/ERROR] [FML]: Exception loading model for variant tmp:test#inventory for item "tmp:test", normal location exception:
    net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model tmp:item/test 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:317) ~[ModelLoader.class:?]
    at net.minecraft.client.renderer.block.model.ModelBakery.loadVariantItemModels(ModelBakery.java:170) ~[ModelBakery.class:?]
    at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:147) ~[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:122) [SimpleReloadableResourceManager.class:?]
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:540) [Minecraft.class:?]
    at net.minecraft.client.Minecraft.run(Minecraft.java:386) [Minecraft.class:?]
    at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91]
    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_91]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91]
    at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
    at GradleStart.main(GradleStart.java:26) [start/:?]
    Caused by: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated object at line 3 column 6
    at com.google.gson.internal.Streams.parse(Streams.java:56) ~[Streams.class:?]
    at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:54) ~[TreeTypeAdapter.class:?]
    at net.minecraft.util.JsonUtils.gsonDeserialize(JsonUtils.java:453) ~[JsonUtils.class:?]
    at net.minecraft.client.renderer.block.model.ModelBlock.deserialize(ModelBlock.java:51) ~[ModelBlock.class:?]
    at net.minecraft.client.renderer.block.model.ModelBakery.loadModel(ModelBakery.java:315) ~[ModelBakery.class:?]
    at net.minecraftforge.client.model.ModelLoader.access$1100(ModelLoader.java:118) ~[ModelLoader.class:?]
    at net.minecraftforge.client.model.ModelLoader$VanillaLoader.loadModel(ModelLoader.java:868) ~[ModelLoader$VanillaLoader.class:?]
    at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?]
    … 20 more
    Caused by: com.google.gson.stream.MalformedJsonException: Unterminated object at line 3 column 6
    at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?]
    at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:480) ~[JsonReader.class:?]
    at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:403) ~[JsonReader.class:?]
    at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:666) ~[TypeAdapters$25.class:?]
    at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642) ~[TypeAdapters$25.class:?]
    at com.google.gson.internal.Streams.parse(Streams.java:44) ~[Streams.class:?]
    at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:54) ~[TreeTypeAdapter.class:?]
    at net.minecraft.util.JsonUtils.gsonDeserialize(JsonUtils.java:453) ~[JsonUtils.class:?]
    at net.minecraft.client.renderer.block.model.ModelBlock.deserialize(ModelBlock.java:51) ~[ModelBlock.class:?]
    at net.minecraft.client.renderer.block.model.ModelBakery.loadModel(ModelBakery.java:315) ~[ModelBakery.class:?]
    at net.minecraftforge.client.model.ModelLoader.access$1100(ModelLoader.java:118) ~[ModelLoader.class:?]
    at net.minecraftforge.client.model.ModelLoader$VanillaLoader.loadModel(ModelLoader.java:868) ~[ModelLoader$VanillaLoader.class:?]
    at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?]
    … 20 more
    [15:24:42] [Client thread/ERROR] [FML]: Exception loading model for variant tmp:test#inventory for item "tmp:test", blockstate location exception:
    net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model tmp:test#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:325) ~[ModelLoader.class:?]
    at net.minecraft.client.renderer.block.model.ModelBakery.loadVariantItemModels(ModelBakery.java:170) ~[ModelBakery.class:?]
    at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:147) ~[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:122) [SimpleReloadableResourceManager.class:?]
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:540) [Minecraft.class:?]
    at net.minecraft.client.Minecraft.run(Minecraft.java:386) [Minecraft.class:?]
    at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91]
    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_91]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91]
    at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
    at GradleStart.main(GradleStart.java:26) [start/:?]
    Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException
    at net.minecraft.client.renderer.block.model.ModelBlockDefinition.getVariant(ModelBlockDefinition.java:78) ~[ModelBlockDefinition.class:?]
    at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1183) ~[ModelLoader$VariantLoader.class:?]
    at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?]
    … 20 more
    [15:24:42] [Client thread/INFO] [FML]: Injecting itemstacks
    [15:24:42] [Client thread/INFO] [FML]: Itemstack injection complete
    [15:24:42] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
    [15:24:42] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:tmp
    [15:24:50] [Client thread/INFO]: SoundSystem shutting down…
    [15:24:51] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
    [15:24:51] [Sound Library Loader/INFO]: Starting up SoundSystem…
    [15:24:51] [Thread-10/INFO]: Initializing LWJGL OpenAL
    [15:24:51] [Thread-10/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
    [15:24:51] [Thread-10/INFO]: OpenAL initialized.
    [15:24:51] [Sound Library Loader/INFO]: Sound engine started
    [15:24:54] [Client thread/INFO] [FML]: Max texture size: 8192
    [15:24:54] [Client thread/INFO]: Created: 1024x512 textures-atlas
    [15:24:55] [Client thread/ERROR] [FML]: Exception loading model for variant tmp:test#inventory for item "tmp:test", normal location exception:
    net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model tmp:item/test 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:317) ~[ModelLoader.class:?]
    at net.minecraft.client.renderer.block.model.ModelBakery.loadVariantItemModels(ModelBakery.java:170) ~[ModelBakery.class:?]
    at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:147) ~[ModelLoader.class:?]
    at net.minecraft.client.renderer.block.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?]
    at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:132) [SimpleReloadableResourceManager.class:?]
    at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:113) [SimpleReloadableResourceManager.class:?]
    at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:799) [Minecraft.class:?]
    at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:338) [FMLClientHandler.class:?]
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:561) [Minecraft.class:?]
    at net.minecraft.client.Minecraft.run(Minecraft.java:386) [Minecraft.class:?]
    at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91]
    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_91]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91]
    at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
    at GradleStart.main(GradleStart.java:26) [start/:?]
    Caused by: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated object at line 3 column 6
    at com.google.gson.internal.Streams.parse(Streams.java:56) ~[Streams.class:?]
    at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:54) ~[TreeTypeAdapter.class:?]
    at net.minecraft.util.JsonUtils.gsonDeserialize(JsonUtils.java:453) ~[JsonUtils.class:?]
    at net.minecraft.client.renderer.block.model.ModelBlock.deserialize(ModelBlock.java:51) ~[ModelBlock.class:?]
    at net.minecraft.client.renderer.block.model.ModelBakery.loadModel(ModelBakery.java:315) ~[ModelBakery.class:?]
    at net.minecraftforge.client.model.ModelLoader.access$1100(ModelLoader.java:118) ~[ModelLoader.class:?]
    at net.minecraftforge.client.model.ModelLoader$VanillaLoader.loadModel(ModelLoader.java:868) ~[ModelLoader$VanillaLoader.class:?]
    at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?]
    … 23 more
    Caused by: com.google.gson.stream.MalformedJsonException: Unterminated object at line 3 column 6
    at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1505) ~[JsonReader.class:?]
    at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:480) ~[JsonReader.class:?]
    at com.google.gson.stream.JsonReader.hasNext(JsonReader.java:403) ~[JsonReader.class:?]
    at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:666) ~[TypeAdapters$25.class:?]
    at com.google.gson.internal.bind.TypeAdapters$25.read(TypeAdapters.java:642) ~[TypeAdapters$25.class:?]
    at com.google.gson.internal.Streams.parse(Streams.java:44) ~[Streams.class:?]
    at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:54) ~[TreeTypeAdapter.class:?]
    at net.minecraft.util.JsonUtils.gsonDeserialize(JsonUtils.java:453) ~[JsonUtils.class:?]
    at net.minecraft.client.renderer.block.model.ModelBlock.deserialize(ModelBlock.java:51) ~[ModelBlock.class:?]
    at net.minecraft.client.renderer.block.model.ModelBakery.loadModel(ModelBakery.java:315) ~[ModelBakery.class:?]
    at net.minecraftforge.client.model.ModelLoader.access$1100(ModelLoader.java:118) ~[ModelLoader.class:?]
    at net.minecraftforge.client.model.ModelLoader$VanillaLoader.loadModel(ModelLoader.java:868) ~[ModelLoader$VanillaLoader.class:?]
    at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?]
    … 23 more
    [15:24:55] [Client thread/ERROR] [FML]: Exception loading model for variant tmp:test#inventory for item "tmp:test", blockstate location exception:
    net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model tmp:test#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:325) ~[ModelLoader.class:?]
    at net.minecraft.client.renderer.block.model.ModelBakery.loadVariantItemModels(ModelBakery.java:170) ~[ModelBakery.class:?]
    at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:147) ~[ModelLoader.class:?]
    at net.minecraft.client.renderer.block.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?]
    at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:132) [SimpleReloadableResourceManager.class:?]
    at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:113) [SimpleReloadableResourceManager.class:?]
    at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:799) [Minecraft.class:?]
    at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:338) [FMLClientHandler.class:?]
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:561) [Minecraft.class:?]
    at net.minecraft.client.Minecraft.run(Minecraft.java:386) [Minecraft.class:?]
    at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_91]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91]
    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_91]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_91]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_91]
    at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
    at GradleStart.main(GradleStart.java:26) [start/:?]
    Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException
    at net.minecraft.client.renderer.block.model.ModelBlockDefinition.getVariant(ModelBlockDefinition.java:78) ~[ModelBlockDefinition.class:?]
    at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1183) ~[ModelLoader$VariantLoader.class:?]
    at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?]
    … 23 more
    [15:24:55] [Client thread/WARN]: Skipping bad option: lastServer:
    [15:24:56] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id
    [15:25:08] [Server thread/INFO]: Starting integrated minecraft server version 1.10
    [15:25:08] [Server thread/INFO]: Generating keypair
    [15:25:08] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance
    [15:25:08] [Server thread/INFO] [FML]: Applying holder lookups
    [15:25:08] [Server thread/INFO] [FML]: Holder lookups applied
    [15:25:08] [Server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@6976e821)
    [15:25:09] [Server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@6976e821)
    [15:25:09] [Server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@6976e821)
    [15:25:09] [Server thread/INFO]: Preparing start region for level 0
    [15:25:10] [Server thread/INFO]: Preparing spawn area: 34%
    [15:25:11] [Server thread/INFO]: Changing view distance to 12, from 10
    [15:25:12] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2
    [15:25:12] [Netty Server IO #1/INFO] [FML]: Client protocol version 2
    [15:25:12] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 4 mods : FML@8.0.99.99,tmp@1.0,Forge@12.18.0.1996,mcp@9.19
    [15:25:12] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established
    [15:25:12] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established
    [15:25:12] [Server thread/INFO]: Player459[local:E:8b5a8d58] logged in with entity id 481 at (194.58187780475123, 66.0, 119.3529465788664)
    [15:25:12] [Server thread/INFO]: Player459 a rejoint la partie
    [15:25:12] [Server thread/INFO]: Saving and pausing game…
    [15:25:12] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
    [15:25:13] [pool-2-thread-1/WARN]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@57d92c20[id=9e4b41fd-b698-3086-96f0-585499a2673a,name=Player459,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:65) ~[YggdrasilAuthenticationService.class:?]
    at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillGameProfile(YggdrasilMinecraftSessionService.java:175) [YggdrasilMinecraftSessionService.class:?]
    at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:59) [YggdrasilMinecraftSessionService$1.class:?]
    at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:56) [YggdrasilMinecraftSessionService$1.class:?]
    at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524) [guava-17.0.jar:?]
    at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317) [guava-17.0.jar:?]
    at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280) [guava-17.0.jar:?]
    at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195) [guava-17.0.jar:?]
    at com.google.common.cache.LocalCache.get(LocalCache.java:3934) [guava-17.0.jar:?]
    at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938) [guava-17.0.jar:?]
    at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821) [guava-17.0.jar:?]
    at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4827) [guava-17.0.jar:?]
    at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillProfileProperties(YggdrasilMinecraftSessionService.java:165) [YggdrasilMinecraftSessionService.class:?]
    at net.minecraft.client.Minecraft.getProfileProperties(Minecraft.java:3060) [Minecraft.class:?]
    at net.minecraft.client.resources.SkinManager$3.run(SkinManager.java:131) [SkinManager$3.class:?]
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_91]
    at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_91]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_91]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_91]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_91]
    [15:25:13] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
    [15:25:13] [Server thread/INFO]: Saving chunks for level 'New World'/The End
    [15:25:13] [Server thread/INFO]: Saving and pausing game…
    [15:25:13] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
    [15:25:13] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
    [15:25:13] [Server thread/INFO]: Saving chunks for level 'New World'/The End
    [15:25:34] [Server thread/INFO]: Player459 vient d'obtenir le succès [Faire l'inventaire]
    [15:25:34] [Client thread/INFO]: [CHAT] Player459 vient d'obtenir le succès [Faire l'inventaire]
    [15:25:58] [Client thread/INFO]: [CHAT] Capture d'écran enregistrée sous le nom de 2016-09-06_15.25.58.png
    [15:25:59] [Server thread/INFO]: Saving and pausing game…
    [15:25:59] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
    [15:25:59] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
    [15:25:59] [Server thread/INFO]: Saving chunks for level 'New World'/The End
    [15:30:48] [Server thread/INFO]: Saving and pausing game…
    [15:30:48] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
    [15:30:48] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
    [15:30:48] [Server thread/INFO]: Saving chunks for level 'New World'/The End
    [15:30:49] [Client thread/INFO]: Stopping!
    [15:30:49] [Client thread/INFO]: SoundSystem shutting down…
    [15:30:49] [Server thread/INFO]: Stopping server
    [15:30:49] [Server thread/INFO]: Saving players
    [15:30:49] [Server thread/INFO]: Saving worlds
    [15:30:49] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
    [15:30:49] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
    [15:30:49] [Server thread/INFO]: Saving chunks for level 'New World'/The End
    [15:30:50] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
    [15:30:50] [Client Shutdown Thread/INFO]: Stopping server
    [15:30:50] [Client Shutdown Thread/INFO]: Saving players
    [15:30:50] [Client Shutdown Thread/INFO]: Saving worlds
    [15:30:50] [Client Shutdown Thread/INFO]: Saving chunks for level 'New World'/Overworld
    [15:30:50] [Server thread/INFO] [FML]: Unloading dimension 0
    [15:30:50] [Server thread/INFO] [FML]: Unloading dimension -1
    [15:30:50] [Server thread/INFO] [FML]: Unloading dimension 1
    Exception in thread "Server thread" Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
    
    

    et je comprends pas ce dont tu parle en parlant du code que j utilise pour le rendu


  • Administrateurs

    Combien as-tu de json ? Ou sont-ils ? Que contiennent-ils ?



  • tmp est mon modid


  • Administrateurs

    On peut avoir ton code ?



  • package com.mathiasetampes.tmp.common.block;
    
    import com.mathiasetampes.tmp.Tmp;
    
    import net.minecraft.block.Block;
    import net.minecraft.block.material.Material;
    import net.minecraft.client.renderer.block.model.ModelResourceLocation;
    import net.minecraft.item.Item;
    import net.minecraft.item.ItemBlock;
    import net.minecraftforge.client.model.ModelLoader;
    import net.minecraftforge.fml.common.registry.GameRegistry;
    import net.minecraftforge.fml.relauncher.Side;
    import net.minecraftforge.fml.relauncher.SideOnly;
    
    public class BlockRegister
    {
    public static final Block test = new Block(Material.ROCK).setUnlocalizedName("test").setRegistryName("test");
    
    public static void registerBlocks()
    {
    GameRegistry.register(test);
    }
    
    public static void registerItemBlocks()
    {
    registerItemBlock(test);
    }
    
    @SideOnly(Side.CLIENT)
    public static void registerBlocksModels()
    {
    ModelLoader.setCustomModelResourceLocation (Item.getItemFromBlock (test), 0, new ModelResourceLocation (Tmp.MODID+":test", "inventory"));
    }
    
    private static void registerItemBlock(Block block)
    {
    ItemBlock itemBlock = new ItemBlock (block);
    itemBlock.setRegistryName (block.getRegistryName());
    GameRegistry.register (itemBlock);
    }
    }
    

    pour l instant c est juste un block lamba


  • Administrateurs

    Tu peux m'envoyer le contenu de test.json qui se trouve dans le dossier models/item?



  • {
    "parent":"tmp:block/test"
    "display": {
    "thirdperson": {
    "rotation": [ 10, -45, 170 ],
    "translation": [ 0, 1.5, -2.75 ],
    "scale": [ 0.375, 0.375, 0.375 ]
    }
    }
    }
    

  • Administrateurs

    Ton json est mal formé.
    Il manque une virgule à la fin de la deuxième ligne ("parent":"tmp:block/test")



  • merci , ca marche , c etait tres con