Removed roots (They didn't generate in 1.16.3 anyway), fixed potted sprout texture

This commit is contained in:
Forstride 2020-10-03 23:11:08 -04:00
parent a7883a194b
commit f064126e70
16 changed files with 0 additions and 79 deletions

View file

@ -289,7 +289,6 @@ public class BOPBlocks
public static Block reed;
public static Block watergrass;
public static Block mangrove_root;
public static Block root;
public static Block dead_branch;
public static Block bramble;

View file

@ -24,7 +24,6 @@ import net.minecraftforge.common.PlantType;
public class PlantBlockBOP extends BushBlock implements IPlantable
{
protected static final VoxelShape NORMAL = Block.box(2.0D, 0.0D, 2.0D, 14.0D, 13.0D, 14.0D);
protected static final VoxelShape ROOT = Block.box(2.0D, 3.0D, 2.0D, 14.0D, 16.0D, 14.0D);
public PlantBlockBOP(Block.Properties properties)
{
@ -36,11 +35,6 @@ public class PlantBlockBOP extends BushBlock implements IPlantable
{
Block block = state.getBlock();
if (block == BOPBlocks.root)
{
return ROOT;
}
return NORMAL;
}
@ -53,13 +47,6 @@ public class PlantBlockBOP extends BushBlock implements IPlantable
@Override
public boolean canSurvive(BlockState state, IWorldReader worldIn, BlockPos pos)
{
Block ceiling = worldIn.getBlockState(pos.above()).getBlock();
if (this == BOPBlocks.root)
{
return ceiling == Blocks.DIRT || ceiling == Blocks.GRASS_BLOCK || ceiling == Blocks.PODZOL || ceiling == Blocks.GRASS_PATH || ceiling == Blocks.MYCELIUM || ceiling == Blocks.FARMLAND || ceiling == Blocks.COARSE_DIRT || ceiling == Blocks.NETHERRACK;
}
return super.canSurvive(state, worldIn, pos);
}

View file

@ -301,7 +301,6 @@ public class ModBlocks
watergrass = registerBlock(new DoubleWaterPlantBlock(AbstractBlock.Properties.of(Material.PLANT).noCollission().instabreak().sound(SoundType.GRASS)), "watergrass");
mangrove_root = registerBlock(new DoubleWaterPlantBlock(AbstractBlock.Properties.of(Material.PLANT, MaterialColor.TERRACOTTA_WHITE).noCollission().strength(1.0F, 1.5F).sound(SoundType.WOOD)), "mangrove_root");
root = registerBlock(new PlantBlockBOP(AbstractBlock.Properties.of(Material.REPLACEABLE_PLANT, MaterialColor.DIRT).noCollission().instabreak().sound(SoundType.GRASS)), "root");
dead_branch = registerBlock(new DeadBranchBlock(AbstractBlock.Properties.of(Material.WOOD, MaterialColor.COLOR_GRAY).noCollission().instabreak().sound(SoundType.WOOD)), "dead_branch");
bramble = registerBlock(new BrambleBlock(AbstractBlock.Properties.of(Material.PLANT, MaterialColor.NETHER).strength(0.4F).harvestLevel(0).harvestTool(ToolType.AXE).sound(SoundType.WOOD)), "bramble");
toadstool = registerBlock(new MushroomBlockBOP(AbstractBlock.Properties.of(Material.PLANT, MaterialColor.COLOR_ORANGE).noCollission().instabreak().sound(SoundType.GRASS)), "toadstool");
@ -407,7 +406,6 @@ public class ModBlocks
RenderTypeLookup.setRenderLayer(reed, cutoutRenderType);
RenderTypeLookup.setRenderLayer(watergrass, cutoutRenderType);
RenderTypeLookup.setRenderLayer(mangrove_root, cutoutRenderType);
RenderTypeLookup.setRenderLayer(root, cutoutRenderType);
RenderTypeLookup.setRenderLayer(dead_branch, cutoutRenderType);
RenderTypeLookup.setRenderLayer(bramble, cutoutRenderType);
RenderTypeLookup.setRenderLayer(toadstool, cutoutRenderType);

View file

@ -12,9 +12,6 @@ public class ModVanillaCompat
{
public static void setup()
{
//Roots
//addBiomeDictionaryFeature(Feature.RANDOM_PATCH.configured(BiomeFeatureHelper.createClusterConfiguration(BOPBlocks.root.defaultBlockState())).decorated(Features.Placements.ADD_32).decorated(Features.Placements.HEIGHTMAP_SQUARE.count(20))), GenerationStage.Decoration.VEGETAL_DECORATION, Lists.newArrayList(BiomeDictionary.Type.OVERWORLD));
//Flammability
registerFlammable(BOPBlocks.origin_leaves, 30, 60);
registerFlammable(BOPBlocks.flowering_oak_leaves, 30, 60);
@ -236,7 +233,6 @@ public class ModVanillaCompat
registerCompostable(0.5F, BOPBlocks.watergrass);
registerCompostable(0.5F, BOPBlocks.mangrove_root);
registerCompostable(0.3F, BOPBlocks.root);
registerCompostable(0.3F, BOPBlocks.dead_branch);
registerCompostable(0.3F, BOPBlocks.bramble);
@ -268,23 +264,4 @@ public class ModVanillaCompat
FireBlock fireblock = (FireBlock)Blocks.FIRE;
fireblock.setFlammable(blockIn, encouragement, flammability);
}
/*
public static void addBiomeDictionaryFeature(ConfiguredFeature<?, ?> featureIn, GenerationStage.Decoration decorationStage, List<BiomeDictionary.Type> includedBiomeTypes)
{
if (!includedBiomeTypes.isEmpty())
{
for (BiomeDictionary.Type type : includedBiomeTypes)
{
for (Biome biome : BiomeDictionary.getBiomes(type))
{
if (biome != BOPBiomes.origin_hills.get())
{
biome.addFeature(decorationStage, featureIn);
}
}
}
}
}
*/
}

View file

@ -1,5 +0,0 @@
{
"variants": {
"": { "model": "biomesoplenty:block/root" }
}
}

View file

@ -311,7 +311,6 @@
"block.biomesoplenty.redwood_wall_sign": "Redwood Wall Sign",
"block.biomesoplenty.redwood_wood": "Redwood Wood",
"block.biomesoplenty.reed": "Reed",
"block.biomesoplenty.root": "Root",
"block.biomesoplenty.rose": "Rose",
"block.biomesoplenty.smooth_black_sandstone": "Smooth Black Sandstone",
"block.biomesoplenty.smooth_black_sandstone_slab": "Smooth Black Sandstone Slab",

View file

@ -1,6 +0,0 @@
{
"parent": "block/cross",
"textures": {
"cross": "biomesoplenty:block/root"
}
}

View file

@ -1,6 +0,0 @@
{
"parent": "item/generated",
"textures": {
"layer0": "biomesoplenty:item/root"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 355 B

After

Width:  |  Height:  |  Size: 256 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 283 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 379 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

View file

@ -1,22 +0,0 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "biomesoplenty:root"
}
],
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"item": "minecraft:shears"
}
}
]
}
]
}