Jump to content

EscapeMC

Forge Modder
  • Posts

    337
  • Joined

  • Last visited

Everything posted by EscapeMC

  1. Block code: package com.escapemc.teammadnessmod.blocks; import com.escapemc.teammadnessmod.Reference; import net.minecraft.block.Block; import net.minecraft.block.material.Material; public class madness_ore extends Block { public madness_ore(Material materialIn) { super(materialIn); this.setHardness(0.6F); this.setHarvestLevel("pickaxe", 3); this.setResistance(15); setUnlocalizedName(Reference.ModItems.MADNESS_ORE.getUnlocalizedName()); setRegistryName(Reference.ModItems.MADNESS_ORE.getRegistryName()); } } Model Block: { "variants": { "normal": { "model": "tmm:madness_ore" } } } Model Item: { "parent": "block/cube_all", "textures": { "all": "tmm:blocks/madness_ore" } } Blockstate: { "variants": { "normal": { "model": "tmm:madness_ore" } } } ModBlock.java class: package com.escapemc.teammadnessmod.init; import com.escapemc.teammadnessmod.Main; import com.escapemc.teammadnessmod.blocks.cdm; import com.escapemc.teammadnessmod.blocks.epicbudder22_ore; import com.escapemc.teammadnessmod.blocks.escapemc_ore; import com.escapemc.teammadnessmod.blocks.jonahjoe2002_ore; import com.escapemc.teammadnessmod.blocks.madness_ore; import com.escapemc.teammadnessmod.blocks.ms; import com.escapemc.teammadnessmod.blocks.mushrromstew_ore; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.item.Item; import net.minecraft.item.ItemBlock; import net.minecraftforge.client.model.ModelLoader; import net.minecraftforge.fml.common.registry.GameRegistry; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; public class ModBlocks { public static Block escapemc_ore; public static Block mushrromstew_ore; public static Block epicbudder22_ore; public static Block jonahjoe2002_ore; public static Block ms; public static Block cdm; public static Block madness_ore; public static void init() { escapemc_ore = new escapemc_ore(Material.IRON).setCreativeTab(Main.TeamMadnessModMaterialsTab); mushrromstew_ore = new mushrromstew_ore(Material.IRON).setCreativeTab(Main.TeamMadnessModMaterialsTab); epicbudder22_ore = new epicbudder22_ore(Material.IRON).setCreativeTab(Main.TeamMadnessModMaterialsTab); jonahjoe2002_ore = new jonahjoe2002_ore(Material.IRON).setCreativeTab(Main.TeamMadnessModMaterialsTab); ms = new ms(Material.IRON).setCreativeTab(Main.TeamMadnessModMaterialsTab); cdm = new cdm(Material.IRON).setCreativeTab(Main.TeamMadnessModMaterialsTab); madness_ore = new madness_ore(Material.IRON).setCreativeTab(Main.TeamMadnessModMaterialsTab); } public static void registry() { GameRegistry.register(new ItemBlock(escapemc_ore), escapemc_ore.getRegistryName()); GameRegistry.register(new ItemBlock (mushrromstew_ore), mushrromstew_ore.getRegistryName()); GameRegistry.register(new ItemBlock(epicbudder22_ore), epicbudder22_ore.getRegistryName()); GameRegistry.register(new ItemBlock(jonahjoe2002_ore), jonahjoe2002_ore.getRegistryName()); GameRegistry.register(new ItemBlock(ms), ms.getRegistryName()); GameRegistry.register(new ItemBlock(cdm), cdm.getRegistryName()); GameRegistry.register(new ItemBlock(madness_ore), madness_ore.getRegistryName()); } public static void registerBlock(Block block) { GameRegistry.register(block); ItemBlock item = new ItemBlock(block); item.setRegistryName(block.getRegistryName()); GameRegistry.register(item); } public static void registerRenders() { registerRender(escapemc_ore); registerRender(mushrromstew_ore); registerRender(epicbudder22_ore); registerRender(jonahjoe2002_ore); registerRender(ms); registerRender(cdm); registerRender(madness_ore); } @SideOnly(Side.CLIENT) public static void registerRender(Block block) { ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(block), 0, new ModelResourceLocation(block.getRegistryName(), "inventory")); } }
  2. Alright, so I might have found the problem? I noticed whenever I place a block, it has the purple-black texture. Might this be the problem? The item itself in my hand is normal, so is it the blockstate? Example of my blockstate: { "variants": { "normal": { "model": "tmm:madness_ore" } } } This is for all blocks too by the way.
  3. Whelp I changed that, and now where ever the ores should be, there are empty air blocks, and i cannot go through them, but they are destroyed...
  4. Oh goodness thank you! I cannot believe I looked over that
  5. Ok, so I am on the last thing I need. I am working on world_gen currently, and I for some reason cannot get it to work! world_gen class: package com.escapemc.teammadnessmod.world; import java.util.Random; import com.escapemc.teammadnessmod.init.ModBlocks; 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.minecraft.world.gen.feature.WorldGenerator; import net.minecraftforge.fml.common.IWorldGenerator; public class world_gen implements IWorldGenerator { @Override public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) { switch (world.provider.getDimension()) { case 0: //Overworld this.runGenerator(this.gen_escapemc_ore, world, random, chunkX, chunkZ, 8, 0, 64); this.runGenerator(this.gen_mushrromstew_ore, world, random, chunkX, chunkZ, 8, 0, 64); this.runGenerator(this.gen_epicbudder22_ore, world, random, chunkX, chunkZ, 8, 0, 64); this.runGenerator(this.gen_jonahjoe2002_ore, world, random, chunkX, chunkZ, 8, 0, 64); this.runGenerator(this.gen_ms, world, random, chunkX, chunkZ, 6, 0, 40); this.runGenerator(this.gen_madness_ore, world, random, chunkX, chunkZ, 6, 0, 64); break; case -1: //Nether break; case 1: //End break; } } private WorldGenerator gen_escapemc_ore; private WorldGenerator gen_mushrromstew_ore; private WorldGenerator gen_epicbudder22_ore; private WorldGenerator gen_jonahjoe2002_ore; private WorldGenerator gen_ms; private WorldGenerator gen_madness_ore; public world_gen() { this.gen_escapemc_ore = new WorldGenMinable(ModBlocks.escapemc_ore.getDefaultState(), ; this.gen_mushrromstew_ore = new WorldGenMinable(ModBlocks.mushrromstew_ore.getDefaultState(), ; this.gen_epicbudder22_ore = new WorldGenMinable(ModBlocks.epicbudder22_ore.getDefaultState(), ; this.gen_jonahjoe2002_ore = new WorldGenMinable(ModBlocks.jonahjoe2002_ore.getDefaultState(), ; this.gen_ms = new WorldGenMinable(ModBlocks.ms.getDefaultState(), 4); this.gen_madness_ore = new WorldGenMinable(ModBlocks.madness_ore.getDefaultState(), 4); } private void runGenerator(WorldGenerator generator, World world, Random rand, int chunk_X, int chunk_Z, int chancesToSpawn, int minHeight, int maxHeight) { if (minHeight < 0 || maxHeight > 256 || minHeight > maxHeight) throw new IllegalArgumentException("Illegal Height Arguments for WorldGenerator"); int heightDiff = maxHeight - minHeight + 1; for (int i = 0; i < chancesToSpawn; i ++) { int x = chunk_X * 16 + rand.nextInt(16); int y = minHeight + rand.nextInt(heightDiff); int z = chunk_Z * 16 + rand.nextInt(16); generator.generate(world, rand, new BlockPos(x, y, z)); } } @Override public void generate(Random random, int chunkX, int chunkZ, World world, IChunkGenerator chunkGenerator, IChunkProvider chunkProvider) { } } Do note, eclipse tells me to remove the @Override annotation at the top-area. Without it anyway, world gen does not take place for my ores. I registered it in the init method as well with GameRegistry.registerWorldGenerator(new world_gen(), 0); What am I missing?
  6. Do you even READ what people have said???
  7. Ok, so what exactly are you trying to install? Also, is this a custom mod you made, or just a mod you downloaded?
  8. Umm... Well, I'm no legend with code, but I'm pretty sure if it says it cannot find a texture, there must be some either 1) Name error/spelling error 2) The texture trying to be acquired is not in the right/specified place Don't hate on me please, but these are my thoughts
  9. Alright, would the item model json be the same/similar ( { "parent": "item/generated", "textures": { "layer0": "MODID:[blocks or items here?]/(BLOCKNAME)" } }
  10. You need to call setCustomModelResourceLocation during preInit Alright! So, it all works, except my block textures. I called upon my ClientProxy.init (proxy.init() in the preinit now. I do get this error in my console: [16:38:15] [Client thread/ERROR] [FML]: Exception loading model for variant tmm:epicbudder22_ore#inventory for item "tmm:epicbudder22_ore", blockstate location exception: net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model tmm:epicbudder22_ore#inventory with loader VariantLoader.INSTANCE, skipping at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:153) ~[ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.loadItemModels(ModelLoader.java:325) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelBakery.loadVariantItemModels(ModelBakery.java:170) ~[ModelBakery.class:?] at net.minecraftforge.client.model.ModelLoader.setupModelRegistry(ModelLoader.java:147) ~[ModelLoader.class:?] at net.minecraft.client.renderer.block.model.ModelManager.onResourceManagerReload(ModelManager.java:28) [ModelManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.notifyReloadListeners(SimpleReloadableResourceManager.java:132) [simpleReloadableResourceManager.class:?] at net.minecraft.client.resources.SimpleReloadableResourceManager.reloadResources(SimpleReloadableResourceManager.java:113) [simpleReloadableResourceManager.class:?] at net.minecraft.client.Minecraft.refreshResources(Minecraft.java:799) [Minecraft.class:?] at net.minecraftforge.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:340) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:561) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:386) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_101] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_101] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_101] 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_101] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_101] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_101] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_101] 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:1184) ~[ModelLoader$VariantLoader.class:?] at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:149) ~[ModelLoaderRegistry.class:?] ... 23 more except 7 times, once for each block. I see something about my blockstate. On of my blockstates: { "variants": { "normal": { "model": "tmm:epicbudder22_ore" } } } and just for it, one of my models in the models.block: { "parent": "block/cube_all", "textures": { "all": "tmm:blocks/epicbudder22_ore" } } (PS, do I need a model in the models.item too for blocks?)
  11. Also, after switching to ModelLoader.setCustomModelResourceLocation.... NONE of my textures have loaded, but now are only the black and purple "No texture" thing...
  12. Wow... I am stupid.... *facepalm* Also, where do I add @SideOnly(Client) exactly?
  13. Alright, so I am doing exactly this, but since it is not a block, what do i replace getItemFromBlock with, as they are items? and, to make the registerRender methods SideOnly, where would I add SideOnly(Client)? and I assume you want me to add SideOnly to both items and blocks?
  14. DRACO I OWE YOU SO FREAKING MUCH!!! FOR THE PAST MONTH I COULD NOT FIGURE OUT THIS PART AND I FINALLY DID SO THANKYOUTHANKYOUTHANKYOU BLESS YOU Draco18s ;D ;D ;D ;D ;D ;D :D :D :D :D :D EDIT: Its only been like 2+/- weeks since you told me this but anyway, thank you!!!!!!!
  15. HOLY SHIT YES!!!!!! I actually figured out what you meant by the ModelLoader.setCustomModelResourceLocation!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! I am happy
  16. #1, how can I change this? where exactly did I do this and how can I fix it? #2, Goodness I suck at not using the right things! How can I change from ModelMesher? (where exactly did I do this? Are you saying to change Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(block), 0, new ModelResourceLocation(block.getRegistryName(), "inventory")); to Minecraft.getMinecraft().getRenderItem().getModelLoader().register(Item.getItemFromBlock(block), 0, new ModelResourceLocation(block.getRegistryName(), "inventory")); or what exactly for that?) EDIT: Ok, so are you looking for ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(block), 0, new ModelResourceLocation(block.getRegistryName(), "inventory")); instead of that other thing that I had inside of registerRender(Block block)??
  17. Ok, so I have my blocks registered and everything now, but the textures do not appear. GitHub: https://github.com/EcapeMC/TeamMadnessMod-1.10.2/tree/master/main It is probably some stupid thing I cannot see...
  18. *facepalm* I looked into this all and I found the solution.
  19. Ok, so when I do ItemBlock escapemc_ore = new escapemc_ore(Material.IRON).setCreativeTab(Main.TeamMadnessModMaterialsTab); It gives me an error to make the type a Block, just to Block escapemc_ore = new escapemc_ore(Material.IRON).setCreativeTab(Main.TeamMadnessModMaterialsTab); and that gives me no error. But when I run my game it gives me a crash, Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release [12:14:55] [main/INFO] [GradleStart]: Extra: [] [12:14:55] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, /Users/school/.gradle/caches/minecraft/assets, --assetIndex, 1.10, --accessToken{REDACTED}, --version, 1.10.2, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [12:14:55] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [12:14:55] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [12:14:55] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [12:14:55] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [12:14:55] [main/INFO] [FML]: Forge Mod Loader version 12.18.2.2099 for Minecraft 1.10.2 loading [12:14:55] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_101, running on Mac OS X:x86_64:10.12.1, installed at /Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home/jre [12:14:55] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [12:14:55] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [12:14:55] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin [12:14:55] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [12:14:55] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [12:14:55] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [12:14:55] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [12:14:55] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [12:14:55] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [12:14:55] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [12:14:55] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [12:14:56] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [12:14:56] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [12:14:56] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [12:14:57] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [12:14:57] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [12:14:57] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [12:14:57] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [12:14:58] [Client thread/INFO]: Setting user: Player916 [12:15:02] [Client thread/WARN]: Skipping bad option: lastServer: [12:15:02] [Client thread/INFO]: LWJGL Version: 2.9.2 [12:15:03] [Client thread/INFO] [FML]: MinecraftForge v12.18.2.2099 Initialized [12:15:03] [Client thread/INFO] [FML]: Replaced 232 ore recipes [12:15:03] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer [12:15:03] [Client thread/INFO] [FML]: Searching /Users/school/Extras/TeamMadness Mod 1.10.2/run/mods for mods [12:15:03] [Client thread/ERROR] [FML]: The mcmod.info file in bin cannot be parsed as valid JSON. It will be ignored com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:176) ~[ReflectiveTypeAdapterFactory$Adapter.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.fromJson(Gson.java:841) ~[Gson.class:?] at net.minecraftforge.fml.common.MetadataCollection.from(MetadataCollection.java:72) [MetadataCollection.class:?] at net.minecraftforge.fml.common.discovery.DirectoryDiscoverer.exploreFileSystem(DirectoryDiscoverer.java:76) [DirectoryDiscoverer.class:?] at net.minecraftforge.fml.common.discovery.DirectoryDiscoverer.discover(DirectoryDiscoverer.java:60) [DirectoryDiscoverer.class:?] at net.minecraftforge.fml.common.discovery.ContainerType.findMods(ContainerType.java:49) [ContainerType.class:?] at net.minecraftforge.fml.common.discovery.ModCandidate.explore(ModCandidate.java:78) [ModCandidate.class:?] at net.minecraftforge.fml.common.discovery.ModDiscoverer.identifyMods(ModDiscoverer.java:141) [ModDiscoverer.class:?] at net.minecraftforge.fml.common.Loader.identifyMods(Loader.java:381) [Loader.class:?] at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:520) [Loader.class:?] at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:218) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:477) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:386) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_101] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_101] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_101] 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_101] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_101] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_101] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_101] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:26) [start/:?] Caused by: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at com.google.gson.internal.bind.JsonTreeReader.expect(JsonTreeReader.java:139) ~[JsonTreeReader.class:?] at com.google.gson.internal.bind.JsonTreeReader.beginArray(JsonTreeReader.java:58) ~[JsonTreeReader.class:?] at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:79) ~[CollectionTypeAdapterFactory$Adapter.class:?] at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:60) ~[CollectionTypeAdapterFactory$Adapter.class:?] at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:93) ~[ReflectiveTypeAdapterFactory$1.class:?] at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:172) ~[ReflectiveTypeAdapterFactory$Adapter.class:?] ... 27 more [12:15:05] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [12:15:05] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, tmm] at CLIENT [12:15:05] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, tmm] at SERVER [12:15:06] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:TeamMadness Mod [12:15:06] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [12:15:06] [Client thread/INFO] [FML]: Found 423 ObjectHolder annotations [12:15:06] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations [12:15:06] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations [12:15:06] [Client thread/INFO] [FML]: Applying holder lookups [12:15:06] [Client thread/INFO] [FML]: Holder lookups applied [12:15:06] [Client thread/INFO] [FML]: Applying holder lookups [12:15:06] [Client thread/INFO] [FML]: Holder lookups applied [12:15:06] [Client thread/INFO] [FML]: Applying holder lookups [12:15:06] [Client thread/INFO] [FML]: Holder lookups applied [12:15:06] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [12:15:06] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json [12:15:06] [Client thread/INFO] [sTDOUT]: [com.escapemc.teammadnessmod.Main:preinit:38]: Pre Init [12:15:06] [Client thread/ERROR] [FML]: Attempt to register a null object [12:15:06] [Client thread/INFO] [FML]: Applying holder lookups [12:15:06] [Client thread/INFO] [FML]: Holder lookups applied [12:15:06] [Client thread/INFO] [FML]: Injecting itemstacks [12:15:06] [Client thread/INFO] [FML]: Itemstack injection complete [12:15:06] [Client thread/ERROR] [FML]: Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue [12:15:06] [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 UCH mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) UCH FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.10.2-12.18.2.2099.jar) UCH Forge{12.18.2.2099} [Minecraft Forge] (forgeSrc-1.10.2-12.18.2.2099.jar) UCE tmm{1.5.0.0} [TeamMadness Mod] (bin) [12:15:06] [Client thread/ERROR] [FML]: The following problems were captured during this phase [12:15:06] [Client thread/ERROR] [FML]: Caught exception from tmm java.lang.NullPointerException: Attempt to register a null object at net.minecraftforge.fml.common.registry.GameData.register_impl(GameData.java:246) ~[forgeSrc-1.10.2-12.18.2.2099.jar:?] at net.minecraftforge.fml.common.registry.GameRegistry.register(GameRegistry.java:153) ~[forgeSrc-1.10.2-12.18.2.2099.jar:?] at com.escapemc.teammadnessmod.init.ModBlocks.registry(ModBlocks.java:52) ~[bin/:?] at com.escapemc.teammadnessmod.Main.preinit(Main.java:43) ~[bin/:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_101] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_101] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_101] at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:599) ~[forgeSrc-1.10.2-12.18.2.2099.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_101] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_101] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_101] 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:239) ~[forgeSrc-1.10.2-12.18.2.2099.jar:?] at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:217) ~[forgeSrc-1.10.2-12.18.2.2099.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_101] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_101] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_101] 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:142) [LoadController.class:?] at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:609) [Loader.class:?] at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:257) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:477) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:386) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_101] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_101] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_101] 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_101] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_101] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_101] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_101] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:26) [start/:?] [12:15:06] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:649]: ---- Minecraft Crash Report ---- // Oh - I know what I did wrong! Time: 12/15/16 12:15 PM Description: Initializing game java.lang.NullPointerException: Attempt to register a null object at net.minecraftforge.fml.common.registry.GameData.register_impl(GameData.java:246) at net.minecraftforge.fml.common.registry.GameRegistry.register(GameRegistry.java:153) at com.escapemc.teammadnessmod.init.ModBlocks.registry(ModBlocks.java:52) at com.escapemc.teammadnessmod.Main.preinit(Main.java:43) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:599) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) 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:239) at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:217) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) 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:142) at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:609) at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:257) at net.minecraft.client.Minecraft.startGame(Minecraft.java:477) at net.minecraft.client.Minecraft.run(Minecraft.java:386) at net.minecraft.client.main.Main.main(Main.java:118) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) 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(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) 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: --------------------------------------------------------------------------------------- -- Head -- Thread: Client thread Stacktrace: at net.minecraftforge.fml.common.registry.GameData.register_impl(GameData.java:246) at net.minecraftforge.fml.common.registry.GameRegistry.register(GameRegistry.java:153) at com.escapemc.teammadnessmod.init.ModBlocks.registry(ModBlocks.java:52) at com.escapemc.teammadnessmod.Main.preinit(Main.java:43) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:599) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) 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:239) at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:217) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) 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:142) at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:609) at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:257) at net.minecraft.client.Minecraft.startGame(Minecraft.java:477) -- Initialization -- Details: Stacktrace: at net.minecraft.client.Minecraft.run(Minecraft.java:386) at net.minecraft.client.main.Main.main(Main.java:118) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) 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(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) at GradleStart.main(GradleStart.java:26) -- System Details -- Details: Minecraft Version: 1.10.2 Operating System: Mac OS X (x86_64) version 10.12.1 Java Version: 1.8.0_101, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 843019360 bytes (803 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.32 Powered by Forge 12.18.2.2099 4 mods loaded, 4 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UCH mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) UCH FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.10.2-12.18.2.2099.jar) UCH Forge{12.18.2.2099} [Minecraft Forge] (forgeSrc-1.10.2-12.18.2.2099.jar) UCE tmm{1.5.0.0} [TeamMadness Mod] (bin) Loaded coremods (and transformers): Launched Version: 1.10.2 LWJGL: 2.9.2 OpenGL: Intel(R) Iris(TM) Graphics 6100 GL version 2.1 INTEL-10.20.23, Intel Inc. GL Caps: Using GL 1.3 multitexturing. Using GL 1.3 texture combiners. Using framebuffer objects because ARB_framebuffer_object is supported and separate blending is supported. Shaders are available because OpenGL 2.1 is supported. VBOs are available because OpenGL 1.5 is supported. Using VBOs: Yes Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Packs: Current Language: English (US) Profiler Position: N/A (disabled) CPU: 4x Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz [12:15:06] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:649]: #@!@# Game crashed! Crash report saved to: #@!@# /Users/school/Extras/TeamMadness Mod 1.10.2/run/./crash-reports/crash-2016-12-15_12.15.06-client.txt Registering a null item. That null block is escapemc_ore
  20. So, you're saying to do this (with example names): public static void init() { example_ore = new example_ore(Materials.IRON).setCreativeTab(Main.Materials); GameRegistry.register(example_ore); } or what exactly do you mean? can you type out what you mean?
  21. No, but what exactly do you mean by How are you doing this? (Stupid question ) And what exactly do you mean by it?
  22. What exactly do you mean? I do not believe I have to do this...
  23. All of my items and CreativeTabs are there ALSO, does anyone know what I should put in my .jsons for models for an Axe per say? Because it is kind of funny looking at an axe in a hand like a normal item... (if you don't know what I mean for what to put differently, item/generated is what I am currently using. I tried itemaxe/generated but that didn't work)
×
×
  • Create New...

Important Information

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