squaremap

squaremap

1.9k Downloads

[QUESTION] How do you set visibility limits by radius/coords?

hamcoremusic opened this issue ยท 2 comments

commented

Hello!

I was looking at the wiki and default config for visibility limits but it only really shows the world-boarder type. What other types can I se it to? Would be cool to get it added to the wiki as well!

commented

I know this is an old issue, but I guess this is where people end up if they search for the visibility limits. To answer the question, you add them as follows:

      visibility-limits:
      - type: world-border
        enabled: true
      - type: circle
        radius: 100
        center-x: 3782
        center-z: 6844
      - type: rectangle
        min-x: 3770
        max-x: 3790
        min-z: 6650
        max-z: 6850

The areas add to each other, so you'll get a map that looks like this:

map

I can't edit the wiki myself, but maybe someone could add this information to it?

commented

Example rectangle and circle limits are now on the config.yml wiki page.