Jump to content

clowcadia

Members
  • Posts

    458
  • Joined

  • Last visited

Posts posted by clowcadia

  1. First I am confused why in game my block that has a tile entity is invincible litteraly.

    package com.clowcadia.tutorial.handlers;
    
    import com.clowcadia.tutorial.blocks.BlockContainerTutorial;
    import com.clowcadia.tutorial.blocks.BlockTutorial;
    
    import net.minecraft.block.Block;
    import net.minecraft.block.material.Material;
    import net.minecraft.client.Minecraft;
    import net.minecraft.client.renderer.block.model.ModelResourceLocation;
    import net.minecraft.creativetab.CreativeTabs;
    import net.minecraft.item.Item;
    import net.minecraft.item.ItemBlock;
    import net.minecraftforge.fml.common.registry.GameRegistry;
    
    //Class to initialize blocks
    public class BlockHandler {
    	
    	public static Block blockTutorial;
    	public static ItemBlock itemBlockTutorial;
    	
    	public static Block blockContainerTutorial;
    	public static Block litBlockContainerTutorial;
    	public static ItemBlock itemBlockContainerTutorial;
    	
    	public static void init()
    	{
    		blockTutorial = new BlockTutorial(Material.ROCK, "tutorial_block_json", CreativeTabHandler.tabBlocks, 5F, 15F, 3, "pickaxe");		  
    		itemBlockTutorial = (ItemBlock) new ItemBlock(blockTutorial);
    		
    		blockContainerTutorial = new BlockContainerTutorial();
    		itemBlockContainerTutorial = (ItemBlock) new ItemBlock(blockContainerTutorial);
    	}
    	 
    	public static void register()
    	{
    		GameRegistry.register(blockTutorial);
    		GameRegistry.register(itemBlockTutorial, blockTutorial.getRegistryName());
    		
    		GameRegistry.register(blockContainerTutorial);
    		GameRegistry.register(itemBlockContainerTutorial, blockContainerTutorial.getRegistryName());
    	}
    	 
    	public static void registerRenders()
    	{
    		registerRender(blockTutorial);
    		registerRender(blockContainerTutorial);
    	}
    	 
    	public static void registerRender(Block block)
    	{
    		Item item = Item.getItemFromBlock(block);
    		Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(item.getRegistryName(), "inventory"));
    	}
    }
    package com.clowcadia.tutorial.blocks;
    
    
    import com.clowcadia.tutorial.handlers.CreativeTabHandler;
    
    import net.minecraft.block.BlockContainer;
    import net.minecraft.block.material.Material;
    import net.minecraft.creativetab.CreativeTabs;
    import net.minecraft.tileentity.TileEntity;
    import net.minecraft.world.World;
    
    public class BlockContainerTutorial extends BlockContainer{
    
    	public BlockContainerTutorial() {
    		super(Material.ROCK);
    		this.setCreativeTab(CreativeTabHandler.tabBlocks);
    		this.setUnlocalizedName("tutorial_block_container_json");
    		this.setRegistryName("tutorial_block_container_json");
    		// TODO Auto-generated constructor stub
    	}
    
    	@Override
    	public TileEntity createNewTileEntity(World worldIn, int meta) {
    		// TODO Auto-generated method stub
    		return new TileEntityBlockTutorial();
    	}
    
    }

    and then i have some errors to do with the tile entity itself

    2017-02-20 22:38:56,721 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
    2017-02-20 22:38:56,723 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
    [22:38:56] [main/INFO] [GradleStart]: Extra: []
    [22:38:56] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Andre/.gradle/caches/minecraft/assets, --assetIndex, 1.11, --accessToken{REDACTED}, --version, 1.11.2, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
    [22:38:56] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
    [22:38:56] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
    [22:38:56] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
    [22:38:56] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
    [22:38:56] [main/INFO] [FML]: Forge Mod Loader version 13.20.0.2228 for Minecraft 1.11.2 loading
    [22:38:56] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_121, running on Windows 10:amd64:10.0, installed at C:\Program Files\JDK
    [22:38:56] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
    [22:38:56] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
    [22:38:56] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
    [22:38:56] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
    [22:38:56] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
    [22:38:56] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
    [22:38:56] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
    [22:38:56] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
    [22:38:56] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
    [22:38:56] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
    [22:38:57] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
    [22:38:59] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
    [22:38:59] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
    [22:38:59] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
    [22:38:59] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
    [22:38:59] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
    [22:38:59] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
    [22:39:00] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
    2017-02-20 22:39:00,844 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
    2017-02-20 22:39:00,886 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
    2017-02-20 22:39:00,888 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
    [22:39:01] [Client thread/INFO]: Setting user: Player700
    [22:39:06] [Client thread/WARN]: Skipping bad option: lastServer:
    [22:39:06] [Client thread/INFO]: LWJGL Version: 2.9.4
    [22:39:07] [Client thread/INFO]: [STDOUT]: ---- Minecraft Crash Report ----
    // Don't be sad. I'll do better next time, I promise!
    
    Time: 2/20/17 10:39 PM
    Description: Loading screen debug info
    
    This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR
    
    
    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------
    
    -- System Details --
    Details:
    	Minecraft Version: 1.11.2
    	Operating System: Windows 10 (amd64) version 10.0
    	Java Version: 1.8.0_121, Oracle Corporation
    	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    	Memory: 799086080 bytes (762 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
    	JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
    	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    	FML: 
    	Loaded coremods (and transformers): 
    	GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 369.09' Renderer: 'GeForce 920MX/PCIe/SSE2'
    [22:39:07] [Client thread/INFO] [FML]: MinecraftForge v13.20.0.2228 Initialized
    [22:39:07] [Client thread/INFO] [FML]: Replaced 232 ore recipes
    [22:39:08] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
    [22:39:08] [Client thread/INFO] [FML]: Searching C:\Users\Andre\OneDrive\Documents\forge\1.11\run\mods for mods
    [22:39:10] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load
    [22:39:10] [Client thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, tutorial] at CLIENT
    [22:39:10] [Client thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, tutorial] at SERVER
    [22:39:11] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Tutorial Mod
    [22:39:11] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
    [22:39:11] [Client thread/INFO] [FML]: Found 444 ObjectHolder annotations
    [22:39:11] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
    [22:39:11] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
    [22:39:11] [Client thread/INFO] [FML]: Applying holder lookups
    [22:39:11] [Client thread/INFO] [FML]: Holder lookups applied
    [22:39:11] [Client thread/INFO] [FML]: Applying holder lookups
    [22:39:11] [Client thread/INFO] [FML]: Holder lookups applied
    [22:39:11] [Client thread/INFO] [FML]: Applying holder lookups
    [22:39:11] [Client thread/INFO] [FML]: Holder lookups applied
    [22:39:11] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
    [22:39:11] [Forge Version Check/INFO] [ForgeVersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
    [22:39:11] [Client thread/INFO] [FML]: Applying holder lookups
    [22:39:11] [Client thread/INFO] [FML]: Holder lookups applied
    [22:39:11] [Client thread/INFO] [FML]: Injecting itemstacks
    [22:39:11] [Client thread/INFO] [FML]: Itemstack injection complete
    [22:39:11] [Forge Version Check/INFO] [ForgeVersionCheck]: [forge] Found status: UP_TO_DATE Target: null
    [22:39:15] [Sound Library Loader/INFO]: Starting up SoundSystem...
    [22:39:15] [Thread-8/INFO]: Initializing LWJGL OpenAL
    [22:39:15] [Thread-8/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
    [22:39:15] [Thread-8/INFO]: OpenAL initialized.
    [22:39:16] [Sound Library Loader/INFO]: Sound engine started
    [22:39:22] [Client thread/INFO] [FML]: Max texture size: 16384
    [22:39:22] [Client thread/INFO]: Created: 16x16 textures-atlas
    [22:39:22] [Client thread/ERROR] [FML]: Exception loading model for variant tutorial:tutorial_block_container_json#normal for blockstate "tutorial:tutorial_block_container_json"
    net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model tutorial:tutorial_block_container_json#normal with loader VariantLoader.INSTANCE, skipping
    	at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:153) ~[ModelLoaderRegistry.class:?]
    	at net.minecraftforge.client.model.ModelLoader.registerVariant(ModelLoader.java:260) ~[ModelLoader.class:?]
    	at net.minecraft.client.renderer.block.model.ModelBakery.loadBlock(ModelBakery.java:153) ~[ModelBakery.class:?]
    	at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:248) ~[ModelLoader.class:?]
    	at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:155) ~[ModelLoader.class:?]
    	at net.minecraft.client.renderer.block.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?]
    	at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:122) [SimpleReloadableResourceManager.class:?]
    	at net.minecraft.client.Minecraft.init(Minecraft.java:541) [Minecraft.class:?]
    	at net.minecraft.client.Minecraft.run(Minecraft.java:387) [Minecraft.class:?]
    	at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_121]
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
    	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
    	at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_121]
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
    	at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
    	at GradleStart.main(GradleStart.java:26) [start/:?]
    Caused by: net.minecraft.client.renderer.block.model.ModelBlockDefinition$MissingVariantException
    	at net.minecraft.client.renderer.block.model.ModelBlockDefinition.getVariant(ModelBlockDefinition.java:78) ~[ModelBlockDefinition.class:?]
    	at net.minecraftforge.client.model.ModelLoader$VariantLoader.loadModel(ModelLoader.java:1253) ~[ModelLoader$VariantLoader.class:?]
    	at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?]
    	... 21 more
    [22:39:22] [Client thread/ERROR] [FML]: Exception loading blockstate for the variant tutorial:tutorial_block_container_json#normal: 
    java.lang.Exception: Could not load model definition for variant tutorial:tutorial_block_container_json
    	at net.minecraftforge.client.model.ModelLoader.getModelBlockDefinition(ModelLoader.java:293) ~[ModelLoader.class:?]
    	at net.minecraft.client.renderer.block.model.ModelBakery.loadBlock(ModelBakery.java:121) ~[ModelBakery.class:?]
    	at net.minecraftforge.client.model.ModelLoader.loadBlocks(ModelLoader.java:248) ~[ModelLoader.class:?]
    	at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:155) ~[ModelLoader.class:?]
    	at net.minecraft.client.renderer.block.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?]
    	at net.minecraft.client.resources.SimpleReloadableResourceManager.registerReloadListener(SimpleReloadableResourceManager.java:122) [SimpleReloadableResourceManager.class:?]
    	at net.minecraft.client.Minecraft.init(Minecraft.java:541) [Minecraft.class:?]
    	at net.minecraft.client.Minecraft.run(Minecraft.java:387) [Minecraft.class:?]
    	at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_121]
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
    	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
    	at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_121]
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
    	at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
    	at GradleStart.main(GradleStart.java:26) [start/:?]
    Caused by: java.lang.RuntimeException: Encountered an exception when loading model definition of model tutorial:blockstates/tutorial_block_container_json.json
    	at net.minecraft.client.renderer.block.model.ModelBakery.loadMultipartMBD(ModelBakery.java:228) ~[ModelBakery.class:?]
    	at net.minecraft.client.renderer.block.model.ModelBakery.getModelBlockDefinition(ModelBakery.java:208) ~[ModelBakery.class:?]
    	at net.minecraftforge.client.model.ModelLoader.getModelBlockDefinition(ModelLoader.java:289) ~[ModelLoader.class:?]
    	... 20 more
    Caused by: java.io.FileNotFoundException: tutorial:blockstates/tutorial_block_container_json.json
    	at net.minecraft.client.resources.FallbackResourceManager.getAllResources(FallbackResourceManager.java:104) ~[FallbackResourceManager.class:?]
    	at net.minecraft.client.resources.SimpleReloadableResourceManager.getAllResources(SimpleReloadableResourceManager.java:79) ~[SimpleReloadableResourceManager.class:?]
    	at net.minecraft.client.renderer.block.model.ModelBakery.loadMultipartMBD(ModelBakery.java:221) ~[ModelBakery.class:?]
    	at net.minecraft.client.renderer.block.model.ModelBakery.getModelBlockDefinition(ModelBakery.java:208) ~[ModelBakery.class:?]
    	at net.minecraftforge.client.model.ModelLoader.getModelBlockDefinition(ModelLoader.java:289) ~[ModelLoader.class:?]
    	... 20 more
    [22:39:23] [Client thread/INFO] [FML]: Injecting itemstacks
    [22:39:23] [Client thread/INFO] [FML]: Itemstack injection complete
    [22:39:23] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 5 mods
    [22:39:23] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Tutorial Mod
    [22:39:26] [Client thread/INFO]: SoundSystem shutting down...
    [22:39:27] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
    [22:39:27] [Sound Library Loader/INFO]: Starting up SoundSystem...
    [22:39:27] [Thread-10/INFO]: Initializing LWJGL OpenAL
    [22:39:27] [Thread-10/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
    [22:39:27] [Thread-10/INFO]: OpenAL initialized.
    [22:39:27] [Sound Library Loader/INFO]: Sound engine started
    [22:39:32] [Client thread/INFO] [FML]: Max texture size: 16384
    [22:39:32] [Client thread/INFO]: Created: 512x512 textures-atlas
    [22:39:34] [Client thread/WARN]: Skipping bad option: lastServer:
    [22:39:36] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id
    [22:39:39] [Server thread/INFO]: Starting integrated minecraft server version 1.11.2
    [22:39:39] [Server thread/INFO]: Generating keypair
    [22:39:39] [Server thread/INFO] [FML]: Injecting existing block and item data into this server instance
    [22:39:39] [Server thread/INFO] [FML]: Applying holder lookups
    [22:39:39] [Server thread/INFO] [FML]: Holder lookups applied
    [22:39:39] [Server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@1e6bd553)
    [22:39:40] [Server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@1e6bd553)
    [22:39:40] [Server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@1e6bd553)
    [22:39:40] [Server thread/INFO]: Preparing start region for level 0
    [22:39:41] [Server thread/INFO]: Changing view distance to 12, from 10
    [22:39:42] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 2
    [22:39:42] [Netty Server IO #1/INFO] [FML]: Client protocol version 2
    [22:39:42] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 5 mods : [email protected],[email protected],[email protected],[email protected],[email protected]_a
    [22:39:42] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established
    [22:39:42] [Server thread/INFO] [FML]: [Server thread] Server side modded connection established
    [22:39:42] [Server thread/INFO]: Player700[local:E:da8cdc3f] logged in with entity id 93 at (-217.58450025780354, 4.0, 412.80269425069326)
    [22:39:42] [Server thread/INFO]: Player700 joined the game
    [22:39:43] [Server thread/INFO]: Saving and pausing game...
    [22:39:43] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
    [22:39:44] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
    [22:39:44] [Server thread/INFO]: Saving chunks for level 'New World'/The End
    [22:39:44] [pool-2-thread-1/WARN]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@4d06184e[id=183eef8c-2608-3c01-af67-e8b358459ccf,name=Player700,properties={},legacy=false]
    com.mojang.authlib.exceptions.AuthenticationException: The client has sent too many requests within a certain amount of time
    	at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:79) ~[YggdrasilAuthenticationService.class:?]
    	at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillGameProfile(YggdrasilMinecraftSessionService.java:180) [YggdrasilMinecraftSessionService.class:?]
    	at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:60) [YggdrasilMinecraftSessionService$1.class:?]
    	at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:57) [YggdrasilMinecraftSessionService$1.class:?]
    	at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524) [guava-17.0.jar:?]
    	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317) [guava-17.0.jar:?]
    	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280) [guava-17.0.jar:?]
    	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195) [guava-17.0.jar:?]
    	at com.google.common.cache.LocalCache.get(LocalCache.java:3934) [guava-17.0.jar:?]
    	at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938) [guava-17.0.jar:?]
    	at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821) [guava-17.0.jar:?]
    	at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4827) [guava-17.0.jar:?]
    	at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillProfileProperties(YggdrasilMinecraftSessionService.java:170) [YggdrasilMinecraftSessionService.class:?]
    	at net.minecraft.client.Minecraft.getProfileProperties(Minecraft.java:3056) [Minecraft.class:?]
    	at net.minecraft.client.resources.SkinManager$3.run(SkinManager.java:138) [SkinManager$3.class:?]
    	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_121]
    	at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_121]
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_121]
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_121]
    	at java.lang.Thread.run(Unknown Source) [?:1.8.0_121]
    [22:39:48] [Server thread/INFO]: Player700 has just earned the achievement [Taking Inventory]
    [22:39:48] [Client thread/INFO]: [CHAT] Player700 has just earned the achievement [Taking Inventory]
    [22:39:55] [Server thread/INFO]: [Player700: Set own game mode to Creative Mode]
    [22:39:55] [Client thread/INFO]: [CHAT] Your game mode has been updated to Creative Mode
    [22:40:21] [Server thread/INFO]: Saving and pausing game...
    [22:40:21] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
    [22:40:21] [Server thread/ERROR] [FML]: A TileEntity type com.clowcadia.tutorial.blocks.TileEntityBlockTutorial has throw an exception trying to write state. It will not persist. Report this to the mod author
    java.lang.RuntimeException: class com.clowcadia.tutorial.blocks.TileEntityBlockTutorial is missing a mapping! This is a bug!
    	at net.minecraft.tileentity.TileEntity.writeInternal(TileEntity.java:89) ~[TileEntity.class:?]
    	at net.minecraft.tileentity.TileEntity.writeToNBT(TileEntity.java:80) ~[TileEntity.class:?]
    	at com.clowcadia.tutorial.blocks.TileEntityBlockTutorial.writeToNBT(TileEntityBlockTutorial.java:20) ~[TileEntityBlockTutorial.class:?]
    	at net.minecraft.world.chunk.storage.AnvilChunkLoader.writeChunkToNBT(AnvilChunkLoader.java:418) [AnvilChunkLoader.class:?]
    	at net.minecraft.world.chunk.storage.AnvilChunkLoader.saveChunk(AnvilChunkLoader.java:191) [AnvilChunkLoader.class:?]
    	at net.minecraft.world.gen.ChunkProviderServer.saveChunkData(ChunkProviderServer.java:209) [ChunkProviderServer.class:?]
    	at net.minecraft.world.gen.ChunkProviderServer.saveChunks(ChunkProviderServer.java:237) [ChunkProviderServer.class:?]
    	at net.minecraft.world.WorldServer.saveAllChunks(WorldServer.java:1065) [WorldServer.class:?]
    	at net.minecraft.server.MinecraftServer.saveAllWorlds(MinecraftServer.java:425) [MinecraftServer.class:?]
    	at net.minecraft.server.integrated.IntegratedServer.saveAllWorlds(IntegratedServer.java:238) [IntegratedServer.class:?]
    	at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:141) [IntegratedServer.class:?]
    	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:547) [MinecraftServer.class:?]
    	at java.lang.Thread.run(Unknown Source) [?:1.8.0_121]
    [22:40:21] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
    [22:40:21] [Server thread/INFO]: Saving chunks for level 'New World'/The End
    [22:40:22] [Client thread/INFO]: Stopping!
    [22:40:22] [Server thread/INFO]: Stopping server
    [22:40:22] [Server thread/INFO]: Saving players
    [22:40:22] [Server thread/INFO]: Saving worlds
    [22:40:22] [Server thread/INFO]: Saving chunks for level 'New World'/Overworld
    [22:40:22] [Server thread/INFO]: Saving chunks for level 'New World'/Nether
    [22:40:22] [Server thread/INFO]: Saving chunks for level 'New World'/The End
    [22:40:22] [Server thread/INFO] [FML]: Unloading dimension 0
    [22:40:22] [Server thread/INFO] [FML]: Unloading dimension -1
    [22:40:22] [Server thread/INFO] [FML]: Unloading dimension 1
    [22:40:22] [Client thread/INFO]: SoundSystem shutting down...
    [22:40:22] [Server thread/INFO] [FML]: Applying holder lookups
    [22:40:22] [Server thread/INFO] [FML]: Holder lookups applied
    [22:40:23] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
    Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
    package com.clowcadia.tutorial.blocks;
    
    import javax.annotation.Nullable;
    
    import net.minecraft.nbt.NBTTagCompound;
    import net.minecraft.tileentity.TileEntity;
    import net.minecraft.util.EnumFacing;
    import net.minecraftforge.common.capabilities.Capability;
    import net.minecraftforge.items.CapabilityItemHandler;
    import net.minecraftforge.items.ItemStackHandler;
    
    public class TileEntityBlockTutorial extends TileEntity 
    {
    	
    	private ItemStackHandler inventory = new ItemStackHandler(1);
    	
    	@Override
    	public NBTTagCompound writeToNBT(NBTTagCompound compound) {
    		compound.setTag("inventory", inventory.serializeNBT());
    		return super.writeToNBT(compound);
    	}
    	
    	@Override
    	public void readFromNBT(NBTTagCompound compound) {
    		inventory.deserializeNBT(compound.getCompoundTag("inventory"));
    		super.readFromNBT(compound);
    	}
    	
    	@Override
    	public boolean hasCapability(Capability<?> capability, @Nullable EnumFacing facing) {
    		return capability == CapabilityItemHandler.ITEM_HANDLER_CAPABILITY || super.hasCapability(capability, facing);
    	}
    	
    	@Nullable
    	@Override
    	public <T> T getCapability(Capability<T> capability, @Nullable EnumFacing facing) {
    		return capability == CapabilityItemHandler.ITEM_HANDLER_CAPABILITY ? (T)inventory : super.getCapability(capability, facing);
    	}
    
    }

     

  2. I couldnt not find a way to use ItemStackHandler Capability

    package com.clowcadia.tutorial.tileentity;
    
    import net.minecraft.tileentity.TileEntity;
    import net.minecraft.util.EnumFacing;
    import net.minecraftforge.common.capabilities.Capability;
    import net.minecraftforge.items.CapabilityItemHandler;
    
    public class TileEntityBlockTutorial extends TileEntity {
    	
    	@Override
    	public boolean hasCapability(Capability<?> capability, EnumFacing facing) {
    	  if (capability == CapabilityItemHandler.ITEM_HANDLER_CAPABILITY) {
    	    return true;
    	  }
    	  return super.hasCapability(capability, facing);
    	}
    
    }

     

  3. is this what you mean

    for starters 

    package com.clowcadia.tutorial.blocks;
    
    import com.clowcadia.tutorial.tileentity.TileEntityBlockTutorial;
    
    import net.minecraft.block.BlockContainer;
    import net.minecraft.block.material.Material;
    import net.minecraft.tileentity.TileEntity;
    import net.minecraft.world.World;
    
    public class BlockContainerTutorial extends BlockContainer{
    
    	public BlockContainerTutorial() {
    		super(Material.ROCK);
    		// TODO Auto-generated constructor stub
    	}
    
    	@Override
    	public TileEntity createNewTileEntity(World worldIn, int meta) {
    		// TODO Auto-generated method stub
    		return new TileEntityBlockTutorial();
    	}
    
    }

     

  4. sure

    package com.clowcadia.tutorial.proxy;
    
    import com.clowcadia.tutorial.handlers.ArmorHandler;
    import com.clowcadia.tutorial.handlers.BlockHandler;
    import com.clowcadia.tutorial.handlers.ItemHandler;
    import com.clowcadia.tutorial.world.WorldGenOre;
    
    import net.minecraftforge.fml.common.registry.GameRegistry;
    
    //Class to put Tile Entities
    public class ClientProxy extends CommonProxy
    {
    	public void init() 
    	{
    		ArmorHandler.registerRenders();
    		ItemHandler.registerRenders();		
    		BlockHandler.registerRenders();
    		
    	}
    
    }

     

  5. No idea whats going on, it should work but it crashes

    package com.clowcadia.tutorial.handlers;
    
    import net.minecraft.client.Minecraft;
    import net.minecraft.client.renderer.block.model.ModelResourceLocation;
    import net.minecraft.inventory.EntityEquipmentSlot;
    import net.minecraft.item.Item;
    import net.minecraftforge.fml.common.registry.GameRegistry;
    
    public class ArmorHandler 
    {
    	public static Item helmTutorial;
    	public static Item chestTutorial;
    	public static Item legsTutorial;
    	public static Item bootsTutorial;
    	
    	public static void init()
    	{
    		helmTutorial = new ItemTutorialArmor("tutorial_helm_json", CreativeTabHandler.tabBlocks, MaterialHandler.TUTORIAL_ARMOR, 0, EntityEquipmentSlot.HEAD);
    		chestTutorial = new ItemTutorialArmor("tutorial_chest_json", CreativeTabHandler.tabBlocks, MaterialHandler.TUTORIAL_ARMOR, 0, EntityEquipmentSlot.CHEST);
    		legsTutorial = new ItemTutorialArmor("tutorial_legs_json", CreativeTabHandler.tabBlocks, MaterialHandler.TUTORIAL_ARMOR, 1, EntityEquipmentSlot.LEGS);
    		bootsTutorial = new ItemTutorialArmor("tutorial_boots_json", CreativeTabHandler.tabBlocks, MaterialHandler.TUTORIAL_ARMOR, 0, EntityEquipmentSlot.FEET);
    	}
    	
    	public static void register()
    	{
    		GameRegistry.register(helmTutorial);
    		GameRegistry.register(chestTutorial);
    		GameRegistry.register(legsTutorial);
    		GameRegistry.register(bootsTutorial);
    	}
    	
    	public static void registerRenders()
    	{
    		registerRender(helmTutorial);
    		registerRender(chestTutorial);
    		registerRender(legsTutorial);
    		registerRender(bootsTutorial);
    	}
    	
    	public static void registerRender(Item item)
    	{
    		Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(item.getRegistryName(), "inventory"));
    	}
    
    }
    2017-02-20 16:42:44,161 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
    2017-02-20 16:42:44,163 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
    [16:42:44] [main/INFO] [GradleStart]: Extra: []
    [16:42:44] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Andre/.gradle/caches/minecraft/assets, --assetIndex, 1.11, --accessToken{REDACTED}, --version, 1.11.2, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
    [16:42:44] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
    [16:42:44] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
    [16:42:44] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
    [16:42:44] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
    [16:42:44] [main/INFO] [FML]: Forge Mod Loader version 13.20.0.2228 for Minecraft 1.11.2 loading
    [16:42:44] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_121, running on Windows 10:amd64:10.0, installed at C:\Program Files\JDK
    [16:42:44] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
    [16:42:44] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
    [16:42:44] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
    [16:42:44] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
    [16:42:44] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
    [16:42:44] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
    [16:42:44] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
    [16:42:44] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
    [16:42:44] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
    [16:42:44] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
    [16:42: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:42:46] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
    [16:42:46] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
    [16:42:46] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
    [16:42:47] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
    [16:42:47] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
    [16:42:47] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
    [16:42:47] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
    2017-02-20 16:42:48,720 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
    2017-02-20 16:42:48,777 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
    2017-02-20 16:42:48,779 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
    [16:42:49] [Client thread/INFO]: Setting user: Player608
    [16:42:54] [Client thread/WARN]: Skipping bad option: lastServer:
    [16:42:54] [Client thread/INFO]: LWJGL Version: 2.9.4
    [16:42:56] [Client thread/INFO]: [STDOUT]: ---- Minecraft Crash Report ----
    // I let you down. Sorry :(
    
    Time: 2/20/17 4:42 PM
    Description: Loading screen debug info
    
    This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR
    
    
    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------
    
    -- System Details --
    Details:
    	Minecraft Version: 1.11.2
    	Operating System: Windows 10 (amd64) version 10.0
    	Java Version: 1.8.0_121, Oracle Corporation
    	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    	Memory: 897528280 bytes (855 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
    	JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
    	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    	FML: 
    	Loaded coremods (and transformers): 
    	GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 369.09' Renderer: 'GeForce 920MX/PCIe/SSE2'
    [16:42:56] [Client thread/INFO] [FML]: MinecraftForge v13.20.0.2228 Initialized
    [16:42:56] [Client thread/INFO] [FML]: Replaced 232 ore recipes
    [16:42:56] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
    [16:42:56] [Client thread/INFO] [FML]: Searching C:\Users\Andre\OneDrive\Documents\forge\1.11\run\mods for mods
    [16:42:58] [Client thread/INFO] [FML]: Forge Mod Loader has identified 5 mods to load
    [16:42:59] [Client thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, tutorial] at CLIENT
    [16:42:59] [Client thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, FML, forge, tutorial] at SERVER
    [16:43:00] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Tutorial Mod
    [16:43:00] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
    [16:43:00] [Client thread/INFO] [FML]: Found 444 ObjectHolder annotations
    [16:43:00] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
    [16:43:00] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
    [16:43:00] [Client thread/INFO] [FML]: Applying holder lookups
    [16:43:00] [Client thread/INFO] [FML]: Holder lookups applied
    [16:43:00] [Client thread/INFO] [FML]: Applying holder lookups
    [16:43:00] [Client thread/INFO] [FML]: Holder lookups applied
    [16:43:00] [Client thread/INFO] [FML]: Applying holder lookups
    [16:43:00] [Client thread/INFO] [FML]: Holder lookups applied
    [16:43:00] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
    [16:43:00] [Forge Version Check/INFO] [ForgeVersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
    [16:43:00] [Client thread/INFO] [FML]: Applying holder lookups
    [16:43:00] [Client thread/INFO] [FML]: Holder lookups applied
    [16:43:00] [Client thread/INFO] [FML]: Injecting itemstacks
    [16:43:00] [Client thread/INFO] [FML]: Itemstack injection complete
    [16:43:00] [Forge Version Check/INFO] [ForgeVersionCheck]: [forge] Found status: UP_TO_DATE Target: null
    [16:43:04] [Sound Library Loader/INFO]: Starting up SoundSystem...
    [16:43:05] [Thread-8/INFO]: Initializing LWJGL OpenAL
    [16:43:05] [Thread-8/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
    [16:43:05] [Thread-8/INFO]: OpenAL initialized.
    [16:43:05] [Sound Library Loader/INFO]: Sound engine started
    [16:43:12] [Client thread/INFO] [FML]: Max texture size: 16384
    [16:43:12] [Client thread/INFO]: Created: 16x16 textures-atlas
    [16:43:13] [Client thread/ERROR] [FML]: Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue
    [16:43:13] [Client thread/ERROR] [FML]: 
    	States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
    	UCHI	minecraft{1.11.2} [Minecraft] (minecraft.jar) 
    	UCHI	mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) 
    	UCHI	FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.11.2-13.20.0.2228.jar) 
    	UCHI	forge{13.20.0.2228} [Minecraft Forge] (forgeSrc-1.11.2-13.20.0.2228.jar) 
    	UCHE	tutorial{1.0_a} [Tutorial Mod] (bin) 
    [16:43:13] [Client thread/ERROR] [FML]: The following problems were captured during this phase
    [16:43:13] [Client thread/ERROR] [FML]: Caught exception from Tutorial Mod (tutorial)
    java.lang.NullPointerException
    	at com.clowcadia.tutorial.handlers.ArmorHandler.registerRender(ArmorHandler.java:42) ~[bin/:?]
    	at com.clowcadia.tutorial.handlers.ArmorHandler.registerRenders(ArmorHandler.java:34) ~[bin/:?]
    	at com.clowcadia.tutorial.proxy.ClientProxy.init(ClientProxy.java:16) ~[bin/:?]
    	at com.clowcadia.tutorial.TutorialMod.init(TutorialMod.java:33) ~[bin/:?]
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_121]
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
    	at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:643) ~[forgeSrc-1.11.2-13.20.0.2228.jar:?]
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_121]
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
    	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:246) ~[forgeSrc-1.11.2-13.20.0.2228.jar:?]
    	at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:224) ~[forgeSrc-1.11.2-13.20.0.2228.jar:?]
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_121]
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
    	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:147) [LoadController.class:?]
    	at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:809) [Loader.class:?]
    	at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:343) [FMLClientHandler.class:?]
    	at net.minecraft.client.Minecraft.init(Minecraft.java:562) [Minecraft.class:?]
    	at net.minecraft.client.Minecraft.run(Minecraft.java:387) [Minecraft.class:?]
    	at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?]
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_121]
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
    	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
    	at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_121]
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_121]
    	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_121]
    	at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
    	at GradleStart.main(GradleStart.java:26) [start/:?]
    [16:43:13] [Client thread/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:600]: ---- Minecraft Crash Report ----
    // On the bright side, I bought you a teddy bear!
    
    Time: 2/20/17 4:43 PM
    Description: There was a severe problem during mod loading that has caused the game to fail
    
    net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from Tutorial Mod (tutorial)
    Caused by: java.lang.NullPointerException
    	at com.clowcadia.tutorial.handlers.ArmorHandler.registerRender(ArmorHandler.java:42)
    	at com.clowcadia.tutorial.handlers.ArmorHandler.registerRenders(ArmorHandler.java:34)
    	at com.clowcadia.tutorial.proxy.ClientProxy.init(ClientProxy.java:16)
    	at com.clowcadia.tutorial.TutorialMod.init(TutorialMod.java:33)
    	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:643)
    	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:246)
    	at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:224)
    	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:147)
    	at net.minecraftforge.fml.common.Loader.initializeMods(Loader.java:809)
    	at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:343)
    	at net.minecraft.client.Minecraft.init(Minecraft.java:562)
    	at net.minecraft.client.Minecraft.run(Minecraft.java:387)
    	at net.minecraft.client.main.Main.main(Main.java:118)
    	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 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.gradle.GradleStartCommon.launch(GradleStartCommon.java:97)
    	at GradleStart.main(GradleStart.java:26)
    
    
    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------
    
    -- System Details --
    Details:
    	Minecraft Version: 1.11.2
    	Operating System: Windows 10 (amd64) version 10.0
    	Java Version: 1.8.0_121, Oracle Corporation
    	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    	Memory: 875145816 bytes (834 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
    	JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
    	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    	FML: MCP 9.38 Powered by Forge 13.20.0.2228 5 mods loaded, 5 mods active
    	States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
    	UCHI	minecraft{1.11.2} [Minecraft] (minecraft.jar) 
    	UCHI	mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) 
    	UCHI	FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.11.2-13.20.0.2228.jar) 
    	UCHI	forge{13.20.0.2228} [Minecraft Forge] (forgeSrc-1.11.2-13.20.0.2228.jar) 
    	UCHE	tutorial{1.0_a} [Tutorial Mod] (bin) 
    	Loaded coremods (and transformers): 
    	GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 369.09' Renderer: 'GeForce 920MX/PCIe/SSE2'
    [16:43:13] [Client thread/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:600]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Andre\OneDrive\Documents\forge\1.11\run\.\crash-reports\crash-2017-02-20_16.43.13-client.txt
    AL lib: (EE) alc_cleanup: 1 device not closed
    Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

     

  6. 1 minute ago, TheSunCat said:

    By the way, you can check if something is generating easily if you do a System.out.println(pos.getX() + " " + pos.getY() + " " + pos.getZ()); That is how I check if my ores and generated structures spawn...

    Your very kind, but for the sake of the post and others who may have similar issues. Where would you plug that in?

  7. i missed something but it had no immpact

     

    package com.clowcadia.tutorial.world;
    
    import java.util.Random;
    
    import com.clowcadia.tutorial.handlers.BlockHandler;
    import com.google.common.base.Predicate;
    
    import net.minecraft.block.state.IBlockState;
    import net.minecraft.block.state.pattern.BlockMatcher;
    import net.minecraft.init.Blocks;
    import net.minecraft.util.math.BlockPos;
    import net.minecraft.world.World;
    import net.minecraft.world.chunk.IChunkGenerator;
    import net.minecraft.world.chunk.IChunkProvider;
    import net.minecraft.world.gen.feature.WorldGenMinable;
    import net.minecraftforge.fml.common.IWorldGenerator;
    
    public class WorldGenOre implements IWorldGenerator{
    
    	@Override
    	public void generate(Random random, int chunkX, int chunkZ, World world, IChunkGenerator chunkGenerator, IChunkProvider chunkProvider) 
    	{
    		  switch(world.provider.getDimension())
    		  {
    		  case -1: genSurface(world, random, chunkX, chunkZ);
    		  	break;
    		  case 0: genSurface(world, random, chunkX, chunkZ);
    		  	break;
    		  case 1: genSurface(world, random, chunkX, chunkZ);
    		  	break;
    		  default: genSurface(world, random, chunkX, chunkZ);
    		  	break;
    		  }
    	}
    	
    	private void genSurface(World world, Random random, int chunkX, int chunkZ)
    	{
    		 addOreSpawn(BlockHandler.blockTutorial.getDefaultState(), world, random, chunkX, chunkZ, 16, 16, 100, 20, 74, 126, BlockMatcher.forBlock(Blocks.STONE));
    	}
    	
    	private void addOreSpawn(IBlockState block, World world, Random random, int blockXPos, int blockZPos, int maxX, int maxZ, int maxVeinSize, int chance, int minY, int maxY, Predicate<IBlockState> blockToSpawnIn)
    	{
    		int diffMinMaxY = maxY - minY;
    		for(int x = 0; x < chance; x++)
    		{
    		   int posX = blockXPos + random.nextInt(maxX);
    		   int posY = minY + random.nextInt(diffMinMaxY);
    		   int posZ = blockZPos + random.nextInt(maxZ);
    		   (new WorldGenMinable(block, maxVeinSize, blockToSpawnIn)).generate(world, random, new BlockPos(posX, posY, posZ));
    		}
    	}
    
    }

     

  8. I am back, so i made an ore generator handler and i still cant find my ores

    OreGenHandler

    package com.clowcadia.tutorial.world;
    
    import java.util.Random;
    
    import com.clowcadia.tutorial.handlers.BlockHandler;
    import com.google.common.base.Predicate;
    
    import net.minecraft.block.state.IBlockState;
    import net.minecraft.block.state.pattern.BlockMatcher;
    import net.minecraft.init.Blocks;
    import net.minecraft.util.math.BlockPos;
    import net.minecraft.world.World;
    import net.minecraft.world.chunk.IChunkGenerator;
    import net.minecraft.world.chunk.IChunkProvider;
    import net.minecraft.world.gen.feature.WorldGenMinable;
    import net.minecraftforge.fml.common.IWorldGenerator;
    
    public class WorldGenOre implements IWorldGenerator{
    
    	@Override
    	public void generate(Random random, int chunkX, int chunkZ, World world, IChunkGenerator chunkGenerator, IChunkProvider chunkProvider) 
    	{
    		  switch(world.provider.getDimension())
    		  {
    		  
    		  }
    	}
    	
    	private void genSurface(World world, Random random, int chunkX, int chunkZ)
    	{
    		 addOreSpawn(BlockHandler.blockTutorial.getDefaultState(), world, random, chunkX, chunkZ, 16, 16, 100, 20, 74, 126, BlockMatcher.forBlock(Blocks.STONE));
    	}
    	
    	private void addOreSpawn(IBlockState block, World world, Random random, int blockXPos, int blockZPos, int maxX, int maxZ, int maxVeinSize, int chance, int minY, int maxY, Predicate<IBlockState> blockToSpawnIn)
    	{
    		int diffMinMaxY = maxY - minY;
    		for(int x = 0; x < chance; x++)
    		{
    		   int posX = blockXPos + random.nextInt(maxX);
    		   int posY = minY + random.nextInt(diffMinMaxY);
    		   int posZ = blockZPos + random.nextInt(maxZ);
    		   (new WorldGenMinable(block, maxVeinSize, blockToSpawnIn)).generate(world, random, new BlockPos(posX, posY, posZ));
    		}
    	}
    
    }

    ClientProxy

    package com.clowcadia.tutorial.proxy;
    
    import com.clowcadia.tutorial.handlers.BlockHandler;
    import com.clowcadia.tutorial.handlers.ItemHandler;
    import com.clowcadia.tutorial.world.WorldGenOre;
    
    import net.minecraftforge.fml.common.registry.GameRegistry;
    
    //Class to put Tile Entities
    public class ClientProxy extends CommonProxy
    {
    	public void init() 
    	{
    		ItemHandler.registerRenders();
    		BlockHandler.registerRenders();
    		GameRegistry.registerWorldGenerator(new WorldGenOre(), 0);
    	}
    
    }

     

×
×
  • Create New...

Important Information

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