tutorial:crops
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:crops [2021/08/09 14:24] – Make transparent cutouts in the client initializer redgrapefruit | tutorial:crops [2022/12/16 02:43] – solidblock | ||
---|---|---|---|
Line 61: | Line 61: | ||
===== Registering your Crop and Seed Item ===== | ===== Registering your Crop and Seed Item ===== | ||
- | Now we need to register our crop and the item to use for our seed. The seed model and class will not be covered in this tutorial but you can refer to the [[tutorial: | + | Now we need to register our crop and the item to use for our seed. The seed model and class will not be covered in this tutorial but you can refer to the [[tutorial: |
<code java [enable_line_numbers=" | <code java [enable_line_numbers=" | ||
Line 72: | Line 72: | ||
@Override | @Override | ||
public void onInitialize() { | public void onInitialize() { | ||
- | Registry.register(Registry.BLOCK, new Identifier(" | + | Registry.register(Registries.BLOCK, new Identifier(" |
- | Registry.register(Registry.ITEM, new Identifier(" | + | Registry.register(Registries.ITEM, new Identifier(" |
} | } | ||
Line 79: | Line 79: | ||
</ | </ | ||
- | You also probably want the '' | + | You also probably want the '' |
<code java [enable_line_numbers=" | <code java [enable_line_numbers=" | ||
+ | @Environment(EnvType.CLIENT) | ||
public class TutorialModClient implements ClientModInitializer { | public class TutorialModClient implements ClientModInitializer { | ||
| |
tutorial/crops.txt · Last modified: 2023/11/18 08:44 by solidblock