Metadata World Gen
作者:rebot | 分类:模组
Minecraft 版本: b1.7.3
平台: modloader
标签: management utility worldgen
Metadata World Gen! Beta 1.7.3
This is more of an addition than a mod.
Though this mod adds a class I've named 'WorldGenMinableMetadata' which is basically the same as the 'WorldGenMinable' class expect it allows for block metadata to pass through and in turn generate in the world.
Two Versions
Spoiler I have added two different versions of both client and server in the downloads section. The versions that say "+ Example Mod" include a small Modloader, ModloaderMP Mod that adds in generation code for each metadata color of wool. This mod is by no means a requiremeant it was simply added for people who maybe don't understand or need a example I will include it down below and you can compile it yourself if you'd like. If you choose the version without the example mod you will not need modloader. This example mod does require Modloader Beta 1.7.3 and ModloaderMP Unofficial v2. This video will show you have to navigate MCArchive and how to download those APIs. [MCArchive: Best Place To Get Beta 1.7.3 Mods/APIs](https://youtu.be/6i3TTYsuDDs)WorldGenMinableMetadata class
Spoiler ```java package net.minecraft.src; import java.util.Random; public class WorldGenMinableMetadata extends WorldGenerator { private int minableBlockId; private int numberOfBlocks; private int blockMetadata; public WorldGenMinableMetadata(int i1, int i2, int i3) { this.minableBlockId = i1; this.blockMetadata = i2; this.numberOfBlocks = i3; } public boolean generate(World world1, Random random2, int i3, int i4, int i5) { float f6 = random2.nextFloat() * (float)Math.PI; double d7 = (double)((float)(i3 + 8) + MathHelper.sin(f6) * (float)this.numberOfBlocks / 8.0F); double d9 = (double)((float)(i3 + 8) - MathHelper.sin(f6) * (float)this.numberOfBlocks / 8.0F); double d11 = (double)((float)(i5 + 8) + MathHelper.cos(f6) * (float)this.numberOfBlocks / 8.0F); double d13 = (double)((float)(i5 + 8) - MathHelper.cos(f6) * (float)this.numberOfBlocks / 8.0F); double d15 = (double)(i4 + random2.nextInt(3) + 2); double d17 = (double)(i4 + random2.nextInt(3) + 2); for(int i19 = 0; i19mod_WorldGenMetadataExample class
Spoiler ```java package net.minecraft.src; import java.util.Random; public class mod_WorldGenMetadataExample extends BaseModMp { public mod_WorldGenMetadataExample() { } public void GenerateSurface(World world, Random random, int chunkX, int chunkZ) { int posX; int posY; int posZ; int i; for(i = 0; i请登录后举报
暂无评论,抢个沙发吧~