tutorial:entity
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
tutorial:entity [2021/09/26 13:19] – Add clarification for EntityRendererRegistry.register skullition | tutorial:entity [2022/09/18 13:47] – nexus-dino | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== Creating an Entity ===== | ===== Creating an Entity ===== | ||
- | //The source code for this project can be found [[https:// | + | //The source code for this project can be found [[https:// |
Entities are a movable object in a world with logic attached to them. A few examples include: | Entities are a movable object in a world with logic attached to them. A few examples include: | ||
Line 10: | Line 10: | ||
Living Entities are Entities that have health and can deal damage. | Living Entities are Entities that have health and can deal damage. | ||
There are various classes that branch off `LivingEntity` for different purposes, including: | There are various classes that branch off `LivingEntity` for different purposes, including: | ||
- | * '' | + | * '' |
- | * '' | + | * '' |
* '' | * '' | ||
- | * '' | + | * '' |
- | What you extend depends on your needs and goals are. | + | What you extend depends on what your needs and goals are. |
As you get further down the chain, the entity logic becomes more specific and curated to certain tasks. | As you get further down the chain, the entity logic becomes more specific and curated to certain tasks. | ||
The two generic entity classes that come after '' | The two generic entity classes that come after '' | ||
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(); |
tutorial/entity.txt · Last modified: 2024/04/30 20:42 by ryhon