This commit is contained in:
paulevsGitch 2020-10-11 14:05:28 +03:00
parent 3f9e524b54
commit 287c1fce62
15 changed files with 120 additions and 26 deletions

View file

@ -2,6 +2,7 @@ package ru.betterend.blocks;
import java.util.Random;
import net.minecraft.block.BlockState;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Direction;
import net.minecraft.world.StructureWorldAccess;
@ -40,4 +41,9 @@ public class BlockBlueVineSeed extends BlockPlantWithAge {
BlocksHelper.setWithoutUpdate(world, pos.up(), BlockRegistry.BLUE_VINE_FUR.getDefaultState().with(BlockGlowingFur.FACING, Direction.UP));
}
}
@Override
protected boolean isTerrain(BlockState state) {
return state.getBlock() == BlockRegistry.END_MOSS || state.getBlock() == BlockRegistry.END_MYCELIUM;
}
}