User Tools

Site Tools



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

Link to this comparison view

Both sides previous revision Previous revision
tutorial:entity [2019/05/26 16:40]
jamieswhiteshirt Syntax highlighting, code formatting improvements
tutorial:entity [2019/07/09 21:05] (current)
upcraftlp [Registering an Entity] make the entity builder size() call use entity dimensions
Line 31: Line 31:
         Registry.ENTITY_TYPE,​         Registry.ENTITY_TYPE,​
         new Identifier("​wiki-entity",​ "​cookie-creeper"​),​         new Identifier("​wiki-entity",​ "​cookie-creeper"​),​
-        FabricEntityTypeBuilder.create(EntityCategory.AMBIENT,​ CookieCreeperEntity::​new).size(1,​ 2).build()+        FabricEntityTypeBuilder.create(EntityCategory.AMBIENT,​ CookieCreeperEntity::​new).size(EntityDimensions.fixed(1, 2)).build()
     );     );
 </​code>​ </​code>​
tutorial/entity.txt ยท Last modified: 2019/07/09 21:05 by upcraftlp