tutorial:blockstate
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
tutorial:blockstate [2020/03/19 10:10] – 1.15 juuz | tutorial:blockstate [2021/05/24 19:18] – [Adding models for your blockstates] Fix typo technici4n | ||
---|---|---|---|
Line 46: | Line 46: | ||
@Override | @Override | ||
public ActionResult onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) { | public ActionResult onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) { | ||
- | world.setBlockState(pos, | + | world.setBlockState(pos, |
return ActionResult.SUCCESS; | return ActionResult.SUCCESS; | ||
} | } | ||
Line 85: | Line 85: | ||
- The ''" | - The ''" | ||
- | If you // | + | If you want to have different models for each blockstate, you should |
<code JavaScript resources/ | <code JavaScript resources/ |
tutorial/blockstate.txt · Last modified: 2023/11/18 08:13 by solidblock