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 revision Previous revision
Next revision
Previous revision
tutorial:entity [2020/08/01 14:24]
earthcomputer MobEntityWithAi -> PathAwareEntity
tutorial:entity [2021/01/30 00:38] (current)
oroarmor [Spawning your Entity]
Line 256: Line 256:
 You can spawn your entity by typing ''/​summon entitytesting:​cube''​ in-game. Press f3+b to view hitboxes: You can spawn your entity by typing ''/​summon entitytesting:​cube''​ in-game. Press f3+b to view hitboxes:
 {{https://​i.imgur.com/​MmQvluB.png}} {{https://​i.imgur.com/​MmQvluB.png}}
 +
 +**NOTE:** If your entity does not extend ''​LivingEntity''​ you have to create your own spawn packet handler. Either do this through the networking API, or mixin to ''​ClientPlayNetworkHandler#​onEntitySpawn''​
 +===== Adding tasks & activities =====
 +
 +To add activities see [[:​villager_activities|here]].
  
tutorial/entity.1596291872.txt.gz · Last modified: 2020/08/01 14:24 by earthcomputer