B.A.S.E

B.A.S.E

46M Downloads

Utilize dropBlockAsItem in SubBlockOreSample to better support mods

justinrusso opened this issue ยท 0 comments

commented

public void onNeighborChange(World world, BlockPos pos, Block block, BlockPos fromPos) {
if (!world.getBlockState(pos.down()).isSideSolid(world, pos, EnumFacing.UP)) {
spawnItemStackEntity(world, this.getItemStack().copy(), pos);
world.setBlockToAir(pos);
}
}

Reference:
Darkhax-Minecraft/Ore-Stages#8
DarkPacks/SevTech-Ages#795