tutorial:items
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:items [2020/11/02 06:36] – [Adding Item textures] item/generated -> builtin/generated leocth2 | tutorial:items [2020/12/07 10:17] – item/generated is used for items ramidzkh | ||
---|---|---|---|
Line 28: | Line 28: | ||
} | } | ||
</ | </ | ||
- | Your new item has now been added to Minecraft. Run the `runClient` gradle task to see it in action. | + | Your new item has now been added to Minecraft. Run the '' |
{{: | {{: | ||
Line 49: | Line 49: | ||
<code JavaScript> | <code JavaScript> | ||
{ | { | ||
- | " | + | " |
" | " | ||
" | " | ||
Line 84: | Line 84: | ||
public TypedActionResult< | public TypedActionResult< | ||
playerEntity.playSound(SoundEvents.BLOCK_WOOL_BREAK, | playerEntity.playSound(SoundEvents.BLOCK_WOOL_BREAK, | ||
- | return | + | return TypedActionResult.success(playerEntity.getStackInHand(hand)); |
} | } | ||
} | } |
tutorial/items.txt · Last modified: 2024/08/26 01:04 by solidblock