Skip to content

1Defence/block-tracker

Repository files navigation

Block Tracker

Track tile blocking status of npcs and players. Because all entities share the same blocking grid, this can be modified in various ways. This is what allows stacking of npcs in the first place.

  • Entity moves? previous tiles are released, new tiles are blocked
  • Entity despawns? previous tiles are released
  • Entity spawns? current tiles are blocked
  • Entity attempts movement but can't move? current tiles are re-blocked (this specific situation will occur every tick)

Player Blocking

Sometimes you want to block an npc or prevent potential pathing so knowing a players current blocking status can be beneficial.

java_luC6o6UqrZ.mp4

Stuck Tiles

Helps identify situations where npcs will mostly not allow their tiles to be released.

Technically speaking these tiles can be released, but the associated npcs that are stuck will re-block their tiles every game tick; This being said, npcs with higher priority (lower PID) will still be able to path onto stuck tiles, but all other npcs will be prevented from pathing.

Stuck-Tiles.mp4

Self Stacking

Not exactly useful if alts are available, but a potentially practical use-case of knowing current blocking status

Self-Stacking.mp4

Alt Stacking examples

Manual Path

Alt.example.mp4

Follow Path with a player blocker

java_fY0LkIQORB.mp4

Follow Path with a "stuck" NPC

Stuck-Tracking.mp4

About

Track tile blocking status of npcs and players

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages