This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.init.Blocks; import net.minecraft.world.World; public class BlockSharpStone extends Block { public BlockSharpStone(Material material) { super(material); this.setBlockName("BlockSharpStone"); this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.1F, 1.0F); this.setBlockTextureName("Name:BlockSharpStone"); this.setStepSound(soundTypeStone); this.setHardness(1); } public boolean isOpaqueCube() { return false; } public boolean renderAsNormalBlock() { return false; } @Override public boolean canPlaceBlockAt(World p_149742_1_, int p_149742_2_, int p_149742_3_, int p_149742_4_) { return super.canPlaceBlockAt(p_149742_1_, p_149742_2_, p_149742_3_, p_149742_4_) && this.canBlockStay(p_149742_1_, p_149742_2_, p_149742_3_, p_149742_4_); } protected boolean canPlaceBlockOn(Block BlockName) { return BlockName == Blocks.grass || BlockName == Blocks.dirt || BlockName == Blocks.sand; } } Please Help me!
What exactly is the issue?
Creator of Blood Arsenal and Sleep! Contributor to Blood Magic!
i can the block everywhere sit down :I
What exactly is the issue?
Creator of Blood Arsenal and Sleep! Contributor to Blood Magic!
i can the block everywhere sit down :I