tutorial:directionalblock
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
tutorial:directionalblock [2021/02/15 06:48] – [Directional Blocks] Updated getOutlineShpe to fit current syntax arbee | tutorial:directionalblock [2021/03/18 08:15] – fix code jummit | ||
---|---|---|---|
Line 38: | Line 38: | ||
public BlockState getPlacementState(ItemPlacementContext ctx) { | public BlockState getPlacementState(ItemPlacementContext ctx) { | ||
- | return (BlockState)this.getDefaultState().with(FACING, ctx.getPlayerFacing()); | + | return (BlockState)this.getDefaultState().with(Properties.HORIZONTAL_FACING, ctx.getPlayerFacing().getOpposite()); |
} | } | ||
tutorial/directionalblock.txt · Last modified: 2023/09/26 05:43 by poopooracoocoo