提供: Minecraft Modding Wiki
この編集を取り消せます。
下記の差分を確認して、本当に取り消していいか検証してください。よろしければ変更を保存して取り消しを完了してください。
最新版 | 編集中の文章 | ||
1行目: | 1行目: | ||
{{前提MOD|reqmod="Minecraft Forge Universal 10.13.0.1207"}} | {{前提MOD|reqmod="Minecraft Forge Universal 10.13.0.1207"}} | ||
− | {{ チュートリアル難易度 | difficulty= | + | {{ チュートリアル難易度 | difficulty=0 }} |
− | |||
オーバーワールドに独自のバイオームを追加するサンプルです。 | オーバーワールドに独自のバイオームを追加するサンプルです。 | ||
33行目: | 32行目: | ||
public static int biome4ID = 43; | public static int biome4ID = 43; | ||
− | + | // 独自のバイオーム。地表ブロックと地中ブロックがバニラとは異なる | |
− | + | public static final BiomeGenBase biome1 = (new BiomeGenSample1(biome1ID)).setColor(0xff0000).setBiomeName("Sample1"); | |
+ | public static final BiomeGenBase biome2 = (new BiomeGenSample2(biome2ID)).setColor(0x00ff00).setBiomeName("Sample2"); | ||
+ | public static final BiomeGenBase biome3 = (new BiomeGenSample3(biome3ID)).setColor(0x00ff00).setBiomeName("Sample3"); | ||
+ | public static final BiomeGenBase biome4 = (new BiomeGenSample4(biome4ID)).setColor(0xffff00).setBiomeName("Sample4"); | ||
@EventHandler | @EventHandler | ||
44行目: | 46行目: | ||
// 各種バイオームリストにバイオームを追加 | // 各種バイオームリストにバイオームを追加 | ||
// 2つ目の引数はバイオーム発生頻度の重み付け。大きいほど頻繁 | // 2つ目の引数はバイオーム発生頻度の重み付け。大きいほど頻繁 | ||
− | + | BiomeManager.desertBiomes.add(new BiomeManager.BiomeEntry(biome1, 10)); | |
− | + | BiomeManager.icyBiomes.add(new BiomeManager.BiomeEntry(biome2, 10)); | |
− | + | BiomeManager.warmBiomes.add(new BiomeManager.BiomeEntry(biome3, 10)); | |
− | + | BiomeManager.coolBiomes.add(new BiomeManager.BiomeEntry(biome4, 10)); | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
89行目: | 72行目: | ||
public BiomeGenSample1(int p_i1986_1_) { | public BiomeGenSample1(int p_i1986_1_) { | ||
super(p_i1986_1_); | super(p_i1986_1_); | ||
− | this.topBlock = Blocks.glass; | + | this.topBlock = Blocks.glass; |
this.fillerBlock = Blocks.crafting_table; | this.fillerBlock = Blocks.crafting_table; | ||
} | } |