kandi background
Explore Kits

CustomOreGen | Custom Ore Generation mod for Minecraft | Video Game library

 by   lawremi Java Version: 1.2.26 License: Artistic-2.0

 by   lawremi Java Version: 1.2.26 License: Artistic-2.0

Download this library from

kandi X-RAY | CustomOreGen Summary

CustomOreGen is a Java library typically used in Gaming, Video Game, Minecraft applications. CustomOreGen has no bugs, it has no vulnerabilities, it has build file available, it has a Weak Copyleft License and it has low support. You can download it from GitHub.
A revival of the Custom Ore Generation mod for Minecraft, originally by the great JRoush, who sadly seems to have disappeared. This code is the result of decompilation and is released without explicit permission of JRoush, but his copyright notice seemed to be compatible with the Artistic 2.0 license. Thus, that license has been applied to this code. Anyone who distributes this code needs to give clear credit to JRoush. Most features are documented on the (still current) [wiki](http://custom-ore-generation.wikia.com/wiki/).
Support
Support
Quality
Quality
Security
Security
License
License
Reuse
Reuse

kandi-support Support

  • CustomOreGen has a low active ecosystem.
  • It has 41 star(s) with 26 fork(s). There are 9 watchers for this library.
  • It had no major release in the last 12 months.
  • There are 23 open issues and 118 have been closed. On average issues are closed in 104 days. There are 1 open pull requests and 0 closed requests.
  • It has a neutral sentiment in the developer community.
  • The latest version of CustomOreGen is 1.2.26
CustomOreGen Support
Best in #Video Game
Average in #Video Game
CustomOreGen Support
Best in #Video Game
Average in #Video Game

quality kandi Quality

  • CustomOreGen has 0 bugs and 0 code smells.
CustomOreGen Quality
Best in #Video Game
Average in #Video Game
CustomOreGen Quality
Best in #Video Game
Average in #Video Game

securitySecurity

  • CustomOreGen has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
  • CustomOreGen code analysis shows 0 unresolved vulnerabilities.
  • There are 0 security hotspots that need review.
CustomOreGen Security
Best in #Video Game
Average in #Video Game
CustomOreGen Security
Best in #Video Game
Average in #Video Game

license License

  • CustomOreGen is licensed under the Artistic-2.0 License. This license is Weak Copyleft.
  • Weak Copyleft licenses have some restrictions, but you can use them in commercial projects.
CustomOreGen License
Best in #Video Game
Average in #Video Game
CustomOreGen License
Best in #Video Game
Average in #Video Game

buildReuse

  • CustomOreGen releases are available to install and integrate.
  • Build file is available. You can build the component from source.
  • CustomOreGen saves you 69545 person hours of effort in developing the same functionality from scratch.
  • It has 78078 lines of code, 1157 functions and 181 files.
  • It has medium code complexity. Code complexity directly impacts maintainability of the code.
CustomOreGen Reuse
Best in #Video Game
Average in #Video Game
CustomOreGen Reuse
Best in #Video Game
Average in #Video Game
Top functions reviewed by kandi - BETA

kandi has reviewed CustomOreGen and discovered the below as its top functions. This is intended to give you an instant insight into CustomOreGen implemented functionality, and help decide if they suit your requirements.

  • Evaluates a token .
    • Format a node .
      • Compute the noise .
        • Validates distribution settings .
          • Load convert .
            • Process vertex vertices .
              • Replace the contents of this node by their contents .
                • Called when a world frame is rendered .
                  • Initialize the components .
                    • Create the position map constant map .

                      Get all kandi verified functions for this library.

                      Get all kandi verified functions for this library.

                      CustomOreGen Key Features

                      Custom Ore Generation mod for Minecraft, originally by JRoush

                      Community Discussions

                      Trending Discussions on CustomOreGen
                      • Splitting each line of an array into a String
                      Trending Discussions on CustomOreGen

                      QUESTION

                      Splitting each line of an array into a String

                      Asked 2017-Apr-20 at 13:20

                      I'm making an minecraft-forge mod and I'm having some problems with my config file. I used Configuration#getStringList which allows other people to add a String[] to the config file, so I'm using that to get an block from the array, for example if someone writes minecraft:gold_ore the Block#getBlockFromName works fine because in the array there's only that and nothing else, but if I place minecraft:gold_ore and minecraft:diamond_ore in the next line, it crashes because Block#getBlockFromName reads the String I sent him so he reads it like this minecraft:gold_oreminecraft:diamond_ore (which causes the crash because the block with than name doesn't exist) instead of it reading minecraft:gold_ore and than minecraft:diamond_ore. I basically want to split each line of that config to a separate String or somehow read each line separately. This is how the configuration file looks like:

                      # Configuration file
                      "ore generation" {
                          S:ore_to_gen <
                              minecraft:gold_ore
                              minecraft:diamond_ore
                           >
                      

                      so if I just enter minecraft:gold_ore and delete minecraft:diamond_ore the world loads normally and the generation works, this is the config class:

                          public class ConfigCustomOreGen {
                      
                              public static Configuration configCustomWorld;
                              private static File configCustomOreGenDir;
                      
                              public static String oreToReplace;
                      
                              public static final String WORLD = "Ore Generation";
                      
                      
                              public static void init(File oreGenDir) {
                                  oreGenDir = new File(oreGenDir, Constants.MODID + "/" + "world");
                                  oreGenDir.mkdir();
                                  ConfigCustomOreGen.configCustomOreGenDir = oreGenDir;
                                  ConfigCustomOreGen.configCustomWorld = new Configuration(new File(oreGenDir, "Custom-Ore-Generation.cfg"));
                      
                                  String[] oreReplace = configCustomWorld.getStringList("ore_to_gen", WORLD, EMPTY_STRING, "ore which should have custom ore gen\n");
                      
                                  StringBuilder strBuilder = new StringBuilder();
                                  for (int i = 0; i < oreReplace.length; i++) {
                                      strBuilder.append(oreReplace[i]);
                                  }
                                  oreToReplace = strBuilder.toString();
                                  Constants.LOGGER.info(oreToReplace + " " + strBuilder.toString());
                      
                                  if (configCustomWorld.hasChanged()) {
                                      configCustomWorld.save();
                                  }
                              }
                      
                              private final static String[] EMPTY_STRING = {};
                      }
                      

                      And for the generation I just use my custom WorldGenMinable which works because it worked with minecraft:gold_ore and any blocks I give it under the ore variable, the problem happens when the Block#getBlockFromName reads a block name which doesn't exist:

                      public class CustomOreGen implements IWorldGenerator {
                      
                          @Override
                          public void generate(Random random, int chunkX, int chunkZ, World world, IChunkGenerator chunkGenerator, IChunkProvider chunkProvider) {
                              Block ore = Block.getBlockFromName(ConfigCustomOreGen.oreToReplace);
                              generateOre(ore, world, random, chunkX, chunkZ, 20, 180, 8, 24, 8);
                          }
                      
                          private void generateOre(Block ore, World world, Random random, int chunkX, int chunkZ, int minY, int maxY, int minVeinSize, int maxVeinSize, int chancesToSpawn) {
                              int heightRange = maxY - minY;
                              BlockPos blockpos = new BlockPos((chunkX * 16) + random.nextInt(16), minY + random.nextInt(heightRange), (chunkZ * 16) + random.nextInt(16));
                      
                              if (world.provider.getDimension() == 0) {
                                  for (int i = 0; i < chancesToSpawn; i++) {
                                      WorldGenIngotterMinable generator = new WorldGenIngotterMinable(ore, minVeinSize, maxVeinSize, Blocks.AIR);
                                      generator.generate(world, random, blockpos);
                                  }
                              }
                          }
                      }
                      

                      ANSWER

                      Answered 2017-Apr-20 at 13:20

                      You could simply split the String on each newline-character. Just make sure you use the correct newline-character used in that file.

                      It might look something like this: String[] oresToReplace = oreToReplace.split(System.getProperty("line.separator"))

                      Source https://stackoverflow.com/questions/43519552

                      Community Discussions, Code Snippets contain sources that include Stack Exchange Network

                      Vulnerabilities

                      No vulnerabilities reported

                      Install CustomOreGen

                      You can download it from GitHub.
                      You can use CustomOreGen like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the CustomOreGen component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

                      Support

                      For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .

                      DOWNLOAD this Library from

                      Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
                      over 430 million Knowledge Items
                      Find more libraries
                      Reuse Solution Kits and Libraries Curated by Popular Use Cases
                      Explore Kits

                      Save this library and start creating your kit

                      Explore Related Topics

                      Share this Page

                      share link
                      Consider Popular Video Game Libraries
                      Try Top Libraries by lawremi
                      Compare Video Game Libraries with Highest Support
                      Compare Video Game Libraries with Highest Quality
                      Compare Video Game Libraries with Highest Security
                      Compare Video Game Libraries with Permissive License
                      Compare Video Game Libraries with Highest Reuse
                      Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
                      over 430 million Knowledge Items
                      Find more libraries
                      Reuse Solution Kits and Libraries Curated by Popular Use Cases
                      Explore Kits

                      Save this library and start creating your kit

                      • © 2022 Open Weaver Inc.