Advertisement
80LK

Untitled

Jan 24th, 2021
1,049
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function generateStructureInBiomes(ids, params, random) {
  2.     const biome_id = World.getBiome(params.x, params.z);
  3.     if(ids.indexOf(biome_id) == -1) return;
  4.  
  5.     const chance = random.nextFloat();
  6.     if (chance < params.chance.normal || chance < params.chance.biomed) {
  7.         if (World.getBlockID(params.x, params.y, params.z) == params.check
  8.             && World.getBlockID(params.x, params.y + 1, params.z) == 0)
  9.             params.str.build(params.x, params.y + 1, params.z, Structure.ROTATE_Y, random, params.region);
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement