Yeregorix / Mirage

The best solution against xray users
13
Download

Configuration

Configuration files can be found in the config/mirage/worlds/ folder. There is one file per world and by default Mirage aims to generate an optimized configuration for each world according to the dimension and few other parameters. When you open a configuration file here is how it should look like:

Config {
    Cache=true
    Deobfuscation {
        NaturalRadius=1
        PlayerRadius=2
    }
    Dynamism=true
    Enabled=true
    Preobfuscation {
        Blocks=[
            .....
        ]
        Enabled=false
        Replacement="minecraft:stone[variant=stone]"
    }
    Seed=7859888915442178412
}
Modifiers=[
    {
        Type=a_default_modifier
        Options {
            .....
        }
    },
	.....
    {
        Type=myplugin:my_custom_modifier
        Options {
            .....
        }
    }
]
Version=2

This example shows you the general structure of a configuration file, a real configuration file will be a bit different from this one. (..... represents a more or less long list of items).

Structure

As you can see a configuration file is currently divided in three parts.

Version

This field is used to hold a number that will indicate to Mirage whether the configuration is outdated or not. You should never modify this number. If the configuration is outdated, Mirage will make a backup of the file and try to update the structure to a newer version. If it’s not possible a new one will be generated.

Config

This part always has the same structure. Here are the different fields:

  • Enabled determines whether Mirage is enabled in this world. If disabled, all other fields in Config and Modifiers will be ignored.
  • Cache determines whether the cache is activated in this world. The cache can help you a lot to gain performances but it can be disabled if you have an issue with. (which should never happen).
  • Dynamism determines whether dynamism is activated in this world. This allows to dynamically hide blocks depending on the player distance.
  • Seed is used by some algorithms to generate random things and should not be modified unless you know what you’re doing.
  • Deobfuscation determines the radius (between 1 and 4) used to deobfuscate neighbor blocks around a block modified or updated by a player or the game itself. A low number increases protection, but can cause fake blocks to appear for a fraction of a second when a player is mining.
  • Preobfuscation is a modifier similar to the HideAll modifier which if enabled will temporary hides all ores until all other modifiers are ready to operates. If enabled, this option will increase your protection but might decrease performances. You should enable this option only if you want a very high protection. This modifier has exactly the same options as the HideAll modifier.
Modifiers

Soon

Category: Protection

Published on Jun 5, 2018

8793 views

13 stars

2,279 total downloads

Licensed under MIT

Members