Rebirth-of-the-Night / onslaught

Onslaught is a Minecraft Mod that gives you an interface to create Invasions of violent mobs with custom abilities, loot, and spawning conditions.
5 stars 3 forks source link

Feat/offscreen teleport #21

Closed SekretOne closed 3 years ago

SekretOne commented 3 years ago

Resolves: #15 with a new AI task that gives the invasion mobs the power to teleport a fraction of the distance closer.

❗ Due to core minecraft mechanics, any task cannot prevent the entity from going inactive or unloading.

Add

  1. EntityAIOffscreenTeleport, a task that translocates a mob that finds itself outside a certain range of the target.
    • includes all config, nbt management trimmings
  2. docs on usage

Validation

  1. unit tests for mathematics of teleport
  2. wrote test invasions for Chaser and Flanker patterns
  3. runClient and test using the invasions
SekretOne commented 3 years ago

Using teleport.flankers invasion

https://user-images.githubusercontent.com/5504626/113493935-f6764380-94b1-11eb-9b2a-c4d10360ebbe.mp4