Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @SubscribeEvent
- static void onWorldLoad(WorldEvent.Load e) {
- Random rand = new Random();
- WorldDataTable table = WorldDataTable.get(e.getWorld(), true);
- if(!table.didgen) {
- table.list.add(
- new OreData(
- rand.nextInt(256),
- rand.nextInt(256),
- rand.nextInt(256),
- (((float) rand.nextInt(5000)) / 1000f),
- rand.nextInt(20),
- rand.nextInt(50),
- rand.nextInt(5),
- rand.nextInt(20),
- rand.nextInt(100000)));
- table.didgen = true;
- table.markDirty();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement