Jump to content

[1.8] Error on block rendering - can't convert back into data


RoseCotton

Recommended Posts

I'm trying to make a new block that looks kind of like stairs but in a different shape.

I'm getting an error saying "Don't know how to convert shelvesmod:shelfBlock[facing=north] back into data..."

 

# THIS IS THE BLOCK ITEM MDOEL FILE. IT GOES IN THE assets/shelvesmod/models/item/ folder.
# Generated using sheenrox82's JSON File Generator for Minecraft 1.8.

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

 

# THIS IS THE BLOCK MDOEL FILE. IT GOES IN THE assets/shelvesmod/models/block/ folder.
# Generated using sheenrox82's JSON File Generator for Minecraft 1.8.

{

    "textures": {
        "all": "shelvesmod:blocks/shelfBlock"
    }


    "elements": [
        {   "from": [ 0, 0, 0 ],
            "to": [ 16, 2, 16 ],
            "faces": {
                "down": { "uv": [ 0, 0, 16, 16 ],  "cullface: "down"},
                "up":   { "uv": [ 0, 0, 16, 16 ] },
                "north": { "uv": [ 0, 0, 16, 2 ], "cullface: "north" },
                "south": { "uv": [ 0, 0, 16, 2 ], "cullface: "south" },
                "west": { "uv": [ 0, 0, 16, 2 ], "cullface: "west" },
                "east": { "uv": [ 0, 0, 16, 2 ], "cullface: "east" }
            }
        },
        {   "from": [ 0, 2, 0 ],
            "to": [ 16, 10, 10 ],
            "faces": {
                "down": { "uv": [ 0, 0, 16, 10 ],  "cullface: "down"},
                "up":   { "uv": [ 0, 0, 16, 10 ] },
                "north": { "uv": [ 0, 2, 16, 10 ], "cullface: "north" },
                "south": { "uv": [ 0, 2, 16, 10 ], "cullface: "south" },
                "west": { "uv": [ 0, 2, 10, 10 ], "cullface: "west" },
                "east": { "uv": [ 0, 2, 10, 10 ], "cullface: "east" }
            }
        },
        {   "from": [ 0, 10, 0 ],
            "to": [ 16, 16, 2 ],
            "faces": {
                "down": { "uv": [ 0, 0, 16, 2 ],  "cullface: "down"},
                "up":   { "uv": [ 0, 0, 16, 2 ] },
                "north": { "uv": [ 0, 10, 16, 16 ], "cullface: "north" },
                "south": { "uv": [ 0, 10, 16, 16 ], "cullface: "south" },
                "west": { "uv": [ 0, 10, 2, 16 ], "cullface: "west" },
                "east": { "uv": [ 0, 10, 2, 16 ], "cullface: "east" }
            }
        }
    ]
}

 

# THIS IS THE BLOCKSTATE FILE. IT GOES IN THE assets/shelvesmod/blockstates/ folder.
# Generated using sheenrox82's JSON File Generator for Minecraft 1.8.


{
    "variants": {
        "facing=east,section=bottom,shape=straight":  { "model": "shelfBlock" },
        "facing=west,section=bottom,shape=straight":  { "model": "shelfBlock", "y": 180, "uvlock": true },
        "facing=south,section=bottom,shape=straight": { "model": "shelfBlock", "y": 90, "uvlock": true },
        "facing=north,section=bottom,shape=straight": { "model": "shelfBlock", "y": 270, "uvlock": true },
        
        "facing=east,section=middle,shape=straight":  { "model": "shelfBlock", "x": 180, "uvlock": true },
        "facing=west,section=middle,shape=straight":  { "model": "shelfBlock", "x": 180, "y": 180, "uvlock": true },
        "facing=south,section=middle,shape=straight": { "model": "shelfBlock", "x": 180, "y": 90, "uvlock": true },
        "facing=north,section=middle,shape=straight": { "model": "shelfBlock", "x": 180, "y": 270, "uvlock": true },

        "facing=east,section=top,shape=straight":  { "model": "shelfBlock", "x": 180, "uvlock": true },
        "facing=west,section=top,shape=straight":  { "model": "shelfBlock", "x": 180, "y": 180, "uvlock": true },
        "facing=south,section=top,shape=straight": { "model": "shelfBlock", "x": 180, "y": 90, "uvlock": true },
        "facing=north,section=top,shape=straight": { "model": "shelfBlock", "x": 180, "y": 270, "uvlock": true }

    }
}

 

Here's the console information:

 

 

[16:36:43] [main/INFO] [GradleStart]: Extra: []

[16:36:43] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Becky/.gradle/caches/minecraft/assets, --assetIndex, 1.8, --accessToken, {REDACTED}, --version, 1.8, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker]

[16:36:43] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker

[16:36:43] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker

[16:36:43] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker

[16:36:43] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker

[16:36:43] [main/INFO] [FML]: Forge Mod Loader version 8.0.20.1023 for Minecraft 1.8 loading

[16:36:43] [main/INFO] [FML]: Java is Java HotSpot Client VM, version 1.8.0_31, running on Windows 7:x86:6.1, installed at C:\Program Files\Java\jre1.8.0_31

[16:36:43] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation

[16:36:44] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker

[16:36:44] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin

[16:36:44] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[16:36:44] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker

[16:36:44] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[16:36:44] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[16:36:44] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper

[16:36:44] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!

[16:36:46] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing

[16:36:46] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker

[16:36:46] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker

[16:36:46] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker

[16:36:46] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}

[16:36:47] [Client thread/INFO]: Setting user: Player188

[16:36:47] [Client thread/INFO]: (Session ID is token:FML:Player188)

[16:36:50] [Client thread/INFO]: LWJGL Version: 2.9.1

[16:36:50] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization

[16:36:50] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization

[16:36:50] [Client thread/INFO] [FML]: Searching C:\Users\Becky\Desktop\Forge ModLoader-1.8-8.0.20.1023-1.8-src\eclipse\mods for mods

[16:36:53] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load

[16:36:54] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, testmod01, oredetectmod, shelvesmod] at CLIENT

[16:36:54] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, testmod01, oredetectmod, shelvesmod] at SERVER

[16:36:54] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Test Mod 01, FMLFileResourcePack:Ore Detect Mod, FMLFileResourcePack:Shelves Mod

[16:36:54] [Client thread/INFO] [FML]: Processing ObjectHolder annotations

[16:36:54] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations

[16:36:54] [Client thread/ERROR] [FML]: Caught an exception during block registration

java.lang.IllegalArgumentException: Don't know how to convert shelvesmod:shelfBlock[facing=north] back into data...

at net.minecraft.block.Block.getMetaFromState(Block.java:224) ~[block.class:?]

at net.minecraftforge.fml.common.registry.GameData.registerBlock(GameData.java:805) ~[GameData.class:?]

at net.minecraftforge.fml.common.registry.GameData.registerBlock(GameData.java:767) ~[GameData.class:?]

at net.minecraftforge.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:214) [GameRegistry.class:?]

at net.minecraftforge.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:182) [GameRegistry.class:?]

at net.minecraftforge.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:171) [GameRegistry.class:?]

at com.rosecotton.shelvesmod.BlockShelf.<init>(BlockShelf.java:55) [blockShelf.class:?]

at com.rosecotton.shelvesmod.ShelvesMod.preInit(ShelvesMod.java:74) [shelvesMod.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_31]

at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515) [FMLModContainer.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_31]

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) [guava-17.0.jar:?]

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) [guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) [guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) [guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:275) [guava-17.0.jar:?]

at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) [LoadController.class:?]

at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:187) [LoadController.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_31]

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) [guava-17.0.jar:?]

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) [guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) [guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) [guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:275) [guava-17.0.jar:?]

at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118) [LoadController.class:?]

at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:514) [Loader.class:?]

at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243) [FMLClientHandler.class:?]

at net.minecraft.client.Minecraft.startGame(Minecraft.java:413) [Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:326) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_31]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:85) [start/:?]

at GradleStart.main(GradleStart.java:45) [start/:?]

[16:36:54] [Client thread/INFO] [FML]: Applying holder lookups

[16:36:54] [Client thread/INFO] [FML]: Holder lookups applied

[16:36:54] [Client thread/ERROR] [FML]: Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue

[16:36:54] [Client thread/ERROR] [FML]:

mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized

FML{8.0.20.1023} [Forge Mod Loader] (fmlSrc-1.8-8.0.20.1023-1.8.jar) Unloaded->Constructed->Pre-initialized

testmod01{1.0} [Test Mod 01] (bin) Unloaded->Constructed->Pre-initialized

oredetectmod{1.0} [Ore Detect Mod] (bin) Unloaded->Constructed->Pre-initialized

shelvesmod{1.0} [shelves Mod] (bin) Unloaded->Constructed->Errored

[16:36:54] [Client thread/ERROR] [FML]: The following problems were captured during this phase

[16:36:54] [Client thread/ERROR] [FML]: Caught exception from shelvesmod

net.minecraftforge.fml.common.LoaderException: java.lang.IllegalArgumentException: Don't know how to convert shelvesmod:shelfBlock[facing=north] back into data...

at net.minecraftforge.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:225) ~[fmlSrc-1.8-8.0.20.1023-1.8.jar:?]

at net.minecraftforge.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:182) ~[fmlSrc-1.8-8.0.20.1023-1.8.jar:?]

at net.minecraftforge.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:171) ~[fmlSrc-1.8-8.0.20.1023-1.8.jar:?]

at com.rosecotton.shelvesmod.BlockShelf.<init>(BlockShelf.java:55) ~[bin/:?]

at com.rosecotton.shelvesmod.ShelvesMod.preInit(ShelvesMod.java:74) ~[bin/:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_31]

at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515) ~[fmlSrc-1.8-8.0.20.1023-1.8.jar:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_31]

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]

at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) ~[fmlSrc-1.8-8.0.20.1023-1.8.jar:?]

at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:187) ~[fmlSrc-1.8-8.0.20.1023-1.8.jar:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_31]

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]

at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118) [LoadController.class:?]

at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:514) [Loader.class:?]

at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243) [FMLClientHandler.class:?]

at net.minecraft.client.Minecraft.startGame(Minecraft.java:413) [Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:326) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_31]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:85) [start/:?]

at GradleStart.main(GradleStart.java:45) [start/:?]

Caused by: java.lang.IllegalArgumentException: Don't know how to convert shelvesmod:shelfBlock[facing=north] back into data...

at net.minecraft.block.Block.getMetaFromState(Block.java:224) ~[fmlSrc-1.8-8.0.20.1023-1.8.jar:?]

at net.minecraftforge.fml.common.registry.GameData.registerBlock(GameData.java:805) ~[fmlSrc-1.8-8.0.20.1023-1.8.jar:?]

at net.minecraftforge.fml.common.registry.GameData.registerBlock(GameData.java:767) ~[fmlSrc-1.8-8.0.20.1023-1.8.jar:?]

at net.minecraftforge.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:214) ~[fmlSrc-1.8-8.0.20.1023-1.8.jar:?]

... 43 more

[16:36:54] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:568]: ---- Minecraft Crash Report ----

// I blame Dinnerbone.

 

Time: 3/2/15 4:36 PM

Description: There was a severe problem during mod loading that has caused the game to fail

 

net.minecraftforge.fml.common.LoaderException: java.lang.IllegalArgumentException: Don't know how to convert shelvesmod:shelfBlock[facing=north] back into data...

at net.minecraftforge.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:225)

at net.minecraftforge.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:182)

at net.minecraftforge.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:171)

at com.rosecotton.shelvesmod.BlockShelf.<init>(BlockShelf.java:55)

at com.rosecotton.shelvesmod.ShelvesMod.preInit(ShelvesMod.java:74)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)

at com.google.common.eventbus.EventBus.post(EventBus.java:275)

at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)

at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:187)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)

at com.google.common.eventbus.EventBus.post(EventBus.java:275)

at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118)

at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:514)

at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:413)

at net.minecraft.client.Minecraft.run(Minecraft.java:326)

at net.minecraft.client.main.Main.main(Main.java:117)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)

at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:85)

at GradleStart.main(GradleStart.java:45)

Caused by: java.lang.IllegalArgumentException: Don't know how to convert shelvesmod:shelfBlock[facing=north] back into data...

at net.minecraft.block.Block.getMetaFromState(Block.java:224)

at net.minecraftforge.fml.common.registry.GameData.registerBlock(GameData.java:805)

at net.minecraftforge.fml.common.registry.GameData.registerBlock(GameData.java:767)

at net.minecraftforge.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:214)

... 43 more

 

 

A detailed walkthrough of the error, its code path and all known details is as follows:

---------------------------------------------------------------------------------------

 

-- System Details --

Details:

Minecraft Version: 1.8

Operating System: Windows 7 (x86) version 6.1

Java Version: 1.8.0_31, Oracle Corporation

Java VM Version: Java HotSpot Client VM (mixed mode), Oracle Corporation

Memory: 845588760 bytes (806 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB)

JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

FML: MCP v9.10 FML v8.0.20.1023 5 mods loaded, 5 mods active

mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized

FML{8.0.20.1023} [Forge Mod Loader] (fmlSrc-1.8-8.0.20.1023-1.8.jar) Unloaded->Constructed->Pre-initialized

testmod01{1.0} [Test Mod 01] (bin) Unloaded->Constructed->Pre-initialized

oredetectmod{1.0} [Ore Detect Mod] (bin) Unloaded->Constructed->Pre-initialized

shelvesmod{1.0} [shelves Mod] (bin) Unloaded->Constructed->Errored

[16:36:54] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:568]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Becky\Desktop\Forge ModLoader-1.8-8.0.20.1023-1.8-src\eclipse\.\crash-reports\crash-2015-03-02_16.36.54-client.txt

Java HotSpot Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

 

 

hw developer in a sw world

Link to comment
Share on other sites

Firstly I did say "Obviously without the : in the middle" for the code tags. Secondly the issue is here

 

"Don't know how to convert shelvesmod:shelfBlock[facing=north] back into data..."

"facing=north,section=top,shape=straight": { "model": "shelfBlock", "x": 180, "y": 270, "uvlock": true }

 

You have a value for "facing" in your blocks possible states, but no "section" or "shape" so it's looking for a model with just the value of "facing=north" which you don't have one of. Try adding the "section" and "shape" properties to your block state as well

Link to comment
Share on other sites

I'm looking at the stone brick stairs as an example, and in their blockstates file, they use:

 

{
    "variants": {
        "facing=east,half=bottom,shape=straight":  { "model": "stone_brick_stairs" },
        "facing=west,half=bottom,shape=straight":  { "model": "stone_brick_stairs", "y": 180, "uvlock": true },
        "facing=south,half=bottom,shape=straight": { "model": "stone_brick_stairs", "y": 90, "uvlock": true },
        "facing=north,half=bottom,shape=straight": { "model": "stone_brick_stairs", "y": 270, "uvlock": true },
        "facing=east,half=bottom,shape=outer_right":  { "model": "stone_brick_outer_stairs" },
        "facing=west,half=bottom,shape=outer_right":  { "model": "stone_brick_outer_stairs", "y": 180, "uvlock": true },
        "facing=south,half=bottom,shape=outer_right": { "model": "stone_brick_outer_stairs", "y": 90, "uvlock": true },
        "facing=north,half=bottom,shape=outer_right": { "model": "stone_brick_outer_stairs", "y": 270, "uvlock": true },
        "facing=east,half=bottom,shape=outer_left":  { "model": "stone_brick_outer_stairs", "y": 270, "uvlock": true },
        "facing=west,half=bottom,shape=outer_left":  { "model": "stone_brick_outer_stairs", "y": 90, "uvlock": true },
        "facing=south,half=bottom,shape=outer_left": { "model": "stone_brick_outer_stairs" },
        "facing=north,half=bottom,shape=outer_left": { "model": "stone_brick_outer_stairs", "y": 180, "uvlock": true },
        "facing=east,half=bottom,shape=inner_right":  { "model": "stone_brick_inner_stairs" },
        "facing=west,half=bottom,shape=inner_right":  { "model": "stone_brick_inner_stairs", "y": 180, "uvlock": true },
        "facing=south,half=bottom,shape=inner_right": { "model": "stone_brick_inner_stairs", "y": 90, "uvlock": true },
        "facing=north,half=bottom,shape=inner_right": { "model": "stone_brick_inner_stairs", "y": 270, "uvlock": true },
        "facing=east,half=bottom,shape=inner_left":  { "model": "stone_brick_inner_stairs", "y": 270, "uvlock": true },
        "facing=west,half=bottom,shape=inner_left":  { "model": "stone_brick_inner_stairs", "y": 90, "uvlock": true },
        "facing=south,half=bottom,shape=inner_left": { "model": "stone_brick_inner_stairs" },
        "facing=north,half=bottom,shape=inner_left": { "model": "stone_brick_inner_stairs", "y": 180, "uvlock": true },
        "facing=east,half=top,shape=straight":  { "model": "stone_brick_stairs", "x": 180, "uvlock": true },
        "facing=west,half=top,shape=straight":  { "model": "stone_brick_stairs", "x": 180, "y": 180, "uvlock": true },
        "facing=south,half=top,shape=straight": { "model": "stone_brick_stairs", "x": 180, "y": 90, "uvlock": true },
        "facing=north,half=top,shape=straight": { "model": "stone_brick_stairs", "x": 180, "y": 270, "uvlock": true },
        "facing=east,half=top,shape=outer_right":  { "model": "stone_brick_outer_stairs", "x": 180, "uvlock": true },
        "facing=west,half=top,shape=outer_right":  { "model": "stone_brick_outer_stairs", "x": 180, "y": 180, "uvlock": true },
        "facing=south,half=top,shape=outer_right": { "model": "stone_brick_outer_stairs", "x": 180, "y": 90, "uvlock": true },
        "facing=north,half=top,shape=outer_right": { "model": "stone_brick_outer_stairs", "x": 180, "y": 270, "uvlock": true },
        "facing=east,half=top,shape=outer_left":  { "model": "stone_brick_outer_stairs", "x": 180, "y": 90, "uvlock": true },
        "facing=west,half=top,shape=outer_left":  { "model": "stone_brick_outer_stairs", "x": 180, "y": 270, "uvlock": true },
        "facing=south,half=top,shape=outer_left": { "model": "stone_brick_outer_stairs", "x": 180, "y": 180, "uvlock": true },
        "facing=north,half=top,shape=outer_left": { "model": "stone_brick_outer_stairs", "x": 180, "uvlock": true },
        "facing=east,half=top,shape=inner_right":  { "model": "stone_brick_inner_stairs", "x": 180, "uvlock": true },
        "facing=west,half=top,shape=inner_right":  { "model": "stone_brick_inner_stairs", "x": 180, "y": 180, "uvlock": true },
        "facing=south,half=top,shape=inner_right": { "model": "stone_brick_inner_stairs", "x": 180, "y": 90, "uvlock": true },
        "facing=north,half=top,shape=inner_right": { "model": "stone_brick_inner_stairs", "x": 180, "y": 270, "uvlock": true },
        "facing=east,half=top,shape=inner_left":  { "model": "stone_brick_inner_stairs", "x": 180, "y": 90, "uvlock": true },
        "facing=west,half=top,shape=inner_left":  { "model": "stone_brick_inner_stairs", "x": 180, "y": 270, "uvlock": true },
        "facing=south,half=top,shape=inner_left": { "model": "stone_brick_inner_stairs", "x": 180, "y": 180, "uvlock": true },
        "facing=north,half=top,shape=inner_left": { "model": "stone_brick_inner_stairs", "x": 180, "uvlock": true }
    }
}

 

I found in EnumFacing that the cardinal directions, NORTH, SOUTH, EAST, WEST,  and UP and DOWN, are defined, but I can't find anywhere that the code defines half, top, shape, inner_left, inner_right, outer_right, outer_left, or straight, so I can't figure out how to define these in my code.

So I just deleted the "section" and "shape".  I don't need shape, and I don't think I need section, though I might.

 

I still get the same error.  (I also found various mistakes involving commas and quotation marks and fixed those...).

 

here's the console:

 

 

[18:06:07] [main/INFO] [GradleStart]: Extra: []

[18:06:07] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Becky/.gradle/caches/minecraft/assets, --assetIndex, 1.8, --accessToken, {REDACTED}, --version, 1.8, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker]

[18:06:07] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker

[18:06:07] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker

[18:06:07] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker

[18:06:07] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker

[18:06:07] [main/INFO] [FML]: Forge Mod Loader version 8.0.20.1023 for Minecraft 1.8 loading

[18:06:07] [main/INFO] [FML]: Java is Java HotSpot Client VM, version 1.8.0_31, running on Windows 7:x86:6.1, installed at C:\Program Files\Java\jre1.8.0_31

[18:06:07] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation

[18:06:07] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker

[18:06:07] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin

[18:06:07] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[18:06:07] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker

[18:06:07] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[18:06:07] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[18:06:07] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper

[18:06:07] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!

[18:06:09] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing

[18:06:09] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker

[18:06:09] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker

[18:06:09] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker

[18:06:09] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}

[18:06:10] [Client thread/INFO]: Setting user: Player663

[18:06:10] [Client thread/INFO]: (Session ID is token:FML:Player663)

[18:06:13] [Client thread/INFO]: LWJGL Version: 2.9.1

[18:06:14] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization

[18:06:14] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization

[18:06:14] [Client thread/INFO] [FML]: Searching C:\Users\Becky\Desktop\Forge ModLoader-1.8-8.0.20.1023-1.8-src\eclipse\mods for mods

[18:06:17] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load

[18:06:17] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, testmod01, oredetectmod, shelvesmod] at CLIENT

[18:06:17] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, testmod01, oredetectmod, shelvesmod] at SERVER

[18:06:17] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Test Mod 01, FMLFileResourcePack:Ore Detect Mod, FMLFileResourcePack:Shelves Mod

[18:06:17] [Client thread/INFO] [FML]: Processing ObjectHolder annotations

[18:06:17] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations

[18:06:17] [Client thread/ERROR] [FML]: Caught an exception during block registration

java.lang.IllegalArgumentException: Don't know how to convert shelvesmod:shelfBlock[facing=north] back into data...

at net.minecraft.block.Block.getMetaFromState(Block.java:224) ~[block.class:?]

at net.minecraftforge.fml.common.registry.GameData.registerBlock(GameData.java:805) ~[GameData.class:?]

at net.minecraftforge.fml.common.registry.GameData.registerBlock(GameData.java:767) ~[GameData.class:?]

at net.minecraftforge.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:214) [GameRegistry.class:?]

at net.minecraftforge.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:182) [GameRegistry.class:?]

at net.minecraftforge.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:171) [GameRegistry.class:?]

at com.rosecotton.shelvesmod.BlockShelf.<init>(BlockShelf.java:57) [blockShelf.class:?]

at com.rosecotton.shelvesmod.ShelvesMod.preInit(ShelvesMod.java:75) [shelvesMod.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_31]

at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515) [FMLModContainer.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_31]

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) [guava-17.0.jar:?]

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) [guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) [guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) [guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:275) [guava-17.0.jar:?]

at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) [LoadController.class:?]

at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:187) [LoadController.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_31]

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) [guava-17.0.jar:?]

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) [guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) [guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) [guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:275) [guava-17.0.jar:?]

at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118) [LoadController.class:?]

at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:514) [Loader.class:?]

at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243) [FMLClientHandler.class:?]

at net.minecraft.client.Minecraft.startGame(Minecraft.java:413) [Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:326) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_31]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:85) [start/:?]

at GradleStart.main(GradleStart.java:45) [start/:?]

[18:06:17] [Client thread/INFO] [FML]: Applying holder lookups

[18:06:17] [Client thread/INFO] [FML]: Holder lookups applied

[18:06:17] [Client thread/ERROR] [FML]: Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue

[18:06:17] [Client thread/ERROR] [FML]:

mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized

FML{8.0.20.1023} [Forge Mod Loader] (fmlSrc-1.8-8.0.20.1023-1.8.jar) Unloaded->Constructed->Pre-initialized

testmod01{1.0} [Test Mod 01] (bin) Unloaded->Constructed->Pre-initialized

oredetectmod{1.0} [Ore Detect Mod] (bin) Unloaded->Constructed->Pre-initialized

shelvesmod{1.0} [shelves Mod] (bin) Unloaded->Constructed->Errored

[18:06:17] [Client thread/ERROR] [FML]: The following problems were captured during this phase

[18:06:17] [Client thread/ERROR] [FML]: Caught exception from shelvesmod

net.minecraftforge.fml.common.LoaderException: java.lang.IllegalArgumentException: Don't know how to convert shelvesmod:shelfBlock[facing=north] back into data...

at net.minecraftforge.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:225) ~[fmlSrc-1.8-8.0.20.1023-1.8.jar:?]

at net.minecraftforge.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:182) ~[fmlSrc-1.8-8.0.20.1023-1.8.jar:?]

at net.minecraftforge.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:171) ~[fmlSrc-1.8-8.0.20.1023-1.8.jar:?]

at com.rosecotton.shelvesmod.BlockShelf.<init>(BlockShelf.java:57) ~[bin/:?]

at com.rosecotton.shelvesmod.ShelvesMod.preInit(ShelvesMod.java:75) ~[bin/:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_31]

at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515) ~[fmlSrc-1.8-8.0.20.1023-1.8.jar:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_31]

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]

at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) ~[fmlSrc-1.8-8.0.20.1023-1.8.jar:?]

at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:187) ~[fmlSrc-1.8-8.0.20.1023-1.8.jar:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_31]

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]

at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]

at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118) [LoadController.class:?]

at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:514) [Loader.class:?]

at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243) [FMLClientHandler.class:?]

at net.minecraft.client.Minecraft.startGame(Minecraft.java:413) [Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:326) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_31]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:85) [start/:?]

at GradleStart.main(GradleStart.java:45) [start/:?]

Caused by: java.lang.IllegalArgumentException: Don't know how to convert shelvesmod:shelfBlock[facing=north] back into data...

at net.minecraft.block.Block.getMetaFromState(Block.java:224) ~[fmlSrc-1.8-8.0.20.1023-1.8.jar:?]

at net.minecraftforge.fml.common.registry.GameData.registerBlock(GameData.java:805) ~[fmlSrc-1.8-8.0.20.1023-1.8.jar:?]

at net.minecraftforge.fml.common.registry.GameData.registerBlock(GameData.java:767) ~[fmlSrc-1.8-8.0.20.1023-1.8.jar:?]

at net.minecraftforge.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:214) ~[fmlSrc-1.8-8.0.20.1023-1.8.jar:?]

... 43 more

[18:06:17] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:568]: ---- Minecraft Crash Report ----

// Surprise! Haha. Well, this is awkward.

 

Time: 3/2/15 6:06 PM

Description: There was a severe problem during mod loading that has caused the game to fail

 

net.minecraftforge.fml.common.LoaderException: java.lang.IllegalArgumentException: Don't know how to convert shelvesmod:shelfBlock[facing=north] back into data...

at net.minecraftforge.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:225)

at net.minecraftforge.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:182)

at net.minecraftforge.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:171)

at com.rosecotton.shelvesmod.BlockShelf.<init>(BlockShelf.java:57)

at com.rosecotton.shelvesmod.ShelvesMod.preInit(ShelvesMod.java:75)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)

at com.google.common.eventbus.EventBus.post(EventBus.java:275)

at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)

at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:187)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)

at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)

at com.google.common.eventbus.EventBus.post(EventBus.java:275)

at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118)

at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:514)

at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:413)

at net.minecraft.client.Minecraft.run(Minecraft.java:326)

at net.minecraft.client.main.Main.main(Main.java:117)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)

at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:85)

at GradleStart.main(GradleStart.java:45)

Caused by: java.lang.IllegalArgumentException: Don't know how to convert shelvesmod:shelfBlock[facing=north] back into data...

at net.minecraft.block.Block.getMetaFromState(Block.java:224)

at net.minecraftforge.fml.common.registry.GameData.registerBlock(GameData.java:805)

at net.minecraftforge.fml.common.registry.GameData.registerBlock(GameData.java:767)

at net.minecraftforge.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:214)

... 43 more

 

 

A detailed walkthrough of the error, its code path and all known details is as follows:

---------------------------------------------------------------------------------------

 

-- System Details --

Details:

Minecraft Version: 1.8

Operating System: Windows 7 (x86) version 6.1

Java Version: 1.8.0_31, Oracle Corporation

Java VM Version: Java HotSpot Client VM (mixed mode), Oracle Corporation

Memory: 845738184 bytes (806 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB)

JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

FML: MCP v9.10 FML v8.0.20.1023 5 mods loaded, 5 mods active

mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized

FML{8.0.20.1023} [Forge Mod Loader] (fmlSrc-1.8-8.0.20.1023-1.8.jar) Unloaded->Constructed->Pre-initialized

testmod01{1.0} [Test Mod 01] (bin) Unloaded->Constructed->Pre-initialized

oredetectmod{1.0} [Ore Detect Mod] (bin) Unloaded->Constructed->Pre-initialized

shelvesmod{1.0} [shelves Mod] (bin) Unloaded->Constructed->Errored

[18:06:17] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:568]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Becky\Desktop\Forge ModLoader-1.8-8.0.20.1023-1.8-src\eclipse\.\crash-reports\crash-2015-03-02_18.06.17-client.txt

Java HotSpot Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

 

 

 

 

# THIS IS THE BLOCKSTATE FILE. IT GOES IN THE assets/shelvesmod/blockstates/ folder.
# Generated using sheenrox82's JSON File Generator for Minecraft 1.8.


{
    "variants": {
        "facing=east":  { "model": "shelfBlock" },
        "facing=west":  { "model": "shelfBlock", "y": 180, "uvlock": true },
        "facing=south": { "model": "shelfBlock", "y": 90, "uvlock": true },
        "facing=north": { "model": "shelfBlock", "y": 270, "uvlock": true },     
        "facing=east":  { "model": "shelfBlock", "x": 180, "uvlock": true },
        "facing=west":  { "model": "shelfBlock", "x": 180, "y": 180, "uvlock": true },
        "facing=south": { "model": "shelfBlock", "x": 180, "y": 90, "uvlock": true },
        "facing=north": { "model": "shelfBlock", "x": 180, "y": 270, "uvlock": true },
        "facing=east":  { "model": "shelfBlock", "x": 180, "uvlock": true },
        "facing=west":  { "model": "shelfBlock", "x": 180, "y": 180, "uvlock": true },
        "facing=south": { "model": "shelfBlock", "x": 180, "y": 90, "uvlock": true },
        "facing=north": { "model": "shelfBlock", "x": 180, "y": 270, "uvlock": true }

    }
}

 

# THIS IS THE BLOCK MDOEL FILE. IT GOES IN THE assets/shelvesmod/models/block/ folder.
# Generated using sheenrox82's JSON File Generator for Minecraft 1.8.

{

    "textures": {
        "all": "shelvesmod:blocks/shelfBlock"
    },


    "elements": [
   
        {   
            "from": [ 0, 0, 0 ],
            "to": [ 16, 2, 16 ],
            "faces": {
                "down": { "uv": [ 0, 0, 16, 16 ],  "cullface": "down"},
                "up":   { "uv": [ 0, 0, 16, 16 ] },
                "north": { "uv": [ 0, 0, 16, 2 ], "cullface": "north" },
                "south": { "uv": [ 0, 0, 16, 2 ], "cullface": "south" },
                "west": { "uv": [ 0, 0, 16, 2 ], "cullface": "west" },
                "east": { "uv": [ 0, 0, 16, 2 ], "cullface": "east" }
            }
        }, 
        
        {  
            "from": [ 0, 2, 0 ],
            "to": [ 16, 10, 10 ],
            "faces": {
                "down": { "uv": [ 0, 0, 16, 10 ],  "cullface": "down"},
                "up":   { "uv": [ 0, 0, 16, 10 ] },
                "north": { "uv": [ 0, 2, 16, 10 ], "cullface": "north" },
                "south": { "uv": [ 0, 2, 16, 10 ], "cullface": "south" },
                "west": { "uv": [ 0, 2, 10, 10 ], "cullface": "west" },
                "east": { "uv": [ 0, 2, 10, 10 ], "cullface": "east" }
            }
        }, 
        
        {  
            "from": [ 0, 10, 0 ],
            "to": [ 16, 16, 2 ],
            "faces": {
                "down": { "uv": [ 0, 0, 16, 2 ],  "cullface": "down"},
                "up":   { "uv": [ 0, 0, 16, 2 ] },
                "north": { "uv": [ 0, 10, 16, 16 ], "cullface": "north" },
                "south": { "uv": [ 0, 10, 16, 16 ], "cullface": "south" },
                "west": { "uv": [ 0, 10, 2, 16 ], "cullface": "west" },
                "east": { "uv": [ 0, 10, 2, 16 ], "cullface": "east" }
            }
        }
    ]
}

 

# THIS IS THE BLOCK ITEM MDOEL FILE. IT GOES IN THE assets/shelvesmod/models/item/ folder.
# Generated using sheenrox82's JSON File Generator for Minecraft 1.8.

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

 

Do I need to instantiate an EnumFacing variable in my BlockShelf class or my ShelvesMod to make this work right?

 

UPDATE: now that I look closer at the stone brick stairs (there are 8 json files I'm looking at), I don't see how any of this works at all.  None of the models are defined anywhere, including: stone_brick_stairs, stone_brick_outer_stairs, stone_brick_inner_stairs.  how is this even working?  I'm just calling my model file shelfBlock for each model. 

hw developer in a sw world

Link to comment
Share on other sites

UPDATE: ok I found a missing comma and a missing texture...working on it now...  :)

 

It runs!  it doesn't work, but it doesn't crash with an error.  :P 

And I have a new error now.

 

Console data:

 

 

[07:40:59] [main/INFO] [GradleStart]: Extra: []

[07:40:59] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Becky/.gradle/caches/minecraft/assets, --assetIndex, 1.8, --accessToken, {REDACTED}, --version, 1.8, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker]

[07:40:59] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker

[07:40:59] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker

[07:40:59] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker

[07:40:59] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker

[07:40:59] [main/INFO] [FML]: Forge Mod Loader version 8.0.20.1023 for Minecraft 1.8 loading

[07:40:59] [main/INFO] [FML]: Java is Java HotSpot Client VM, version 1.8.0_31, running on Windows 7:x86:6.1, installed at C:\Program Files\Java\jre1.8.0_31

[07:40:59] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation

[07:40:59] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker

[07:40:59] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin

[07:40:59] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[07:40:59] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker

[07:40:59] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[07:40:59] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[07:40:59] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper

[07:40:59] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!

[07:41:01] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing

[07:41:01] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker

[07:41:02] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker

[07:41:02] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker

[07:41:02] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}

[07:41:02] [Client thread/INFO]: Setting user: Player949

[07:41:02] [Client thread/INFO]: (Session ID is token:FML:Player949)

[07:41:05] [Client thread/INFO]: LWJGL Version: 2.9.1

[07:41:06] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization

[07:41:06] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization

[07:41:06] [Client thread/INFO] [FML]: Searching C:\Users\Becky\Desktop\Forge ModLoader-1.8-8.0.20.1023-1.8-src\eclipse\mods for mods

[07:41:10] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load

[07:41:11] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, testmod01, oredetectmod, shelvesmod] at CLIENT

[07:41:11] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, testmod01, oredetectmod, shelvesmod] at SERVER

[07:41:11] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Test Mod 01, FMLFileResourcePack:Ore Detect Mod, FMLFileResourcePack:Shelves Mod

[07:41:11] [Client thread/INFO] [FML]: Processing ObjectHolder annotations

[07:41:11] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations

[07:41:11] [Client thread/INFO] [FML]: Applying holder lookups

[07:41:11] [Client thread/INFO] [FML]: Holder lookups applied

[07:41:12] [sound Library Loader/INFO]: Starting up SoundSystem...

[07:41:12] [Thread-7/INFO]: Initializing LWJGL OpenAL

[07:41:12] [Thread-7/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

[07:41:13] [Thread-7/INFO]: OpenAL initialized.

[07:41:13] [sound Library Loader/INFO]: Sound engine started

[07:41:17] [Client thread/WARN]: Unable to load variant: facing=east from shelvesmod:shelfBlock#facing=east

[07:41:18] [Client thread/WARN]: Unable to load variant: facing=south from shelvesmod:shelfBlock#facing=south

[07:41:18] [Client thread/WARN]: Unable to load variant: facing=north from shelvesmod:shelfBlock#facing=north

[07:41:18] [Client thread/WARN]: Unable to load variant: facing=west from shelvesmod:shelfBlock#facing=west

[07:41:19] [Client thread/WARN]: In parent chain: shelvesmod:item/shelfBlock -> shelvesmod:block/shelfBlock; unable to load model: 'shelvesmod:block/shelfBlock'

com.google.gson.JsonSyntaxException: Missing texture, expected to find a string

at net.minecraft.util.JsonUtils.getJsonObjectStringFieldValue(JsonUtils.java:69) ~[JsonUtils.class:?]

at net.minecraft.client.renderer.block.model.BlockPartFace$Deserializer.parseTexture(BlockPartFace.java:53) ~[blockPartFace$Deserializer.class:?]

at net.minecraft.client.renderer.block.model.BlockPartFace$Deserializer.parseBlockPartFace(BlockPartFace.java:41) ~[blockPartFace$Deserializer.class:?]

at net.minecraft.client.renderer.block.model.BlockPartFace$Deserializer.deserialize(BlockPartFace.java:64) ~[blockPartFace$Deserializer.class:?]

at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:58) ~[TreeTypeAdapter.class:?]

at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?]

at com.google.gson.Gson.fromJson(Gson.java:868) ~[Gson.class:?]

at com.google.gson.Gson$1.deserialize(Gson.java:126) ~[Gson$1.class:?]

at net.minecraft.client.renderer.block.model.BlockPart$Deserializer.parseFaces(BlockPart.java:174) ~[blockPart$Deserializer.class:?]

at net.minecraft.client.renderer.block.model.BlockPart$Deserializer.parseFacesCheck(BlockPart.java:152) ~[blockPart$Deserializer.class:?]

at net.minecraft.client.renderer.block.model.BlockPart$Deserializer.parseBlockPart(BlockPart.java:90) ~[blockPart$Deserializer.class:?]

at net.minecraft.client.renderer.block.model.BlockPart$Deserializer.deserialize(BlockPart.java:245) ~[blockPart$Deserializer.class:?]

at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:58) ~[TreeTypeAdapter.class:?]

at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?]

at com.google.gson.Gson.fromJson(Gson.java:868) ~[Gson.class:?]

at com.google.gson.Gson$1.deserialize(Gson.java:126) ~[Gson$1.class:?]

at net.minecraft.client.renderer.block.model.ModelBlock$Deserializer.getModelElements(ModelBlock.java:314) ~[ModelBlock$Deserializer.class:?]

at net.minecraft.client.renderer.block.model.ModelBlock$Deserializer.parseModelBlock(ModelBlock.java:245) ~[ModelBlock$Deserializer.class:?]

at net.minecraft.client.renderer.block.model.ModelBlock$Deserializer.deserialize(ModelBlock.java:323) ~[ModelBlock$Deserializer.class:?]

at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:58) ~[TreeTypeAdapter.class:?]

at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?]

at com.google.gson.Gson.fromJson(Gson.java:741) ~[Gson.class:?]

at net.minecraft.client.renderer.block.model.ModelBlock.deserialize(ModelBlock.java:47) ~[ModelBlock.class:?]

at net.minecraft.client.resources.model.ModelBakery.loadModel(ModelBakery.java:268) ~[ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelBakery.loadModels(ModelBakery.java:580) [ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelBakery.loadModelsCheck(ModelBakery.java:538) [ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelBakery.setupModelRegistry(ModelBakery.java:89) [ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:29) [ModelManager.class:?]

at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:124) [simpleReloadableResourceManager.class:?]

at net.minecraft.client.Minecraft.startGame(Minecraft.java:471) [Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:326) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_31]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:85) [start/:?]

at GradleStart.main(GradleStart.java:45) [start/:?]

[07:41:20] [Client thread/INFO]: Created: 512x512 textures-atlas

[07:41:21] [Client thread/WARN]: Missing model for: shelvesmod:item/shelfBlock

[07:41:22] [Client thread/INFO] [sTDOUT]: [com.becky.testmod01.Testmod01:postInit:145]: Called method: postInit

[07:41:22] [Client thread/INFO] [sTDOUT]: [com.rosecotton.oredetect.OreDetectMod:postInit:120]: Called method: postInit

[07:41:22] [Client thread/INFO] [sTDOUT]: [com.rosecotton.shelvesmod.ShelvesMod:postInit:126]: Called method: postInit

[07:41:22] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods

[07:41:22] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Test Mod 01, FMLFileResourcePack:Ore Detect Mod, FMLFileResourcePack:Shelves Mod

[07:41:22] [Client thread/INFO]: SoundSystem shutting down...

[07:41:22] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com

[07:41:22] [sound Library Loader/INFO]: Starting up SoundSystem...

[07:41:23] [Thread-9/INFO]: Initializing LWJGL OpenAL

[07:41:23] [Thread-9/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

[07:41:23] [Thread-9/INFO]: OpenAL initialized.

[07:41:23] [sound Library Loader/INFO]: Sound engine started

[07:41:24] [Client thread/WARN]: Unable to load variant: facing=east from shelvesmod:shelfBlock#facing=east

[07:41:24] [Client thread/WARN]: Unable to load variant: facing=south from shelvesmod:shelfBlock#facing=south

[07:41:24] [Client thread/WARN]: Unable to load variant: facing=north from shelvesmod:shelfBlock#facing=north

[07:41:25] [Client thread/WARN]: Unable to load variant: facing=west from shelvesmod:shelfBlock#facing=west

[07:41:25] [Client thread/WARN]: In parent chain: shelvesmod:item/shelfBlock -> shelvesmod:block/shelfBlock; unable to load model: 'shelvesmod:block/shelfBlock'

com.google.gson.JsonSyntaxException: Missing texture, expected to find a string

at net.minecraft.util.JsonUtils.getJsonObjectStringFieldValue(JsonUtils.java:69) ~[JsonUtils.class:?]

at net.minecraft.client.renderer.block.model.BlockPartFace$Deserializer.parseTexture(BlockPartFace.java:53) ~[blockPartFace$Deserializer.class:?]

at net.minecraft.client.renderer.block.model.BlockPartFace$Deserializer.parseBlockPartFace(BlockPartFace.java:41) ~[blockPartFace$Deserializer.class:?]

at net.minecraft.client.renderer.block.model.BlockPartFace$Deserializer.deserialize(BlockPartFace.java:64) ~[blockPartFace$Deserializer.class:?]

at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:58) ~[TreeTypeAdapter.class:?]

at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?]

at com.google.gson.Gson.fromJson(Gson.java:868) ~[Gson.class:?]

at com.google.gson.Gson$1.deserialize(Gson.java:126) ~[Gson$1.class:?]

at net.minecraft.client.renderer.block.model.BlockPart$Deserializer.parseFaces(BlockPart.java:174) ~[blockPart$Deserializer.class:?]

at net.minecraft.client.renderer.block.model.BlockPart$Deserializer.parseFacesCheck(BlockPart.java:152) ~[blockPart$Deserializer.class:?]

at net.minecraft.client.renderer.block.model.BlockPart$Deserializer.parseBlockPart(BlockPart.java:90) ~[blockPart$Deserializer.class:?]

at net.minecraft.client.renderer.block.model.BlockPart$Deserializer.deserialize(BlockPart.java:245) ~[blockPart$Deserializer.class:?]

at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:58) ~[TreeTypeAdapter.class:?]

at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?]

at com.google.gson.Gson.fromJson(Gson.java:868) ~[Gson.class:?]

at com.google.gson.Gson$1.deserialize(Gson.java:126) ~[Gson$1.class:?]

at net.minecraft.client.renderer.block.model.ModelBlock$Deserializer.getModelElements(ModelBlock.java:314) ~[ModelBlock$Deserializer.class:?]

at net.minecraft.client.renderer.block.model.ModelBlock$Deserializer.parseModelBlock(ModelBlock.java:245) ~[ModelBlock$Deserializer.class:?]

at net.minecraft.client.renderer.block.model.ModelBlock$Deserializer.deserialize(ModelBlock.java:323) ~[ModelBlock$Deserializer.class:?]

at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:58) ~[TreeTypeAdapter.class:?]

at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?]

at com.google.gson.Gson.fromJson(Gson.java:741) ~[Gson.class:?]

at net.minecraft.client.renderer.block.model.ModelBlock.deserialize(ModelBlock.java:47) ~[ModelBlock.class:?]

at net.minecraft.client.resources.model.ModelBakery.loadModel(ModelBakery.java:268) ~[ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelBakery.loadModels(ModelBakery.java:580) [ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelBakery.loadModelsCheck(ModelBakery.java:538) [ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelBakery.setupModelRegistry(ModelBakery.java:89) [ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:29) [ModelManager.class:?]

at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134) [simpleReloadableResourceManager.class:?]

at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118) [simpleReloadableResourceManager.class:?]

at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:728) [Minecraft.class:?]

at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:306) [FMLClientHandler.class:?]

at net.minecraft.client.Minecraft.startGame(Minecraft.java:485) [Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:326) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_31]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:85) [start/:?]

at GradleStart.main(GradleStart.java:45) [start/:?]

[07:41:25] [Client thread/INFO]: Created: 512x512 textures-atlas

[07:41:26] [Client thread/WARN]: Missing model for: shelvesmod:item/shelfBlock

[07:41:38] [server thread/INFO]: Starting integrated minecraft server version 1.8

[07:41:38] [server thread/INFO]: Generating keypair

[07:41:38] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance

[07:41:38] [server thread/INFO] [FML]: Injecting new block and item data into this server instance.

[07:41:38] [server thread/INFO] [FML]: Injected new block/item shelvesmod:shelfBlock: 199 (init) -> 199 (map).

[07:41:38] [server thread/INFO] [FML]: Injected new block/item shelvesmod:shelfBlock: 199 (init) -> 199 (map).

[07:41:38] [server thread/INFO] [FML]: Applying holder lookups

[07:41:38] [server thread/INFO] [FML]: Holder lookups applied

[07:41:39] [server thread/INFO]: Preparing start region for level 0

[07:41:40] [server thread/INFO]: Preparing spawn area: 49%

[07:41:40] [server thread/INFO]: Changing view distance to 8, from 10

[07:41:42] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 1

[07:41:42] [Netty Server IO #1/INFO] [FML]: Client protocol version 1

[07:41:42] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 5 mods : oredetectmod@1.0,FML@8.0.20.1023,shelvesmod@1.0,testmod01@1.0,mcp@9.05

[07:41:42] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established

[07:41:42] [server thread/INFO] [FML]: [server thread] Server side modded connection established

[07:41:42] [server thread/INFO]: Player949[local:E:4443a80d] logged in with entity id 224 at (89.9636000138322, 63.0, 117.2802586801604)

[07:41:42] [server thread/INFO]: Player949 joined the game

[07:41:44] [server thread/INFO]: Player949 has just earned the achievement [Taking Inventory]

[07:41:44] [Client thread/INFO]: [CHAT] Player949 has just earned the achievement [Taking Inventory]

[07:42:08] [server thread/INFO]: Saving and pausing game...

[07:42:08] [server thread/INFO]: Saving chunks for level 'Forge_test01'/Overworld

[07:42:08] [server thread/INFO]: Saving chunks for level 'Forge_test01'/Nether

[07:42:08] [server thread/INFO]: Saving chunks for level 'Forge_test01'/The End

[07:42:09] [server thread/INFO]: Stopping server

[07:42:09] [server thread/INFO]: Saving players

[07:42:09] [server thread/INFO]: Saving worlds

[07:42:09] [server thread/INFO]: Saving chunks for level 'Forge_test01'/Overworld

[07:42:09] [server thread/INFO]: Saving chunks for level 'Forge_test01'/Nether

[07:42:09] [server thread/INFO]: Saving chunks for level 'Forge_test01'/The End

[07:42:10] [server thread/INFO] [FML]: Applying holder lookups

[07:42:10] [server thread/INFO] [FML]: Holder lookups applied

[07:42:10] [Client thread/INFO]: Stopping!

[07:42:10] [Client thread/INFO]: SoundSystem shutting down...

[07:42:10] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com

Java HotSpot Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

 

 

 

Looks like I need to investigate a little more and compare my json files to some good examples.  This is really hard since I'm "simplifying" the stairs model (and changing its shape, but the shape can be tweaked if I could just get the darn thing to load).

 

Here's the current code...  Any ideas on where I'm going wrong with the structure of these json files or am I maybe missing a registration or delcaration in my BlockShelves class??

Thanks for any help.

 

package com.rosecotton.shelvesmod;

import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer;
import net.minecraft.world.chunk.Chunk;
import net.minecraft.block.material.Material;
import net.minecraft.block.properties.PropertyEnum;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.entity.RenderEntityItem;
import net.minecraft.client.renderer.entity.RenderItem;
import net.minecraft.client.resources.model.ModelResourceLocation;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.Mod.Instance;
import net.minecraftforge.fml.common.SidedProxy;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.registry.GameRegistry;
import net.minecraftforge.fml.common.registry.LanguageRegistry;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraft.util.EnumFacing;

import com.rosecotton.shelvesmod.BlockShelf;



@Mod(modid = ShelvesMod.MODID, name = ShelvesMod.MODNAME, version = ShelvesMod.VERSION) 

public class ShelvesMod 
{


  public static Block shelfBlock;
  //public static Item brickIngot;
  public static final String MODID = "shelvesmod";
  public static final String MODNAME = "RoseCotton's Shelves Mod for 1.8";
  public static final String VERSION = "1.0";
  public static int type;
  
  
  
  
  @Instance(value = "shelvesmod")
  public static ShelvesMod instance = new ShelvesMod();
  

  
  
  public static class MySidedProxyHolder {
	  @SidedProxy(modId="shelvesmod",clientSide="com.rosecotton.shelvesmod.ClientProxy", serverSide="com.rosecotton.shelvesmod.CommonProxy")
	  public static CommonProxy proxy;
	  }
	  
	  public class CommonProxy {
		  // Common or server stuff here that needs to be overridden on the client
	  }
	  public class ClientProxy extends CommonProxy {
		  // Override common stuff with client specific stuff here
	  }
  

  @EventHandler
  public void preInit(FMLPreInitializationEvent event) 
  {
  	//System.out.println("Called method: preInit");
  	

  
  	//blocks
  	shelfBlock = new BlockShelf(type);
  	LanguageRegistry.addName(shelfBlock, "Shelf Block");
  	
  
  	//items
  	//brickIngot = new ItemBrickIngot();
	  //MOVE GAMEREGISTRY TO ITEM CLASS?
  	//GameRegistry.registerItem(brickIngot, ((ItemBrickIngot) brickIngot).getName());
  	//LanguageRegistry.addName(brickIngot, "Brick Ingot");
  }

  @EventHandler
  public void init(FMLInitializationEvent event) 
  {
  	//System.out.println("Called method: init");
  
  	if(event.getSide() == Side.CLIENT)
  	{
  		
  		RenderItem renderItem = Minecraft.getMinecraft().getRenderItem();
  		//renderItem.getItemModelMesher().register(brickIngot, 0, new ModelResourceLocation(Testmod01.MODID + ":" + ((ItemBrickIngot)brickIngot).getName(), "brickIngot"));
  		//Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(brickIngot,0, new ModelResourceLocation(Testmod01.MODID + ":" + ((ItemBrickIngot)brickIngot).getName(), "inventory"));

  		renderItem.getItemModelMesher().register(Item.getItemFromBlock(shelfBlock), 0, new ModelResourceLocation(ShelvesMod.MODID + ":" + "shelfBlock", "shelfBlock"));
  		Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(shelfBlock),0, new ModelResourceLocation(ShelvesMod.MODID+":"+ "shelfBlock", "inventory"));
  		
  		
  	}
  	
  	//recipes
  	//GameRegistry.addRecipe(new ItemStack(brickBlock), new Object[]{
  	//"AA ",
  	//"AA ",
  	//"   ",
  	//'A', brickIngot
  	//});

  	//GameRegistry.addShapelessRecipe(new ItemStack(brickIngot, 4), new Object[]
  	//{
  	//    	brickBlock//new ItemStack(brickBlock, 1, 1)
  	//});
  	
  	//I left off the third parameter in ItemStack because it means damage
  	//GameRegistry.addSmelting(new ItemStack(brickBlock, 1), new ItemStack(brickIngot, 1), 0.1F);
  	
  	
  }

  @EventHandler
  public void postInit(FMLPostInitializationEvent event) 
  {
  	System.out.println("Called method: postInit");
  }
}

 

Much of this was taken from the stairs code but with a lot deleted and some re-written.  probably a few errors in here, or maybe I need to put @Override on more functions?

package com.rosecotton.shelvesmod;

import java.util.Iterator;
import java.util.Random;

import com.becky.testmod01.Testmod01;

import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer;
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.client.resources.model.ModelResourceLocation;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.passive.EntityOcelot;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.Container;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.InventoryHelper;
import net.minecraft.inventory.InventoryLargeChest;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.tileentity.TileEntityChest;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.BlockPos;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.IStringSerializable;
import net.minecraft.util.MathHelper;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.ILockableContainer;
import net.minecraft.world.World;
import net.minecraftforge.fml.common.registry.GameRegistry;


public class BlockShelf extends Block {

    public static final PropertyDirection FACING = PropertyDirection.create("facing", EnumFacing.Plane.HORIZONTAL);
    private final Random rand = new Random();
    //public final int chestType;
    private static final String __OBFID = "CL_00000214";
private final String name = "shelfBlock";
ModelResourceLocation modelresourcelocation = new ModelResourceLocation("shelvesmod"+":"+name, "inventory");
    
    protected BlockShelf(int type)
    {
        super(Material.wood);
        //TEH FOLLOWIONG LINE MIGHT HAVE BEEN USEFUL BUT MAYBE CAUSED AN ERROR AT RUNTIME, TRY AGAIN
        this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH));
        //this.chestType = type;
        this.setCreativeTab(CreativeTabs.tabMisc);
        this.setBlockBounds(0.0625F, 0.0F, 0.0625F, 0.9375F, 0.875F, 0.9375F);
        this.useNeighborBrightness = true;
	this.setDefaultState(this.blockState.getBaseState());
        GameRegistry.registerBlock(this, name);
    	this.setUnlocalizedName(ShelvesMod.MODID + "_" + name);
    }

    public boolean isOpaqueCube()
    {
        return false;
    }

    public boolean isFullCube()
    {
        return false;
    }

    public int getRenderType()
    {
        return 2;
    }



    public void setBlockBoundsBasedOnState(IBlockAccess worldIn, BlockPos pos)
    {
        if (worldIn.getBlockState(pos.north()).getBlock() == this)
        {
            this.setBlockBounds(0.0625F, 0.0F, 0.0F, 0.9375F, 0.875F, 0.9375F);
        }
        else if (worldIn.getBlockState(pos.south()).getBlock() == this)
        {
            this.setBlockBounds(0.0625F, 0.0F, 0.0625F, 0.9375F, 0.875F, 1.0F);
        }
        else if (worldIn.getBlockState(pos.west()).getBlock() == this)
        {
            this.setBlockBounds(0.0F, 0.0F, 0.0625F, 0.9375F, 0.875F, 0.9375F);
        }
        else if (worldIn.getBlockState(pos.east()).getBlock() == this)
        {
            this.setBlockBounds(0.0625F, 0.0F, 0.0625F, 1.0F, 0.875F, 0.9375F);
        }
        else
        {
            this.setBlockBounds(0.0625F, 0.0F, 0.0625F, 0.9375F, 0.875F, 0.9375F);
        }
    }

    public void onBlockAdded(World worldIn, BlockPos pos, IBlockState state)
    {
        //this.checkForSurroundingChests(worldIn, pos, state);
        Iterator iterator = EnumFacing.Plane.HORIZONTAL.iterator();

        while (iterator.hasNext())
        {
            EnumFacing enumfacing = (EnumFacing)iterator.next();
            BlockPos blockpos1 = pos.offset(enumfacing);
            IBlockState iblockstate1 = worldIn.getBlockState(blockpos1);

        }
    }

    public IBlockState onBlockPlaced(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer)
    {
        return this.getDefaultState().withProperty(FACING, placer.getHorizontalFacing());
    }

    public void onBlockPlacedBy(World worldIn, BlockPos pos, IBlockState state, EntityLivingBase placer, ItemStack stack)
    {
        EnumFacing enumfacing = EnumFacing.getHorizontal(MathHelper.floor_double((double)(placer.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3).getOpposite();
        state = state.withProperty(FACING, enumfacing);
        BlockPos blockpos1 = pos.north();
        BlockPos blockpos2 = pos.south();
        BlockPos blockpos3 = pos.west();
        BlockPos blockpos4 = pos.east();
        boolean flag = this == worldIn.getBlockState(blockpos1).getBlock();
        boolean flag1 = this == worldIn.getBlockState(blockpos2).getBlock();
        boolean flag2 = this == worldIn.getBlockState(blockpos3).getBlock();
        boolean flag3 = this == worldIn.getBlockState(blockpos4).getBlock();

        if (!flag && !flag1 && !flag2 && !flag3)
        {
            worldIn.setBlockState(pos, state, 3);
        }
        else if (enumfacing.getAxis() == EnumFacing.Axis.X && (flag || flag1))
        {
            if (flag)
            {
                worldIn.setBlockState(blockpos1, state, 3);
            }
            else
            {
                worldIn.setBlockState(blockpos2, state, 3);
            }

            worldIn.setBlockState(pos, state, 3);
        }
        else if (enumfacing.getAxis() == EnumFacing.Axis.Z && (flag2 || flag3))
        {
            if (flag2)
            {
                worldIn.setBlockState(blockpos3, state, 3);
            }
            else
            {
                worldIn.setBlockState(blockpos4, state, 3);
            }

            worldIn.setBlockState(pos, state, 3);
        }

        if (stack.hasDisplayName())
        {
            TileEntity tileentity = worldIn.getTileEntity(pos);

            if (tileentity instanceof TileEntityChest)
            {
                ((TileEntityChest)tileentity).setCustomName(stack.getDisplayName());
            }
        }
    }


    public IBlockState correctFacing(World worldIn, BlockPos pos, IBlockState state)
    {
        EnumFacing enumfacing = null;
        Iterator iterator = EnumFacing.Plane.HORIZONTAL.iterator();

        while (iterator.hasNext())
        {
            EnumFacing enumfacing1 = (EnumFacing)iterator.next();
            IBlockState iblockstate1 = worldIn.getBlockState(pos.offset(enumfacing1));

            if (iblockstate1.getBlock() == this)
            {
                return state;
            }

            if (iblockstate1.getBlock().isFullBlock())
            {
                if (enumfacing != null)
                {
                    enumfacing = null;
                    break;
                }

                enumfacing = enumfacing1;
            }
        }

        if (enumfacing != null)
        {
            return state.withProperty(FACING, enumfacing.getOpposite());
        }
        else
        {
            EnumFacing enumfacing2 = (EnumFacing)state.getValue(FACING);

            if (worldIn.getBlockState(pos.offset(enumfacing2)).getBlock().isFullBlock())
            {
                enumfacing2 = enumfacing2.getOpposite();
            }

            if (worldIn.getBlockState(pos.offset(enumfacing2)).getBlock().isFullBlock())
            {
                enumfacing2 = enumfacing2.rotateY();
            }

            if (worldIn.getBlockState(pos.offset(enumfacing2)).getBlock().isFullBlock())
            {
                enumfacing2 = enumfacing2.getOpposite();
            }

            return state.withProperty(FACING, enumfacing2);
        }
    }





    public void breakBlock(World worldIn, BlockPos pos, IBlockState state)
    {
        TileEntity tileentity = worldIn.getTileEntity(pos);

        if (tileentity instanceof IInventory)
        {
            InventoryHelper.dropInventoryItems(worldIn, pos, (IInventory)tileentity);
            worldIn.updateComparatorOutputLevel(pos, this);
        }

        super.breakBlock(worldIn, pos, state);
    }



    public boolean onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumFacing side, float hitX, float hitY, float hitZ)
    {
       // if (worldIn.isRemote)
       // {
            return true;
       // }
     
    }



   


   public TileEntity createNewTileEntity(World worldIn, int meta)
    {
        return new TileEntityChest();
    }



    private boolean isBlocked(World worldIn, BlockPos pos)
    {
        return this.isBelowSolidBlock(worldIn, pos) || this.isOcelotSittingOnChest(worldIn, pos);
    }

    private boolean isBelowSolidBlock(World worldIn, BlockPos pos)
    {
        return worldIn.getBlockState(pos.up()).getBlock().isNormalCube();
    }




    private boolean isOcelotSittingOnChest(World worldIn, BlockPos pos)
    {
        Iterator iterator = worldIn.getEntitiesWithinAABB(EntityOcelot.class, new AxisAlignedBB((double)pos.getX(), (double)(pos.getY() + 1), (double)pos.getZ(), (double)(pos.getX() + 1), (double)(pos.getY() + 2), (double)(pos.getZ() + 1))).iterator();
        EntityOcelot entityocelot;

        do
        {
            if (!iterator.hasNext())
            {
                return false;
            }

            Entity entity = (Entity)iterator.next();
            entityocelot = (EntityOcelot)entity;
        }
        while (!entityocelot.isSitting());

        return true;
    }

    public boolean hasComparatorInputOverride()
    {
        return true;
    }




    
    @Override
    public IBlockState getStateFromMeta(int meta)
    {
        EnumFacing enumfacing = EnumFacing.getFront(meta);

        if (enumfacing.getAxis() == EnumFacing.Axis.Y)
        {
            enumfacing = EnumFacing.NORTH;
        }

        return this.getDefaultState().withProperty(FACING, enumfacing);
    }

    @Override
    public int getMetaFromState(IBlockState state)
    {
      EnumFacing facing = (EnumFacing)state.getValue(FACING);
      //EnumColour colour = (EnumColour)state.getValue(PROPERTYCOLOUR);

      int facingbits = facing.getHorizontalIndex();
     //int colourbits = colour.getMetadata() << 2;
      return facingbits;// | colourbits;
    }

    protected BlockState createBlockState()
    {
        return new BlockState(this, new IProperty[] {FACING});
    }


    public static enum EnumShape implements IStringSerializable
    {
        TOP("top"),
        MIDDLE("middle"),
        BOTTOM("bottom");

        private final String name;

        private static final String __OBFID = "CL_00003061";

        private EnumShape(String name)
        {
            this.name = name;
        }

        public String toString()
        {
            return this.name;
        }

        public String getName()
        {
            return this.name;
        }

    }

}

 

Well, I can't yet get each facing direction variant to load, but at least it understands my "section" property.  I remember something about a list of possible facing directions, but I can't remember if I need to state it somewhere else....

# THIS IS THE BLOCKSTATE FILE. IT GOES IN THE assets/shelvesmod/blockstates/ folder.
# Generated using sheenrox82's JSON File Generator for Minecraft 1.8.


{
    "variants": {
        "facing=east, section=top":  { "model": "shelvesmod:shelfBlock" },
        "facing=west, section=top":  { "model": "shelvesmod:shelfBlock", "y": 180, "uvlock": true },
        "facing=south, section=top": { "model": "shelvesmod:shelfBlock", "y": 90, "uvlock": true },
        "facing=north, section=top": { "model": "shelvesmod:shelfBlock", "y": 270, "uvlock": true },     
        "facing=east, section=middle":  { "model": "shelvesmod:shelfBlock", "x": 180, "uvlock": true },
        "facing=west, section=middle":  { "model": "shelvesmod:shelfBlock", "x": 180, "y": 180, "uvlock": true },
        "facing=south, section=middle": { "model": "shelvesmod:shelfBlock", "x": 180, "y": 90, "uvlock": true },
        "facing=north, section=middle": { "model": "shelvesmod:shelfBlock", "x": 180, "y": 270, "uvlock": true },
        "facing=east, section=bottom":  { "model": "shelvesmod:shelfBlock", "x": 180, "uvlock": true },
        "facing=west, section=bottom":  { "model": "shelvesmod:shelfBlock", "x": 180, "y": 180, "uvlock": true },
        "facing=south, section=bottom": { "model": "shelvesmod:shelfBlock", "x": 180, "y": 90, "uvlock": true },
        "facing=north, section=bottom": { "model": "shelvesmod:shelfBlock", "x": 180, "y": 270, "uvlock": true }

    }
}

 

# THIS IS THE BLOCK MDOEL FILE. IT GOES IN THE assets/shelvesmod/models/block/ folder.
# Generated using sheenrox82's JSON File Generator for Minecraft 1.8.

{

    "textures": {
        "all": "shelvesmod:blocks/shelfBlock"
    },


    "elements": [
   
        {   
            "from": [ 0, 0, 0 ],
            "to": [ 16, 2, 16 ],
            "faces": {
                "down": { "uv": [ 0, 0, 16, 16 ],  "cullface": "down"},
                "up":   { "uv": [ 0, 0, 16, 16 ] },
                "north": { "uv": [ 0, 0, 16, 2 ], "cullface": "north" },
                "south": { "uv": [ 0, 0, 16, 2 ], "cullface": "south" },
                "west": { "uv": [ 0, 0, 16, 2 ], "cullface": "west" },
                "east": { "uv": [ 0, 0, 16, 2 ], "cullface": "east" }
            }
        }, 
        
        {  
            "from": [ 0, 2, 0 ],
            "to": [ 16, 10, 10 ],
            "faces": {
                "down": { "uv": [ 0, 0, 16, 10 ],  "cullface": "down"},
                "up":   { "uv": [ 0, 0, 16, 10 ] },
                "north": { "uv": [ 0, 2, 16, 10 ], "cullface": "north" },
                "south": { "uv": [ 0, 2, 16, 10 ], "cullface": "south" },
                "west": { "uv": [ 0, 2, 10, 10 ], "cullface": "west" },
                "east": { "uv": [ 0, 2, 10, 10 ], "cullface": "east" }
            }
        }, 
        
        {  
            "from": [ 0, 10, 0 ],
            "to": [ 16, 16, 2 ],
            "faces": {
                "down": { "uv": [ 0, 0, 16, 2 ],  "cullface": "down"},
                "up":   { "uv": [ 0, 0, 16, 2 ] },
                "north": { "uv": [ 0, 10, 16, 16 ], "cullface": "north" },
                "south": { "uv": [ 0, 10, 16, 16 ], "cullface": "south" },
                "west": { "uv": [ 0, 10, 2, 16 ], "cullface": "west" },
                "east": { "uv": [ 0, 10, 2, 16 ], "cullface": "east" }
            }
        }
    ]
}

 

# THIS IS THE BLOCK ITEM MDOEL FILE. IT GOES IN THE assets/shelvesmod/models/item/ folder.
# Generated using sheenrox82's JSON File Generator for Minecraft 1.8.

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

hw developer in a sw world

Link to comment
Share on other sites

I'm getting closer...

 

UPDATE: Item now shows up in my inventory!  :)

The item now looks like the pink-and-black cube we all know and love...

when i place it, it's invisible.  But I can break it and hear the sound of it breaking.

 

console data:

 

 

[08:04:57] [main/INFO] [GradleStart]: Extra: []

[08:04:57] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Becky/.gradle/caches/minecraft/assets, --assetIndex, 1.8, --accessToken, {REDACTED}, --version, 1.8, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker]

[08:04:57] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker

[08:04:57] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker

[08:04:57] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker

[08:04:57] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker

[08:04:57] [main/INFO] [FML]: Forge Mod Loader version 8.0.20.1023 for Minecraft 1.8 loading

[08:04:57] [main/INFO] [FML]: Java is Java HotSpot Client VM, version 1.8.0_31, running on Windows 7:x86:6.1, installed at C:\Program Files\Java\jre1.8.0_31

[08:04:57] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation

[08:04:57] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker

[08:04:57] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin

[08:04:57] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[08:04:57] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker

[08:04:57] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[08:04:57] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[08:04:57] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper

[08:04:58] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!

[08:04:59] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing

[08:04:59] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker

[08:05:00] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker

[08:05:00] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker

[08:05:00] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}

[08:05:00] [Client thread/INFO]: Setting user: Player182

[08:05:00] [Client thread/INFO]: (Session ID is token:FML:Player182)

[08:05:04] [Client thread/INFO]: LWJGL Version: 2.9.1

[08:05:04] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization

[08:05:04] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization

[08:05:05] [Client thread/INFO] [FML]: Searching C:\Users\Becky\Desktop\Forge ModLoader-1.8-8.0.20.1023-1.8-src\eclipse\mods for mods

[08:05:08] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load

[08:05:08] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, testmod01, oredetectmod, shelvesmod] at CLIENT

[08:05:08] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, testmod01, oredetectmod, shelvesmod] at SERVER

[08:05:08] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Test Mod 01, FMLFileResourcePack:Ore Detect Mod, FMLFileResourcePack:Shelves Mod

[08:05:08] [Client thread/INFO] [FML]: Processing ObjectHolder annotations

[08:05:08] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations

[08:05:08] [Client thread/INFO] [FML]: Applying holder lookups

[08:05:08] [Client thread/INFO] [FML]: Holder lookups applied

[08:05:08] [sound Library Loader/INFO]: Starting up SoundSystem...

[08:05:09] [Thread-7/INFO]: Initializing LWJGL OpenAL

[08:05:09] [Thread-7/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

[08:05:10] [Thread-7/INFO]: OpenAL initialized.

[08:05:10] [sound Library Loader/INFO]: Sound engine started

[08:05:11] [Client thread/WARN]: Unable to load variant: facing=east from shelvesmod:shelfBlock#facing=east

[08:05:11] [Client thread/WARN]: Unable to load variant: facing=south from shelvesmod:shelfBlock#facing=south

[08:05:11] [Client thread/WARN]: Unable to load variant: facing=north from shelvesmod:shelfBlock#facing=north

[08:05:11] [Client thread/WARN]: Unable to load variant: facing=west from shelvesmod:shelfBlock#facing=west

[08:05:12] [Client thread/WARN]: In parent chain: shelvesmod:item/shelfBlock -> shelvesmod:block/shelfBlock; unable to load model: 'shelvesmod:block/shelfBlock'

com.google.gson.JsonSyntaxException: Missing texture, expected to find a string

at net.minecraft.util.JsonUtils.getJsonObjectStringFieldValue(JsonUtils.java:69) ~[JsonUtils.class:?]

at net.minecraft.client.renderer.block.model.BlockPartFace$Deserializer.parseTexture(BlockPartFace.java:53) ~[blockPartFace$Deserializer.class:?]

at net.minecraft.client.renderer.block.model.BlockPartFace$Deserializer.parseBlockPartFace(BlockPartFace.java:41) ~[blockPartFace$Deserializer.class:?]

at net.minecraft.client.renderer.block.model.BlockPartFace$Deserializer.deserialize(BlockPartFace.java:64) ~[blockPartFace$Deserializer.class:?]

at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:58) ~[TreeTypeAdapter.class:?]

at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?]

at com.google.gson.Gson.fromJson(Gson.java:868) ~[Gson.class:?]

at com.google.gson.Gson$1.deserialize(Gson.java:126) ~[Gson$1.class:?]

at net.minecraft.client.renderer.block.model.BlockPart$Deserializer.parseFaces(BlockPart.java:174) ~[blockPart$Deserializer.class:?]

at net.minecraft.client.renderer.block.model.BlockPart$Deserializer.parseFacesCheck(BlockPart.java:152) ~[blockPart$Deserializer.class:?]

at net.minecraft.client.renderer.block.model.BlockPart$Deserializer.parseBlockPart(BlockPart.java:90) ~[blockPart$Deserializer.class:?]

at net.minecraft.client.renderer.block.model.BlockPart$Deserializer.deserialize(BlockPart.java:245) ~[blockPart$Deserializer.class:?]

at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:58) ~[TreeTypeAdapter.class:?]

at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?]

at com.google.gson.Gson.fromJson(Gson.java:868) ~[Gson.class:?]

at com.google.gson.Gson$1.deserialize(Gson.java:126) ~[Gson$1.class:?]

at net.minecraft.client.renderer.block.model.ModelBlock$Deserializer.getModelElements(ModelBlock.java:314) ~[ModelBlock$Deserializer.class:?]

at net.minecraft.client.renderer.block.model.ModelBlock$Deserializer.parseModelBlock(ModelBlock.java:245) ~[ModelBlock$Deserializer.class:?]

at net.minecraft.client.renderer.block.model.ModelBlock$Deserializer.deserialize(ModelBlock.java:323) ~[ModelBlock$Deserializer.class:?]

at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:58) ~[TreeTypeAdapter.class:?]

at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?]

at com.google.gson.Gson.fromJson(Gson.java:741) ~[Gson.class:?]

at net.minecraft.client.renderer.block.model.ModelBlock.deserialize(ModelBlock.java:47) ~[ModelBlock.class:?]

at net.minecraft.client.resources.model.ModelBakery.loadModel(ModelBakery.java:268) ~[ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelBakery.loadModels(ModelBakery.java:580) [ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelBakery.loadModelsCheck(ModelBakery.java:538) [ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelBakery.setupModelRegistry(ModelBakery.java:89) [ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:29) [ModelManager.class:?]

at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:124) [simpleReloadableResourceManager.class:?]

at net.minecraft.client.Minecraft.startGame(Minecraft.java:471) [Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:326) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_31]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:85) [start/:?]

at GradleStart.main(GradleStart.java:45) [start/:?]

[08:05:12] [Client thread/INFO]: Created: 512x512 textures-atlas

[08:05:13] [Client thread/WARN]: Missing model for: shelvesmod:item/shelfBlock

[08:05:13] [Client thread/INFO] [sTDOUT]: [com.becky.testmod01.Testmod01:postInit:145]: Called method: postInit

[08:05:13] [Client thread/INFO] [sTDOUT]: [com.rosecotton.oredetect.OreDetectMod:postInit:120]: Called method: postInit

[08:05:13] [Client thread/INFO] [sTDOUT]: [com.rosecotton.shelvesmod.ShelvesMod:postInit:126]: Called method: postInit

[08:05:14] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods

[08:05:14] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Test Mod 01, FMLFileResourcePack:Ore Detect Mod, FMLFileResourcePack:Shelves Mod

[08:05:14] [Client thread/INFO]: SoundSystem shutting down...

[08:05:14] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com

[08:05:14] [sound Library Loader/INFO]: Starting up SoundSystem...

[08:05:14] [Thread-9/INFO]: Initializing LWJGL OpenAL

[08:05:14] [Thread-9/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

[08:05:14] [Thread-9/INFO]: OpenAL initialized.

[08:05:14] [sound Library Loader/INFO]: Sound engine started

[08:05:15] [Client thread/WARN]: Unable to load variant: facing=east from shelvesmod:shelfBlock#facing=east

[08:05:15] [Client thread/WARN]: Unable to load variant: facing=south from shelvesmod:shelfBlock#facing=south

[08:05:16] [Client thread/WARN]: Unable to load variant: facing=north from shelvesmod:shelfBlock#facing=north

[08:05:16] [Client thread/WARN]: Unable to load variant: facing=west from shelvesmod:shelfBlock#facing=west

[08:05:16] [Client thread/WARN]: In parent chain: shelvesmod:item/shelfBlock -> shelvesmod:block/shelfBlock; unable to load model: 'shelvesmod:block/shelfBlock'

com.google.gson.JsonSyntaxException: Missing texture, expected to find a string

at net.minecraft.util.JsonUtils.getJsonObjectStringFieldValue(JsonUtils.java:69) ~[JsonUtils.class:?]

at net.minecraft.client.renderer.block.model.BlockPartFace$Deserializer.parseTexture(BlockPartFace.java:53) ~[blockPartFace$Deserializer.class:?]

at net.minecraft.client.renderer.block.model.BlockPartFace$Deserializer.parseBlockPartFace(BlockPartFace.java:41) ~[blockPartFace$Deserializer.class:?]

at net.minecraft.client.renderer.block.model.BlockPartFace$Deserializer.deserialize(BlockPartFace.java:64) ~[blockPartFace$Deserializer.class:?]

at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:58) ~[TreeTypeAdapter.class:?]

at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?]

at com.google.gson.Gson.fromJson(Gson.java:868) ~[Gson.class:?]

at com.google.gson.Gson$1.deserialize(Gson.java:126) ~[Gson$1.class:?]

at net.minecraft.client.renderer.block.model.BlockPart$Deserializer.parseFaces(BlockPart.java:174) ~[blockPart$Deserializer.class:?]

at net.minecraft.client.renderer.block.model.BlockPart$Deserializer.parseFacesCheck(BlockPart.java:152) ~[blockPart$Deserializer.class:?]

at net.minecraft.client.renderer.block.model.BlockPart$Deserializer.parseBlockPart(BlockPart.java:90) ~[blockPart$Deserializer.class:?]

at net.minecraft.client.renderer.block.model.BlockPart$Deserializer.deserialize(BlockPart.java:245) ~[blockPart$Deserializer.class:?]

at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:58) ~[TreeTypeAdapter.class:?]

at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?]

at com.google.gson.Gson.fromJson(Gson.java:868) ~[Gson.class:?]

at com.google.gson.Gson$1.deserialize(Gson.java:126) ~[Gson$1.class:?]

at net.minecraft.client.renderer.block.model.ModelBlock$Deserializer.getModelElements(ModelBlock.java:314) ~[ModelBlock$Deserializer.class:?]

at net.minecraft.client.renderer.block.model.ModelBlock$Deserializer.parseModelBlock(ModelBlock.java:245) ~[ModelBlock$Deserializer.class:?]

at net.minecraft.client.renderer.block.model.ModelBlock$Deserializer.deserialize(ModelBlock.java:323) ~[ModelBlock$Deserializer.class:?]

at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:58) ~[TreeTypeAdapter.class:?]

at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?]

at com.google.gson.Gson.fromJson(Gson.java:741) ~[Gson.class:?]

at net.minecraft.client.renderer.block.model.ModelBlock.deserialize(ModelBlock.java:47) ~[ModelBlock.class:?]

at net.minecraft.client.resources.model.ModelBakery.loadModel(ModelBakery.java:268) ~[ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelBakery.loadModels(ModelBakery.java:580) [ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelBakery.loadModelsCheck(ModelBakery.java:538) [ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelBakery.setupModelRegistry(ModelBakery.java:89) [ModelBakery.class:?]

at net.minecraft.client.resources.model.ModelManager.onResourceManagerReload(ModelManager.java:29) [ModelManager.class:?]

at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:134) [simpleReloadableResourceManager.class:?]

at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:118) [simpleReloadableResourceManager.class:?]

at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:728) [Minecraft.class:?]

at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:306) [FMLClientHandler.class:?]

at net.minecraft.client.Minecraft.startGame(Minecraft.java:485) [Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:326) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_31]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]

at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:85) [start/:?]

at GradleStart.main(GradleStart.java:45) [start/:?]

[08:05:16] [Client thread/INFO]: Created: 512x512 textures-atlas

[08:05:17] [Client thread/WARN]: Missing model for: shelvesmod:item/shelfBlock

[08:05:44] [server thread/INFO]: Starting integrated minecraft server version 1.8

[08:05:44] [server thread/INFO]: Generating keypair

[08:05:44] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance

[08:05:45] [server thread/INFO] [FML]: Applying holder lookups

[08:05:45] [server thread/INFO] [FML]: Holder lookups applied

[08:05:45] [server thread/INFO]: Preparing start region for level 0

[08:05:46] [server thread/INFO]: Preparing spawn area: 43%

[08:05:47] [server thread/INFO]: Changing view distance to 8, from 10

[08:05:47] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 1

[08:05:47] [Netty Server IO #1/INFO] [FML]: Client protocol version 1

[08:05:48] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 5 mods : oredetectmod@1.0,FML@8.0.20.1023,shelvesmod@1.0,testmod01@1.0,mcp@9.05

[08:05:48] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established

[08:05:48] [server thread/INFO] [FML]: [server thread] Server side modded connection established

[08:05:48] [server thread/INFO]: Player182[local:E:5fdf1086] logged in with entity id 222 at (89.9636000138322, 63.0, 117.2802586801604)

[08:05:48] [server thread/INFO]: Player182 joined the game

[08:05:52] [server thread/INFO]: Player182 has just earned the achievement [Taking Inventory]

[08:05:52] [Client thread/INFO]: [CHAT] Player182 has just earned the achievement [Taking Inventory]

[08:06:25] [server thread/INFO]: Saving and pausing game...

[08:06:25] [server thread/INFO]: Saving chunks for level 'Forge_test01'/Overworld

[08:06:26] [server thread/INFO]: Saving chunks for level 'Forge_test01'/Nether

[08:06:26] [server thread/INFO]: Saving chunks for level 'Forge_test01'/The End

[08:06:28] [server thread/INFO]: Stopping server

[08:06:28] [server thread/INFO]: Saving players

[08:06:28] [server thread/INFO]: Saving worlds

[08:06:28] [server thread/INFO]: Saving chunks for level 'Forge_test01'/Overworld

[08:06:28] [server thread/INFO]: Saving chunks for level 'Forge_test01'/Nether

[08:06:28] [server thread/INFO]: Saving chunks for level 'Forge_test01'/The End

[08:06:28] [server thread/INFO] [FML]: Applying holder lookups

[08:06:28] [server thread/INFO] [FML]: Holder lookups applied

[08:06:29] [Client thread/INFO]: Stopping!

[08:06:29] [Client thread/INFO]: SoundSystem shutting down...

[08:06:29] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com

Java HotSpot Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

 

 

hw developer in a sw world

Link to comment
Share on other sites

Ok, I changed how I call out my textures and my item now renders, but the directional-facing varients still don't.  :\

Any suggestions?

 

Console data:

 

 

[08:46:59] [main/INFO] [GradleStart]: Extra: []

[08:46:59] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Becky/.gradle/caches/minecraft/assets, --assetIndex, 1.8, --accessToken, {REDACTED}, --version, 1.8, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker]

[08:46:59] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker

[08:46:59] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker

[08:46:59] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker

[08:46:59] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker

[08:46:59] [main/INFO] [FML]: Forge Mod Loader version 8.0.20.1023 for Minecraft 1.8 loading

[08:46:59] [main/INFO] [FML]: Java is Java HotSpot Client VM, version 1.8.0_31, running on Windows 7:x86:6.1, installed at C:\Program Files\Java\jre1.8.0_31

[08:46:59] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation

[08:46:59] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker

[08:46:59] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin

[08:46:59] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[08:46:59] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker

[08:46:59] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[08:46:59] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker

[08:46:59] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper

[08:46:59] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!

[08:47:01] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing

[08:47:01] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker

[08:47:01] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker

[08:47:01] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker

[08:47:01] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}

[08:47:02] [Client thread/INFO]: Setting user: Player578

[08:47:02] [Client thread/INFO]: (Session ID is token:FML:Player578)

[08:47:05] [Client thread/INFO]: LWJGL Version: 2.9.1

[08:47:06] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization

[08:47:06] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization

[08:47:06] [Client thread/INFO] [FML]: Searching C:\Users\Becky\Desktop\Forge ModLoader-1.8-8.0.20.1023-1.8-src\eclipse\mods for mods

[08:47:09] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load

[08:47:09] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, testmod01, oredetectmod, shelvesmod] at CLIENT

[08:47:09] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, testmod01, oredetectmod, shelvesmod] at SERVER

[08:47:09] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Test Mod 01, FMLFileResourcePack:Ore Detect Mod, FMLFileResourcePack:Shelves Mod

[08:47:09] [Client thread/INFO] [FML]: Processing ObjectHolder annotations

[08:47:09] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations

[08:47:09] [Client thread/INFO] [FML]: Applying holder lookups

[08:47:09] [Client thread/INFO] [FML]: Holder lookups applied

[08:47:10] [sound Library Loader/INFO]: Starting up SoundSystem...

[08:47:10] [Thread-7/INFO]: Initializing LWJGL OpenAL

[08:47:10] [Thread-7/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

[08:47:10] [Thread-7/INFO]: OpenAL initialized.

[08:47:10] [sound Library Loader/INFO]: Sound engine started

[08:47:11] [Client thread/WARN]: Unable to load variant: facing=east from shelvesmod:shelfBlock#facing=east

[08:47:12] [Client thread/WARN]: Unable to load variant: facing=south from shelvesmod:shelfBlock#facing=south

[08:47:12] [Client thread/WARN]: Unable to load variant: facing=north from shelvesmod:shelfBlock#facing=north

[08:47:12] [Client thread/WARN]: Unable to load variant: facing=west from shelvesmod:shelfBlock#facing=west

[08:47:13] [Client thread/INFO]: Created: 512x512 textures-atlas

[08:47:14] [Client thread/INFO] [sTDOUT]: [com.becky.testmod01.Testmod01:postInit:145]: Called method: postInit

[08:47:14] [Client thread/INFO] [sTDOUT]: [com.rosecotton.oredetect.OreDetectMod:postInit:120]: Called method: postInit

[08:47:14] [Client thread/INFO] [sTDOUT]: [com.rosecotton.shelvesmod.ShelvesMod:postInit:126]: Called method: postInit

[08:47:14] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods

[08:47:14] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Test Mod 01, FMLFileResourcePack:Ore Detect Mod, FMLFileResourcePack:Shelves Mod

[08:47:14] [Client thread/INFO]: SoundSystem shutting down...

[08:47:14] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com

[08:47:14] [sound Library Loader/INFO]: Starting up SoundSystem...

[08:47:15] [Thread-9/INFO]: Initializing LWJGL OpenAL

[08:47:15] [Thread-9/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

[08:47:15] [Thread-9/INFO]: OpenAL initialized.

[08:47:15] [sound Library Loader/INFO]: Sound engine started

[08:47:16] [Client thread/WARN]: Unable to load variant: facing=east from shelvesmod:shelfBlock#facing=east

[08:47:16] [Client thread/WARN]: Unable to load variant: facing=south from shelvesmod:shelfBlock#facing=south

[08:47:17] [Client thread/WARN]: Unable to load variant: facing=north from shelvesmod:shelfBlock#facing=north

[08:47:17] [Client thread/WARN]: Unable to load variant: facing=west from shelvesmod:shelfBlock#facing=west

[08:47:17] [Client thread/INFO]: Created: 512x512 textures-atlas

[08:47:27] [server thread/INFO]: Starting integrated minecraft server version 1.8

[08:47:27] [server thread/INFO]: Generating keypair

[08:47:27] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance

[08:47:28] [server thread/INFO] [FML]: Applying holder lookups

[08:47:28] [server thread/INFO] [FML]: Holder lookups applied

[08:47:28] [server thread/INFO]: Preparing start region for level 0

[08:47:29] [server thread/INFO]: Preparing spawn area: 37%

[08:47:30] [server thread/INFO]: Changing view distance to 8, from 10

[08:47:31] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 1

[08:47:31] [Netty Server IO #1/INFO] [FML]: Client protocol version 1

[08:47:31] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 5 mods : oredetectmod@1.0,FML@8.0.20.1023,shelvesmod@1.0,testmod01@1.0,mcp@9.05

[08:47:31] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established

[08:47:31] [server thread/INFO] [FML]: [server thread] Server side modded connection established

[08:47:31] [server thread/INFO]: Player578[local:E:ecd5bab4] logged in with entity id 195 at (89.9636000138322, 63.0, 117.2802586801604)

[08:47:31] [server thread/INFO]: Player578 joined the game

[08:47:37] [server thread/INFO]: Player578 has just earned the achievement [Taking Inventory]

[08:47:37] [Client thread/INFO]: [CHAT] Player578 has just earned the achievement [Taking Inventory]

[08:48:30] [server thread/INFO]: Saving and pausing game...

[08:48:30] [server thread/INFO]: Saving chunks for level 'Forge_test01'/Overworld

[08:48:30] [server thread/INFO]: Saving chunks for level 'Forge_test01'/Nether

[08:48:30] [server thread/INFO]: Saving chunks for level 'Forge_test01'/The End

[08:48:46] [server thread/INFO]: Saving and pausing game...

[08:48:46] [server thread/INFO]: Saving chunks for level 'Forge_test01'/Overworld

[08:48:46] [server thread/INFO]: Saving chunks for level 'Forge_test01'/Nether

[08:48:46] [server thread/INFO]: Saving chunks for level 'Forge_test01'/The End

[08:48:50] [server thread/INFO]: Saving and pausing game...

[08:48:50] [server thread/INFO]: Saving chunks for level 'Forge_test01'/Overworld

[08:48:50] [server thread/INFO]: Saving chunks for level 'Forge_test01'/Nether

[08:48:50] [server thread/INFO]: Saving chunks for level 'Forge_test01'/The End

[08:48:52] [server thread/INFO]: Stopping server

[08:48:52] [server thread/INFO]: Saving players

[08:48:52] [server thread/INFO]: Saving worlds

[08:48:52] [server thread/INFO]: Saving chunks for level 'Forge_test01'/Overworld

[08:48:52] [server thread/INFO]: Saving chunks for level 'Forge_test01'/Nether

[08:48:52] [server thread/INFO]: Saving chunks for level 'Forge_test01'/The End

[08:48:52] [server thread/INFO] [FML]: Applying holder lookups

[08:48:52] [server thread/INFO] [FML]: Holder lookups applied

[08:48:53] [Client thread/INFO]: Stopping!

[08:48:53] [Client thread/INFO]: SoundSystem shutting down...

[08:48:53] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com

Java HotSpot Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

 

 

 

# THIS IS THE BLOCKSTATE FILE. IT GOES IN THE assets/shelvesmod/blockstates/ folder.
# Generated using sheenrox82's JSON File Generator for Minecraft 1.8.


{
    "variants": {
        "facing=east,section=top":  { "model": "shelvesmod:shelfBlock" },
        "facing=west,section=top":  { "model": "shelvesmod:shelfBlock", "y": 180, "uvlock": true },
        "facing=south,section=top": { "model": "shelvesmod:shelfBlock", "y": 90, "uvlock": true },
        "facing=north,section=top": { "model": "shelvesmod:shelfBlock", "y": 270, "uvlock": true },     
        "facing=east,section=middle":  { "model": "shelvesmod:shelfBlock", "x": 180, "uvlock": true },
        "facing=west,section=middle":  { "model": "shelvesmod:shelfBlock", "x": 180, "y": 180, "uvlock": true },
        "facing=south,section=middle": { "model": "shelvesmod:shelfBlock", "x": 180, "y": 90, "uvlock": true },
        "facing=north,section=middle": { "model": "shelvesmod:shelfBlock", "x": 180, "y": 270, "uvlock": true },
        "facing=east,section=bottom":  { "model": "shelvesmod:shelfBlock", "x": 180, "uvlock": true },
        "facing=west,section=bottom":  { "model": "shelvesmod:shelfBlock", "x": 180, "y": 180, "uvlock": true },
        "facing=south,section=bottom": { "model": "shelvesmod:shelfBlock", "x": 180, "y": 90, "uvlock": true },
        "facing=north,section=bottom": { "model": "shelvesmod:shelfBlock", "x": 180, "y": 270, "uvlock": true }

    }
}

 

# THIS IS THE BLOCK MDOEL FILE. IT GOES IN THE assets/shelvesmod/models/block/ folder.
# Generated using sheenrox82's JSON File Generator for Minecraft 1.8.

{

    "textures": {
        "all": "shelvesmod:blocks/shelfBlock"

    },


    "elements": [
   
        {   "section":"bottom",
            "from": [ 0, 0, 0 ],
            "to": [ 16, 2, 16 ],
            "faces": {
                "down": { "uv": [ 0, 0, 16, 16 ], "texture":"all", "cullface": "down"},
                "up":   { "uv": [ 0, 0, 16, 16 ], "texture":"all" },
                "north": { "uv": [ 0, 0, 16, 2 ], "texture":"all","cullface": "north" },
                "south": { "uv": [ 0, 0, 16, 2 ], "texture":"all", "cullface": "south" },
                "west": { "uv": [ 0, 0, 16, 2 ], "texture":"all", "cullface": "west" },
                "east": { "uv": [ 0, 0, 16, 2 ], "texture":"all", "cullface": "east" }
            }
        }, 
        
        {  "section":"middle",
            "from": [ 0, 2, 0 ],
            "to": [ 16, 10, 10 ],
            "faces": {
                "down": { "uv": [ 0, 0, 16, 10 ], "texture":"all", "cullface": "down"},
                "up":   { "uv": [ 0, 0, 16, 10 ], "texture":"all" },
                "north": { "uv": [ 0, 2, 16, 10 ], "texture":"all", "cullface": "north" },
                "south": { "uv": [ 0, 2, 16, 10 ], "texture":"all", "cullface": "south" },
                "west": { "uv": [ 0, 2, 10, 10 ], "texture":"all", "cullface": "west" },
                "east": { "uv": [ 0, 2, 10, 10 ], "texture":"all", "cullface": "east" }
            }
        }, 
        
        {  "section":"top",
            "from": [ 0, 10, 0 ],
            "to": [ 16, 16, 2 ],
            "faces": {
                "down": { "uv": [ 0, 0, 16, 2 ], "texture":"all", "cullface": "down"},
                "up":   { "uv": [ 0, 0, 16, 2 ] , "texture":"all"},
                "north": { "uv": [ 0, 10, 16, 16 ], "texture":"all", "cullface": "north" },
                "south": { "uv": [ 0, 10, 16, 16 ], "texture":"all", "cullface": "south" },
                "west": { "uv": [ 0, 10, 2, 16 ], "texture":"all", "cullface": "west" },
                "east": { "uv": [ 0, 10, 2, 16 ], "texture":"all", "cullface": "east" }
            }
        }
    ]
}

 

# THIS IS THE BLOCK ITEM MDOEL FILE. IT GOES IN THE assets/shelvesmod/models/item/ folder.
# Generated using sheenrox82's JSON File Generator for Minecraft 1.8.

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

hw developer in a sw world

Link to comment
Share on other sites

Thanks, that is true, and making sure both properties were listed in the createBlockState() method got rid of the error.

So something else is a problem because my block still doesn't render, even as well as it did yesterday before I tried to isolate the problem by removing my other mods.

hw developer in a sw world

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.



×
×
  • Create New...

Important Information

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