User Tools

Site Tools


tutorial:entity

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tutorial:entity [2022/01/11 16:31] – Clarify why you wouldn't use WaterCreatureEntity for fish as well simplycmdtutorial:entity [2023/09/13 20:30] (current) – ↷ Links adapted because of a move operation nebelnidas
Line 61: Line 61:
      */      */
     public static final EntityType<CubeEntity> CUBE = Registry.register(     public static final EntityType<CubeEntity> CUBE = Registry.register(
-            Registry.ENTITY_TYPE,+            Registries.ENTITY_TYPE,
             new Identifier("entitytesting", "cube"),             new Identifier("entitytesting", "cube"),
             FabricEntityTypeBuilder.create(SpawnGroup.CREATURE, CubeEntity::new).dimensions(EntityDimensions.fixed(0.75f, 0.75f)).build()             FabricEntityTypeBuilder.create(SpawnGroup.CREATURE, CubeEntity::new).dimensions(EntityDimensions.fixed(0.75f, 0.75f)).build()
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();
Line 274: Line 275:
 ===== Adding tasks & activities ===== ===== Adding tasks & activities =====
  
-To add activities see [[:villager_activities|here]].+To add activities see [[tutorial:villager_activities|here]].
  
tutorial/entity.txt · Last modified: 2023/09/13 20:30 by nebelnidas