mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-01 19:46:42 +01:00
Some fine tuning for hive blocks
This commit is contained in:
parent
9fdaf9035d
commit
62be8af297
1 changed files with 4 additions and 4 deletions
|
@ -50,9 +50,9 @@ public class BlockHiveWall extends BlockFalling {
|
||||||
setCreativeTab(CreativeTabs.BUILDING_BLOCKS);
|
setCreativeTab(CreativeTabs.BUILDING_BLOCKS);
|
||||||
setDefaultState(blockState.getBaseState().withProperty(STATE, State.GROWING).withProperty(AXIS, Axis.Y));
|
setDefaultState(blockState.getBaseState().withProperty(STATE, State.GROWING).withProperty(AXIS, Axis.Y));
|
||||||
setHardness(2);
|
setHardness(2);
|
||||||
setSoundType(SoundType.SLIME);
|
setSoundType(SoundType.SAND);
|
||||||
setHarvestLevel("pickaxe", 1);
|
setHarvestLevel("pickaxe", 1);
|
||||||
setResistance(2);
|
setResistance(10);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -102,6 +102,7 @@ public class BlockHiveWall extends BlockFalling {
|
||||||
die(world, pos, rand);
|
die(world, pos, rand);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
if (!testForAxis(world, pos, axis)) {
|
if (!testForAxis(world, pos, axis)) {
|
||||||
world.setBlockState(pos, state.withProperty(STATE, State.GROWING));
|
world.setBlockState(pos, state.withProperty(STATE, State.GROWING));
|
||||||
} else if (matchedNeighbours >= 27) {
|
} else if (matchedNeighbours >= 27) {
|
||||||
|
@ -156,7 +157,6 @@ public class BlockHiveWall extends BlockFalling {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onEntityWalk(World world, BlockPos pos, Entity entity) {
|
public void onEntityWalk(World world, BlockPos pos, Entity entity) {
|
||||||
this.setResistance(10);
|
|
||||||
if (entity instanceof EntityPlayer) {
|
if (entity instanceof EntityPlayer) {
|
||||||
IPlayer player = PlayerSpeciesList.instance().getPlayer((EntityPlayer)entity);
|
IPlayer player = PlayerSpeciesList.instance().getPlayer((EntityPlayer)entity);
|
||||||
|
|
||||||
|
@ -177,7 +177,7 @@ public class BlockHiveWall extends BlockFalling {
|
||||||
@Override
|
@Override
|
||||||
public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ) {
|
public boolean onBlockActivated(World world, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ) {
|
||||||
|
|
||||||
if (playerIn.getHeldItem(hand).isEmpty()) {
|
if (hand == EnumHand.MAIN_HAND && playerIn.getHeldItem(hand).isEmpty()) {
|
||||||
IPlayer player = PlayerSpeciesList.instance().getPlayer(playerIn);
|
IPlayer player = PlayerSpeciesList.instance().getPlayer(playerIn);
|
||||||
|
|
||||||
if (player.getPlayerSpecies() == Race.CHANGELING) {
|
if (player.getPlayerSpecies() == Race.CHANGELING) {
|
||||||
|
|
Loading…
Reference in a new issue