tutorial:custom_model
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
tutorial:custom_model [2021/11/24 10:42] – [BakedModel methods] don't return null in getQuads technici4n | tutorial:custom_model [2022/03/21 04:12] – [Registering the model] solidblock | ||
---|---|---|---|
Line 146: | Line 146: | ||
Let's register the model under the name '' | Let's register the model under the name '' | ||
<code java> | <code java> | ||
+ | @Environment(EnvType.CLIENT) | ||
public class TutorialModelProvider implements ModelResourceProvider { | public class TutorialModelProvider implements ModelResourceProvider { | ||
public static final Identifier FOUR_SIDED_FURNACE_MODEL = new Identifier(" | public static final Identifier FOUR_SIDED_FURNACE_MODEL = new Identifier(" | ||
Line 161: | Line 162: | ||
Now we have to register this class in the client initializer, | Now we have to register this class in the client initializer, | ||
<code java> | <code java> | ||
+ | @Environment(EntType.CLIENT) | ||
public class ExampleModClient implements ClientModInitializer { | public class ExampleModClient implements ClientModInitializer { | ||
@Override | @Override |
tutorial/custom_model.txt · Last modified: 2024/04/27 08:58 by florens