tutorial:blocks
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
tutorial:blocks [2024/04/15 01:52] – [Custom Shape] solidblock | tutorial:blocks [2024/06/13 08:12] – update parameters needed for onUse s1lverposting | ||
---|---|---|---|
Line 211: | Line 211: | ||
// For versions below 1.20.5, the parameters should be " | // For versions below 1.20.5, the parameters should be " | ||
@Override | @Override | ||
- | public ActionResult onUse(World world, PlayerEntity player, BlockHitResult hit) { | + | public ActionResult onUse(BlockState state, |
if (!world.isClient) { | if (!world.isClient) { | ||
player.sendMessage(Text.literal(" | player.sendMessage(Text.literal(" |
tutorial/blocks.txt · Last modified: 2024/07/04 16:29 by mineblock11