Advertisement
Guest User

Untitled

a guest
Oct 10th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. @SubscribeEvent
  2. static void onWorldLoad(WorldEvent.Load e) {
  3. Random rand = new Random();
  4. WorldDataTable table = WorldDataTable.get(e.getWorld(), true);
  5. if(!table.didgen) {
  6. table.list.add(
  7. new OreData(
  8. rand.nextInt(256),
  9. rand.nextInt(256),
  10. rand.nextInt(256),
  11. (((float) rand.nextInt(5000)) / 1000f),
  12. rand.nextInt(20),
  13. rand.nextInt(50),
  14. rand.nextInt(5),
  15. rand.nextInt(20),
  16. rand.nextInt(100000)));
  17. table.didgen = true;
  18. table.markDirty();
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement