Additional plants
This commit is contained in:
parent
37b24bfcaf
commit
c3ce436fe0
59 changed files with 1468 additions and 5 deletions
|
@ -4,6 +4,8 @@ import net.minecraft.block.Block;
|
|||
import net.minecraft.block.Blocks;
|
||||
import net.minecraft.block.MaterialColor;
|
||||
import net.minecraft.item.BlockItem;
|
||||
import net.minecraft.item.Item.Settings;
|
||||
import net.minecraft.item.LilyPadItem;
|
||||
import net.minecraft.util.Identifier;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
import ru.betterend.BetterEnd;
|
||||
|
@ -18,6 +20,7 @@ import ru.betterend.blocks.AuroraCrystalBlock;
|
|||
import ru.betterend.blocks.BlueVineBlock;
|
||||
import ru.betterend.blocks.BlueVineLanternBlock;
|
||||
import ru.betterend.blocks.BlueVineSeedBlock;
|
||||
import ru.betterend.blocks.BoluxMushroomBlock;
|
||||
import ru.betterend.blocks.BrimstoneBlock;
|
||||
import ru.betterend.blocks.BubbleCoralBlock;
|
||||
import ru.betterend.blocks.BulbVineBlock;
|
||||
|
@ -47,6 +50,7 @@ import ru.betterend.blocks.EndstoneDustBlock;
|
|||
import ru.betterend.blocks.EternalPedestal;
|
||||
import ru.betterend.blocks.EternalRunedFlavolite;
|
||||
import ru.betterend.blocks.FilaluxLanternBlock;
|
||||
import ru.betterend.blocks.FlamaeaBlock;
|
||||
import ru.betterend.blocks.GlowingHymenophoreBlock;
|
||||
import ru.betterend.blocks.GlowingMossBlock;
|
||||
import ru.betterend.blocks.GlowingPillarLuminophorBlock;
|
||||
|
@ -105,7 +109,6 @@ import ru.betterend.blocks.basis.EndFurnaceBlock;
|
|||
import ru.betterend.blocks.basis.EndLeavesBlock;
|
||||
import ru.betterend.blocks.basis.EndOreBlock;
|
||||
import ru.betterend.blocks.basis.EndPillarBlock;
|
||||
import ru.betterend.blocks.basis.EndSignBlock;
|
||||
import ru.betterend.blocks.basis.EndSlabBlock;
|
||||
import ru.betterend.blocks.basis.EndStairsBlock;
|
||||
import ru.betterend.blocks.basis.EndUnderwaterWallPlantBlock;
|
||||
|
@ -122,6 +125,7 @@ import ru.betterend.blocks.complex.MetalMaterial;
|
|||
import ru.betterend.blocks.complex.StoneMaterial;
|
||||
import ru.betterend.blocks.complex.WoodenMaterial;
|
||||
import ru.betterend.config.Configs;
|
||||
import ru.betterend.interfaces.ISpetialItem;
|
||||
import ru.betterend.item.material.EndArmorMaterial;
|
||||
import ru.betterend.item.material.EndToolMaterial;
|
||||
|
||||
|
@ -277,6 +281,7 @@ public class EndBlocks {
|
|||
public static final Block GLOWING_PILLAR_LEAVES = registerBlock("glowing_pillar_leaves", new FurBlock(GLOWING_PILLAR_SEED, 15, 3));
|
||||
|
||||
public static final Block SMALL_JELLYSHROOM = registerBlock("small_jellyshroom", new SmallJellyshroomBlock());
|
||||
public static final Block BOLUX_MUSHROOM = registerBlock("bolux_mushroom", new BoluxMushroomBlock());
|
||||
|
||||
public static final Block LUMECORN_SEED = registerBlock("lumecorn_seed", new LumecornSeedBlock());
|
||||
public static final Block LUMECORN = registerBlockNI("lumecorn", new LumecornBlock());
|
||||
|
@ -316,6 +321,10 @@ public class EndBlocks {
|
|||
public static final Block HYDRALUX_PETAL_BLOCK = registerBlock("hydralux_petal_block", new HydraluxPetalBlock());
|
||||
public static final ColoredMaterial HYDRALUX_PETAL_BLOCK_COLORED = new ColoredMaterial(HydraluxPetalColoredBlock::new, HYDRALUX_PETAL_BLOCK, true);
|
||||
|
||||
public static final Block POND_ANEMONE = registerBlock("pond_anemone", new BubbleCoralBlock());
|
||||
|
||||
public static final Block FLAMAEA = registerBlock("flamaea", new FlamaeaBlock());
|
||||
|
||||
public static final Block CAVE_BUSH = registerBlock("cave_bush", new SimpleLeavesBlock(MaterialColor.MAGENTA));
|
||||
|
||||
public static final Block MURKWEED = registerBlock("murkweed", new MurkweedBlock());
|
||||
|
@ -323,12 +332,14 @@ public class EndBlocks {
|
|||
|
||||
// Wall Plants //
|
||||
public static final Block PURPLE_POLYPORE = registerBlock("purple_polypore", new WallMushroomBlock(13));
|
||||
public static final Block AURANT_POLYPORE = registerBlock("aurant_polypore", new WallMushroomBlock(13));
|
||||
public static final Block TAIL_MOSS = registerBlock("tail_moss", new EndWallPlantBlock());
|
||||
public static final Block CYAN_MOSS = registerBlock("cyan_moss", new EndWallPlantBlock());
|
||||
public static final Block TWISTED_MOSS = registerBlock("twisted_moss", new EndWallPlantBlock());
|
||||
public static final Block TUBE_WORM = registerBlock("tube_worm", new EndUnderwaterWallPlantBlock());
|
||||
public static final Block BULB_MOSS = registerBlock("bulb_moss", new EndWallPlantBlock(12));
|
||||
public static final Block JUNGLE_FERN = registerBlock("jungle_fern", new EndWallPlantBlock());
|
||||
public static final Block RUSCUS = registerBlock("ruscus", new EndWallPlantBlock());
|
||||
|
||||
// Vines //
|
||||
public static final Block DENSE_VINE = registerBlock("dense_vine", new VineBlock(15, true));
|
||||
|
@ -394,8 +405,20 @@ public class EndBlocks {
|
|||
return block;
|
||||
}
|
||||
Registry.register(Registry.BLOCK, id, block);
|
||||
int maxCount = block instanceof EndSignBlock ? 16 : 64;
|
||||
EndItems.registerBlockItem(id, new BlockItem(block, EndItems.makeBlockItemSettings().maxCount(maxCount)));
|
||||
int maxCount = 64;
|
||||
boolean placeOnWater = false;
|
||||
if (block instanceof ISpetialItem) {
|
||||
ISpetialItem item = (ISpetialItem) block;
|
||||
maxCount = item.getStackSize();
|
||||
placeOnWater = item.canPlaceOnWater();
|
||||
}
|
||||
Settings item = EndItems.makeBlockItemSettings().maxCount(maxCount);
|
||||
if (placeOnWater) {
|
||||
EndItems.registerBlockItem(id, new LilyPadItem(block, item));
|
||||
}
|
||||
else {
|
||||
EndItems.registerBlockItem(id, new BlockItem(block, item));
|
||||
}
|
||||
return block;
|
||||
}
|
||||
|
||||
|
|
|
@ -123,6 +123,7 @@ public class EndFeatures {
|
|||
public static final EndFeature SMALL_AMARANITA = new EndFeature("small_amaranita", new SinglePlantFeature(EndBlocks.SMALL_AMARANITA_MUSHROOM, 5, 5), 4);
|
||||
public static final EndFeature GLOBULAGUS = new EndFeature("globulagus", new SinglePlantFeature(EndBlocks.GLOBULAGUS, 5, 3), 6);
|
||||
public static final EndFeature CLAWFERN = new EndFeature("clawfern", new SinglePlantFeature(EndBlocks.CLAWFERN, 5, 4), 5);
|
||||
public static final EndFeature BOLUX_MUSHROOM = new EndFeature("bolux_mushroom", new SinglePlantFeature(EndBlocks.BOLUX_MUSHROOM, 5, 5), 2);
|
||||
|
||||
// Vines //
|
||||
public static final EndFeature DENSE_VINE = new EndFeature("dense_vine", new VineFeature(EndBlocks.DENSE_VINE, 24), 3);
|
||||
|
@ -135,6 +136,7 @@ public class EndFeatures {
|
|||
|
||||
// Wall Plants //
|
||||
public static final EndFeature PURPLE_POLYPORE = new EndFeature("purple_polypore", new WallPlantOnLogFeature(EndBlocks.PURPLE_POLYPORE, 3), 5);
|
||||
public static final EndFeature AURANT_POLYPORE = new EndFeature("aurant_polypore", new WallPlantOnLogFeature(EndBlocks.AURANT_POLYPORE, 3), 5);
|
||||
public static final EndFeature TAIL_MOSS = new EndFeature("tail_moss", new WallPlantFeature(EndBlocks.TAIL_MOSS, 3), 15);
|
||||
public static final EndFeature CYAN_MOSS = new EndFeature("cyan_moss", new WallPlantFeature(EndBlocks.CYAN_MOSS, 3), 15);
|
||||
public static final EndFeature TAIL_MOSS_WOOD = new EndFeature("tail_moss_wood", new WallPlantOnLogFeature(EndBlocks.TAIL_MOSS, 4), 25);
|
||||
|
@ -158,6 +160,7 @@ public class EndFeatures {
|
|||
public static final EndFeature END_LOTUS = new EndFeature("end_lotus", new EndLotusFeature(7), 5);
|
||||
public static final EndFeature END_LOTUS_LEAF = new EndFeature("end_lotus_leaf", new EndLotusLeafFeature(20), 25);
|
||||
public static final EndFeature HYDRALUX = new EndFeature("hydralux", new HydraluxFeature(5), 5);
|
||||
public static final EndFeature POND_ANEMONE = new EndFeature("pond_anemone", new UnderwaterPlantFeature(EndBlocks.POND_ANEMONE, 6), 10);
|
||||
|
||||
public static final EndFeature CHARNIA_RED = new EndFeature("charnia_red", new CharniaFeature(EndBlocks.CHARNIA_RED), 10);
|
||||
public static final EndFeature CHARNIA_PURPLE = new EndFeature("charnia_purple", new CharniaFeature(EndBlocks.CHARNIA_PURPLE), 10);
|
||||
|
@ -168,6 +171,7 @@ public class EndFeatures {
|
|||
public static final EndFeature MENGER_SPONGE = new EndFeature("menger_sponge", new MengerSpongeFeature(5), 1);
|
||||
public static final EndFeature CHARNIA_RED_RARE = new EndFeature("charnia_red_rare", new CharniaFeature(EndBlocks.CHARNIA_RED), 2);
|
||||
public static final EndFeature OVERWORLD_ISLAND = EndFeature.makeFetureConfigured("overworld_island", new OverworldIslandFeature());
|
||||
public static final EndFeature FLAMAEA = new EndFeature("flamaea", new SinglePlantFeature(EndBlocks.FLAMAEA, 12, false, 5), 20);
|
||||
|
||||
// Terrain //
|
||||
public static final EndFeature END_LAKE = EndFeature.makeLakeFeature("end_lake", new EndLakeFeature(), 4);
|
||||
|
|
|
@ -120,6 +120,7 @@ public class EndItems {
|
|||
public final static Item AMBER_ROOT_RAW = registerFood("amber_root_raw", 2, 0.8F);
|
||||
public final static Item CHORUS_MUSHROOM_RAW = registerFood("chorus_mushroom_raw", 3, 0.5F);
|
||||
public final static Item CHORUS_MUSHROOM_COOKED = registerFood("chorus_mushroom_cooked", FoodComponents.MUSHROOM_STEW);
|
||||
public final static Item BOLUX_MUSHROOM_COOKED = registerFood("bolux_mushroom_cooked", FoodComponents.MUSHROOM_STEW);
|
||||
|
||||
// Drinks //
|
||||
public final static Item UMBRELLA_CLUSTER_JUICE = registerDrink("umbrella_cluster_juice", 5, 0.7F);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue