tutorial:entity-old
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorial:entity [2020/05/11 18:27] – [Entity Drops (loot tables)] conorthedev | tutorial:entity-old [2020/06/11 20:06] (current) – ↷ Page name changed from tutorial:entity to tutorial:entity-old draylar | ||
---|---|---|---|
Line 31: | Line 31: | ||
Registry.ENTITY_TYPE, | Registry.ENTITY_TYPE, | ||
new Identifier(" | new Identifier(" | ||
- | FabricEntityTypeBuilder.create(EntityCategory.AMBIENT, | + | FabricEntityTypeBuilder.create(EntityCategory.AMBIENT, |
); | ); | ||
</ | </ | ||
Line 39: | Line 39: | ||
</ | </ | ||
- | The size() method allows you to set the hitbox of your entity. A creeper is 1 block wide and 2 blocks tall, so we'll use (1, 2). | + | The dimensions() method allows you to set the hitbox of your entity. A creeper is 1 block wide and 2 blocks tall, so we'll use (1, 2). |
If you load up your game at this point, you will be able to use /summon to see your creation. If all went right, it should appear as a normal creeper. I would not recommend going into survival. | If you load up your game at this point, you will be able to use /summon to see your creation. If all went right, it should appear as a normal creeper. I would not recommend going into survival. |
tutorial/entity-old.txt · Last modified: 2020/06/11 20:06 by draylar