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
Last revisionBoth sides next revision
tutorial:entity [2022/09/18 13:47] nexus-dinotutorial:entity [2023/01/12 14:54] – [Creating & Registering an Entity] fix code errors tao0lu
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()
tutorial/entity.txt · Last modified: 2023/09/13 20:30 by nebelnidas