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