SHARE
TWEET

Untitled

a guest Oct 10th, 2019 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top