tutorial:entity
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorial:entity [2022/01/11 16:31] – external edit 127.0.0.1 | tutorial:entity [2024/04/30 20:42] (current) – ryhon | ||
---|---|---|---|
Line 61: | Line 61: | ||
*/ | */ | ||
public static final EntityType< | public static final EntityType< | ||
- | | + | |
new Identifier(" | new Identifier(" | ||
FabricEntityTypeBuilder.create(SpawnGroup.CREATURE, | FabricEntityTypeBuilder.create(SpawnGroup.CREATURE, | ||
Line 197: | Line 197: | ||
} | } | ||
| | ||
+ | // You can use BlockBench, make your model and export it to get this method for your entity model. | ||
public static TexturedModelData getTexturedModelData() { | public static TexturedModelData getTexturedModelData() { | ||
ModelData modelData = new ModelData(); | ModelData modelData = new ModelData(); | ||
ModelPartData modelPartData = modelData.getRoot(); | ModelPartData modelPartData = modelData.getRoot(); | ||
modelPartData.addChild(EntityModelPartNames.CUBE, | modelPartData.addChild(EntityModelPartNames.CUBE, | ||
+ | return TexturedModelData.of(modelData, | ||
} | } | ||
</ | </ | ||
Line 274: | Line 276: | ||
===== Adding tasks & activities ===== | ===== Adding tasks & activities ===== | ||
- | To add activities see [[: | + | To add activities see [[tutorial: |
tutorial/entity.1641918701.txt.gz · Last modified: 2022/01/11 16:31 by 127.0.0.1