tutorial:directionalblock
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorial:directionalblock [2022/12/16 02:07] – solidblock | tutorial:directionalblock [2023/09/26 05:43] (current) – Fix typo [Making a Directional Block] poopooracoocoo | ||
---|---|---|---|
Line 38: | Line 38: | ||
@Override | @Override | ||
public BlockState getPlacementState(ItemPlacementContext ctx) { | public BlockState getPlacementState(ItemPlacementContext ctx) { | ||
- | return super.getPlacementState(ctx).with(Properties.HORIZONTAL_FACING, | + | return super.getPlacementState(ctx).with(Properties.HORIZONTAL_FACING, |
} | } | ||
Line 44: | Line 44: | ||
</ | </ | ||
<code java> | <code java> | ||
- | public class ExampleMod implements | + | public class ExampleMod implements |
public static final VerticalSlabBlock POLISHED_ANDESITE_VERTICAL_SLAB = Registry.register( | public static final VerticalSlabBlock POLISHED_ANDESITE_VERTICAL_SLAB = Registry.register( | ||
Registries.BLOCK, | Registries.BLOCK, |
tutorial/directionalblock.txt · Last modified: 2023/09/26 05:43 by poopooracoocoo