jenchanws / create-track-map

Create train track map mod for Minecraft (Fabric & Forge)
https://modrinth.com/mod/create-track-map
MIT License
65 stars 19 forks source link

[Suggestion] Excluded regions #47

Open Batimius opened 11 months ago

Batimius commented 11 months ago

If this request is simply impossible to do, then feel free to close it as is. One thing that would be cool to implement would be an exclusion list. For instance, if you are making a hidden base, you certainly do not want everyone to see a bunch of tracks on the map where there is "surpassingly nothing." With an exclusion list, any track, train, and signal that falls under the specified region will not be rendered on the map. How you approach this structure is up to you. This could be either chunk-based or block-based. The format could be something like this:

exclusionList: [
    {
        bottomLeft: [100, 250], // Format is [x-coordinate, z-coordinate]
        topRight: [150, 400]
    },
    {
        bottomLeft: [-100, -25],
        topRight: [-50, 0]
    }
]

Of course, the structure could be changed however you'd like, but essentially, if any train-related marker (track, train, signal, etc) falls inside those coordinates, it would not be rendered. This could help conceal any secret bases one might want to build. You could also implement a y-value as well, I am just dropping the idea.

Now, as for who is able to create those regions, they could probably either be able to be created through a server config, a server-admin /command, or a global /command (the command permissions could also probably be configurable).

Whether this is doable or not is something for you to decide, I just thought I'd give the suggestion as it would be very nice for such a feature to exist.