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 [2020/06/14 00:57] – fix header sizes draylar | tutorial:blocks [2020/06/14 00:58] – copy comments to bottom code block draylar | ||
---|---|---|---|
Line 174: | Line 174: | ||
public class ExampleMod implements ModInitializer { | public class ExampleMod implements ModInitializer { | ||
- | // an instance | + | /* Declare and initialize our custom block instance |
- | public static final ExampleBlock EXAMPLE_BLOCK = new ExampleBlock(Block.Settings.of(Material.STONE)); | + | We set out block material to METAL, which requires a pickaxe to efficiently break. |
+ | | ||
+ | */ | ||
+ | public static final ExampleBlock EXAMPLE_BLOCK = new ExampleBlock(Block.Settings.of(Material.STONE).hardness(4.0f)); | ||
| | ||
@Override | @Override |
tutorial/blocks.txt · Last modified: 2024/04/15 01:52 by solidblock