Jump to content
Search In
  • More options...
Find results that contain...
Find results in...


  • Content Count

  • Joined

  • Last visited

Community Reputation

4 Neutral

About Sessional

  • Rank
    Tree Puncher


  • Gender
  1. My JAVA_HOME is: C:\Program Files\Java\jdk1.8.0_25
  2. Your best off setting it, as many of the tools will use it. I wouldn't be surprised if Netbeans installer sets it, or if it just simulates it when you launch Netbeans. On the other hand, as much as I prefer Netbeans, it's much easier to do Forge in a different IDE. Were you hoping to get an answer as to how to set it or what to set it to?
  3. There is a method that specifies the bounds of the box. By changing that (just like cake does?) you'll be able to make the block appear to take up less space.
  4. Which method did you use to set up your crops? Using the block state method, you register a single block like normal and just let the game handle the rest.
  5. Minecraft understands the stage_0 variations because of the default block state. Your block state json file tells which model is used by each state. To enable the usage of this you need to make sure you use something like PropertyInteger and override the create default block state and the methods pertaining to the meta data. If you look inside any of the crop java files you will see this being done for each one.
  6. When you say your structure generation, does this include the cave generation and stuff generated inside the chunk provider at world generation? I've been looking in to it a bit and have a little bit of an understanding how some of it works. From what I've been doing, I would assume to add your own structure generation that you would have to make your own Chunk Provider and add them in there, I spent a few days perusing the internet and the best I could find was IWorldGenerators which will not work for things like nether fortresses. The structure start for a Mineshaft, if I remember
  7. Does this have to do with the reobfuscation process by any chance? I haven't worked with JNI and definitely don't have much experience with Forge or FML, but when you build your (at least Forge?) project it does some renaming to put all the methods and classes back in to different names that are normally found inside the minecraft jar file. There's an MCPBot link floating around somewhere that has the mappings if you want to give it a shot.
  8. The model for grass_normal allows you to implement a block with a different texture on each side, but I am unsure of what particle and overlay do. { "parent": "block/grass", "textures": { "particle": "blocks/dirt", "bottom": "blocks/dirt", "top": "blocks/grass_top", "side": "blocks/grass_side", "overlay": "blocks/grass_side_overlay" } }
  9. I'm not 100% sure but I'll throw out ideas to hopefully prompt some solution. Inside your OreGeneration pastie you have: if (biome instanceof BiomeGenOcean || biome instanceof BiomeGenRiver || biome instanceof BiomeGenBeach) I'm curious if you'd be better of comparing the biome there to be perfectly equal to a biome rather than an instance of it. I say this because I believe that world generation uses a single instance of each BiomeGenBase to generate the entire world. public static final BiomeGenBase ocean = (new BiomeGenOcean(0)).setColor(112).setBiomeName("Ocean").setHe
  10. In theory the static field can be anywhere. Most often it serves organizational purposes to put them all in the same location. What you need to do is put that static field back in, it shouldn't matter where you put it, and just instantiate the variable. Inside your preInit, init, or postInit you need to make sure you set it to be an instance of itself. For example: ClassReference.staticVariable = new MinoriumOre() For example, I usually put all my static references in the root class for the mod, as it makes more sense for me to go Labyrinth.minoriumOre rather than MinoriumOre.min
  11. Found it. The exception is saying that you are attempting to do SOMETHING (this one was very vague...) on a null variable. public static final Block minoriumOre = null; To fix it you just need to make sure that this variable is initialized. For example: minoriumOre = new MinoriumOre(); Is this happening somewhere or is this variable remaining null?
  12. Solved it... The IWorldGenerators are all called during world generation with a Random that is initialized to the world seed. Therefore both blocks grabbing the same nextInt(15) repeatedly generates identical numbers. To fix this I just create a new random using random.nextInt() * some arbitrary constant number.
  13. Completely unrelated and just to get you in the boat with the rest of the Java world: class file names start with a capital letter. worldGen should become WorldGen and minoriumOre should become MinoriumOre. Can you show us the line where minoriumOre.minoriumOre is?
  14. I have two generators that run using identical code (aside from the set block state). The generator that runs first is working fine, however, the generator that runs second will not spawn the block ever, every block it tries to spawn in has already been populated by the previous generator. If I switch the order that these generators run in, the same thing happens but I will get the other block. Should I be using a different method to generate these randomly in chunks? @Override public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGen
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.