Citizens2 icon indicating copy to clipboard operation
Citizens2 copied to clipboard

Render distance per NPC

Open HexedHero opened this issue 2 years ago • 2 comments

I confirm that I have ...

  • [X] ...tried the latest Development Build to make sure my feature doesn't exist already.
  • [X] ...checked the Wiki for any possible information about my feature.
  • [X] ...checked other existing issues for my feature request.

Description

Add the ability to see a "render distance" for each NPC so a player has to be X radius away for the NPC to be visible.

Code Example

No response

HexedHero avatar Apr 29 '22 11:04 HexedHero

This miiiight be possible to implement via mucking with ChunkMap.TrackedEntity#range? (The entity-tracker-range)

mcmonkey4eva avatar Apr 29 '22 11:04 mcmonkey4eva

Would really love to see this!

Valeoria avatar Jul 17 '22 02:07 Valeoria

This miiiight be possible to implement via mucking with ChunkMap.TrackedEntity#range? (The entity-tracker-range)

This is the tracking range from spigot.yml and is settable per entity (although I believe at present Citizens only replaces the tracker entry for Players).

fullwall avatar Nov 13 '22 15:11 fullwall

Would be a nice feature :)

Elgorond avatar Nov 23 '22 02:11 Elgorond

This was added by fullwall via https://github.com/CitizensDev/CitizensAPI/commit/fb2563fbf2eadeb0397c6dc098237666751ffdcc and https://github.com/CitizensDev/Citizens2/commit/8d202aa988d913159e49fdafa9e17b381f704572 As: /npc trackingrange [range] and /npc activationrange [range]

mcmonkey4eva avatar Dec 19 '22 01:12 mcmonkey4eva