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/04 13:12] bananatutorial:entity [2023/09/13 20:30] (current) – ↷ Links adapted because of a move operation nebelnidas
Line 13: Line 13:
   * ''AnimalEntity'' for Sheep, Cows and Pigs   * ''AnimalEntity'' for Sheep, Cows and Pigs
   * ''WaterCreatureEntity'' for things that swim   * ''WaterCreatureEntity'' for things that swim
-  * ''FishEntity'' for fishies+  * ''FishEntity'' for fishies (use instead of ''WaterCreatureEntity'' for schooling behavior)
    
 What you extend depends on what your needs and goals are.  What you extend depends on what your needs and goals are. 
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.1641301963.txt.gz · Last modified: 2022/01/04 13:12 by banana