Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

The_First_Fool

Members
  • Joined

  • Last visited

Everything posted by The_First_Fool

  1. Thanks it works perfectly now
  2. please can you put up what I need to put in that stub or a generic version of what I need to put in there
  3. Ah i didn't notice that originally, but please tell what should i fill it in with?
  4. package com.ThreeFoolsStudios.ArcaneMod; import java.util.Random; import com.ThreeFoolsStudios.ArcaneMod.init.ArcaneBlocks; import net.minecraft.block.Block; import net.minecraft.block.state.IBlockState; import net.minecraft.init.Blocks; import net.minecraft.util.BlockPos; import net.minecraft.world.World; import net.minecraft.world.chunk.IChunkProvider; import net.minecraft.world.gen.feature.WorldGenMinable; import net.minecraftforge.fml.common.IWorldGenerator; public class OreGeneration implements IWorldGenerator { @Override public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider) { switch (world.provider.getDimensionId()) { case 0: generateOverWorld(world, random, chunkX, chunkZ); break; } } public void generateOverWorld(World world, Random rand, int x, int z) { generateOre(ArcaneBlocks.Necromantic_Crystal, world, rand, x, z, 2, 5, 4, 16, 50, Blocks.stone); } public void generateOre(Block block, World world, Random random, int chunkX, int chunkZ, int minVeinSize, int maxVeinSize, int chance, int minY, int maxY, Block generateIn) { int VeinSize = minVeinSize + random.nextInt(maxVeinSize - minVeinSize); int heightRange = maxY - minY; WorldGenMinable gen = new WorldGenMinable(getdefault(block), VeinSize); for (int i=0; i< chance; i++){ int xRand = chunkX * 16 + random.nextInt(16); int yRand = random.nextInt(heightRange) + minY; int zRand = chunkZ * 16 + random.nextInt(16); gen.generate(world, random, new BlockPos(xRand, yRand, zRand)); } } private IBlockState getdefault(Block block) { // TODO Auto-generated method stub return null; } }
  5. this is my crash report can someone help me fix this, i dont know whats wrong, if you want to see code then ask. ---- Minecraft Crash Report ---- // I bet Cylons wouldn't have this problem. Time: 16/03/15 21:42 Description: Exception in server tick loop java.lang.NullPointerException: Exception in server tick loop at net.minecraft.world.World.setBlockState(World.java:320) at net.minecraft.world.gen.feature.WorldGenMinable.generate(WorldGenMinable.java:79) at com.ThreeFoolsStudios.ArcaneMod.OreGeneration.generateOre(OreGeneration.java:42) at com.ThreeFoolsStudios.ArcaneMod.OreGeneration.generateOverWorld(OreGeneration.java:28) at com.ThreeFoolsStudios.ArcaneMod.OreGeneration.generate(OreGeneration.java:22) at net.minecraftforge.fml.common.registry.GameRegistry.generateWorld(GameRegistry.java:106) at net.minecraft.world.gen.ChunkProviderServer.populate(ChunkProviderServer.java:270) at net.minecraft.world.chunk.Chunk.populateChunk(Chunk.java:1126) at net.minecraft.world.gen.ChunkProviderServer.originalLoadChunk(ChunkProviderServer.java:180) at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:122) at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:92) at net.minecraft.server.MinecraftServer.initialWorldChunkLoad(MinecraftServer.java:302) at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:112) at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:126) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:438) at java.lang.Thread.run(Thread.java:745) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.8 Operating System: Windows 8.1 (amd64) version 6.3 Java Version: 1.8.0_40, Oracle Corporation Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 810332416 bytes (772 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95 FML: MCP v9.10 FML v8.0.20.1295 Minecraft Forge 11.14.0.1295 4 mods loaded, 4 mods active mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available FML{8.0.20.1295} [Forge Mod Loader] (forgeSrc-1.8-11.14.0.1295-1.8.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available Forge{11.14.0.1295} [Minecraft Forge] (forgeSrc-1.8-11.14.0.1295-1.8.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available arm{1.0} [Arcane Mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available Profiler Position: N/A (disabled) Player Count: 0 / 8; [] Type: Integrated Server (map_client.txt) Is Modded: Definitely; Client brand changed to 'fml,forge'

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.