Wall mosses
This commit is contained in:
parent
8279dcd8ef
commit
a0ecdff67f
17 changed files with 322 additions and 5 deletions
|
@ -1,8 +1,15 @@
|
|||
package ru.betterend.blocks.basis;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
|
||||
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
|
||||
import net.fabricmc.fabric.api.tool.attribute.v1.FabricToolTags;
|
||||
import net.minecraft.block.BlockState;
|
||||
import net.minecraft.block.Material;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.loot.context.LootContext;
|
||||
import net.minecraft.sound.BlockSoundGroup;
|
||||
|
||||
public class BlockWallMushroom extends BlockWallPlant {
|
||||
|
@ -19,4 +26,9 @@ public class BlockWallMushroom extends BlockWallPlant {
|
|||
.blockVision((state, world, pos) -> { return false; })
|
||||
.noCollision());
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ItemStack> getDroppedStacks(BlockState state, LootContext.Builder builder) {
|
||||
return Lists.newArrayList(new ItemStack(this));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -113,11 +113,6 @@ public class BlockWallPlant extends BlockPlant {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ItemStack> getDroppedStacks(BlockState state, LootContext.Builder builder) {
|
||||
return Lists.newArrayList(new ItemStack(this));
|
||||
}
|
||||
|
||||
@Override
|
||||
public BlockState rotate(BlockState state, BlockRotation rotation) {
|
||||
return BlocksHelper.rotateHorizontal(state, rotation, FACING);
|
||||
|
|
|
@ -52,6 +52,7 @@ import ru.betterend.blocks.basis.BlockOre;
|
|||
import ru.betterend.blocks.basis.BlockSimpleLeaves;
|
||||
import ru.betterend.blocks.basis.BlockVine;
|
||||
import ru.betterend.blocks.basis.BlockWallMushroom;
|
||||
import ru.betterend.blocks.basis.BlockWallPlant;
|
||||
import ru.betterend.blocks.complex.StoneMaterial;
|
||||
import ru.betterend.blocks.complex.WoodenMaterial;
|
||||
import ru.betterend.tab.CreativeTab;
|
||||
|
@ -135,6 +136,8 @@ public class EndBlocks {
|
|||
|
||||
// Wall Plants //
|
||||
public static final Block PURPLE_POLYPORE = registerBlock("purple_polypore", new BlockWallMushroom(13));
|
||||
public static final Block TAIL_MOSS = registerBlock("tail_moss", new BlockWallPlant());
|
||||
public static final Block CYAN_MOSS = registerBlock("cyan_moss", new BlockWallPlant(13));
|
||||
|
||||
// Crops //
|
||||
public static final Block SHADOW_BERRY = registerBlock("shadow_berry", new BlockShadowBerry());
|
||||
|
|
|
@ -59,6 +59,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 PURPLE_POLYPORE_DENSE = new EndFeature("purple_polypore_dense", new WallPlantOnLogFeature(EndBlocks.PURPLE_POLYPORE, 5), 15);
|
||||
//public static final EndFeature TAIL_MOSS = new EndFeature("tail_moss", new WallPlantOnLogFeature(EndBlocks.PURPLE_POLYPORE, 3), 5);
|
||||
|
||||
// Water //
|
||||
public static final EndFeature BUBBLE_CORAL = new EndFeature("bubble_coral", new UnderwaterPlantFeature(EndBlocks.BUBBLE_CORAL, 10), 10);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue