tutorial:containers
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
tutorial:containers [2020/02/27 13:31] – new tutorial mkpoli | tutorial:containers [2020/02/27 13:39] – finish sentence mkpoli | ||
---|---|---|---|
Line 3: | Line 3: | ||
==== Block and BlockItem ==== | ==== Block and BlockItem ==== | ||
- | First create and register | + | First we need to create |
- | <code java [enable_line_numbers=" | + | <code java [enable_line_numbers=" |
public class BiggerChestBlock extends BlockWithEntity { | public class BiggerChestBlock extends BlockWithEntity { | ||
public BiggerChestBlock(Settings settings) { | public BiggerChestBlock(Settings settings) { | ||
Line 65: | Line 65: | ||
Then we need to register our Block and BlockItem. | Then we need to register our Block and BlockItem. | ||
- | <code java [enable_line_numbers=" | + | <code java [enable_line_numbers=" |
public class ExampleMod implements ModInitializer | public class ExampleMod implements ModInitializer | ||
{ | { | ||
Line 215: | Line 215: | ||
==== Orgnizing ==== | ==== Orgnizing ==== | ||
- | After following | + | After all the steps, you should have your ExampleMod Class and ExampleClientMod Class as such: |
- | + | ||
- | You should have your ExampleMod Class and ExampleClientMod Class as such: | + | |
<code java [enable_line_numbers=" | <code java [enable_line_numbers=" | ||
Line 246: | Line 244: | ||
} | } | ||
</ | </ | ||
+ | |||
+ | {{tutorial: | ||
It's over and enjoy your custom container! | It's over and enjoy your custom container! |
tutorial/containers.txt · Last modified: 2022/05/27 15:57 by solidblock