tutorial:entity-old
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
tutorial:entity [2020/05/10 18:13] – Add tutorial on entity loot tables conorthedev | tutorial:entity [2020/05/24 21:37] – size -> dimensions yanis48 | ||
---|---|---|---|
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. | ||
Line 132: | Line 132: | ||
==== Entity Drops (loot tables) ==== | ==== Entity Drops (loot tables) ==== | ||
- | When you kill the cookie creeper, at the moment it doesn' | + | When you kill the cookie creeper, at the moment it doesn' |
For this, we need to use loot tables. To get started, we're going to create the file that tells Minecraft what our entity loot table is ('' | For this, we need to use loot tables. To get started, we're going to create the file that tells Minecraft what our entity loot table is ('' |
tutorial/entity-old.txt · Last modified: 2020/06/11 20:06 by draylar