修复重铸台的碰撞箱问题
This commit is contained in:
parent
b908918286
commit
b6b0514cb4
3 changed files with 12 additions and 3 deletions
|
@ -77,9 +77,16 @@ public class ReforgingTableBlock extends Block {
|
|||
|
||||
@Override
|
||||
public VoxelShape getShape(BlockState state, BlockGetter world, BlockPos pos, CollisionContext context) {
|
||||
return Shapes.or(box(0, 0, 0, 16, 1, 16),
|
||||
box(1, 1, 1, 15, 3, 15),
|
||||
box(6.5, 4, 5, 9.5, 16.6, 11));
|
||||
Direction direction = state.getValue(FACING);
|
||||
if (direction == Direction.NORTH || direction == Direction.SOUTH) {
|
||||
return Shapes.or(box(0, 0, 0, 16, 1, 16),
|
||||
box(1, 1, 1, 15, 3, 15),
|
||||
box(5, 4, 6.5, 11, 16.6, 9.5));
|
||||
} else {
|
||||
return Shapes.or(box(0, 0, 0, 16, 1, 16),
|
||||
box(1, 1, 1, 15, 3, 15),
|
||||
box(6.5, 4, 5, 9.5, 16.6, 11));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -159,6 +159,7 @@
|
|||
"block.superbwarfare.deepslate_scheelite_ore": "Deepslate Scheelite 0re",
|
||||
"block.superbwarfare.deepslate_galena_ore": "Deepslate Galena 0re",
|
||||
"block.superbwarfare.dragon_teeth": "Dragon Teeth",
|
||||
"block.superbwarfare.reforging_table": "Gun Reforge Table",
|
||||
|
||||
"item.superbwarfare.high_energy_explosives": "High Energy Explosives",
|
||||
"item.superbwarfare.grain": "Grain",
|
||||
|
|
|
@ -159,6 +159,7 @@
|
|||
"block.superbwarfare.deepslate_scheelite_ore": "深层白钨矿石",
|
||||
"block.superbwarfare.deepslate_galena_ore": "深层方铅矿石",
|
||||
"block.superbwarfare.dragon_teeth": "龙牙",
|
||||
"block.superbwarfare.reforging_table": "枪械重铸台",
|
||||
|
||||
"item.superbwarfare.high_energy_explosives": "高能炸药",
|
||||
"item.superbwarfare.grain": "推进药柱",
|
||||
|
|
Loading…
Add table
Reference in a new issue