User Tools

Site Tools


tutorial:directionalblock

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
tutorial:directionalblock [2021/08/11 02:53] – use auto uv and uvlock solidblocktutorial:directionalblock [2021/08/30 16:39] jamalam
Line 37: Line 37:
  }  }
  
 +        @Ovveride
  public BlockState getPlacementState(ItemPlacementContext ctx) {  public BlockState getPlacementState(ItemPlacementContext ctx) {
  return (BlockState)this.getDefaultState().with(Properties.HORIZONTAL_FACING, ctx.getPlayerFacing().getOpposite());  return (BlockState)this.getDefaultState().with(Properties.HORIZONTAL_FACING, ctx.getPlayerFacing().getOpposite());
tutorial/directionalblock.txt · Last modified: 2023/09/26 05:43 by poopooracoocoo