tutorial:blocks
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| tutorial:blocks [2025/04/02 01:13] – [Giving your Block Visuals] solidblock | tutorial:blocks [2025/12/07 16:13] (current) – mcgambingpro | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| Adding blocks to your mod follows a similar process to [[tutorial: | Adding blocks to your mod follows a similar process to [[tutorial: | ||
| - | ===== Creating a Block (before 1.21.2) ===== | + | ===== Creating a Block before 1.21.2 ===== |
| :!: If you are using 1.21.2 or later versions, please directly see [[# | :!: If you are using 1.21.2 or later versions, please directly see [[# | ||
| Line 37: | Line 37: | ||
| </ | </ | ||
| - | ===== Registering your Block (before 1.21.2) ===== | + | ===== Registering your Block before 1.21.2 ===== |
| Blocks should be registered under the '' | Blocks should be registered under the '' | ||
| Line 65: | Line 65: | ||
| Your custom block will //not// be accessible as an item yet, but it can be seen in-game by using the command ''/ | Your custom block will //not// be accessible as an item yet, but it can be seen in-game by using the command ''/ | ||
| - | ===== Registering an Item for your Block (before 1.21.2) ===== | + | ===== Registering an Item for your Block before 1.21.2 ===== |
| In most cases, you want to be able to place your block using an item. To do this, you need to register a corresponding BlockItem in the item registry. You can do this by registering an instance of BlockItem under '' | In most cases, you want to be able to place your block using an item. To do this, you need to register a corresponding BlockItem in the item registry. You can do this by registering an instance of BlockItem under '' | ||
| Line 94: | Line 94: | ||
| </ | </ | ||
| - | ===== Best practice of registering | + | ===== Best practice of registering |
| :!: This section does not apply to versions 1.21.2 and later. | :!: This section does not apply to versions 1.21.2 and later. | ||
| Line 123: | Line 123: | ||
| </ | </ | ||
| - | ===== Registering | + | ===== Registering |
| In 1.21.2+, '' | In 1.21.2+, '' | ||
tutorial/blocks.txt · Last modified: 2025/12/07 16:13 by mcgambingpro