Skip to content

Faction's setting

MFFbrokenSwing edited this page Nov 26, 2017 · 4 revisions

Multiple settings are available in order to custom your mod experience.

All these settings need to be defined in the configuration file. The configuration can be found at [server-directory]/config/factionmod/configuration.cfg. Open this file, and find the general category.

General category

  • The immunity level (immunity_level, default : 5) : it's an integer, if the faction's level is under the immunity level, players are immunized in the claims of this faction.
  • The maximum length for the faction's description (faction_description_max_length, default : 50) : it's an integer, if the length of the description of a faction is higher than the specified one, it will be truncated.
  • The maximum length for the faction's name (faction_name_max_length, default : 15) : it's an integer, a faction can't be created if the length of its name is higher than the specified one.
  • The maximum of damages a faction can have (max_faction_damages, default : 15) : it's an integer, the damages of a faction can't exceed the specified number.
  • The damages needed to unclaim the chunk of an other faction (damages_needed_to_counter_claim, default : 5) : it's an integer, you can unclaim the chunk of a faction if the damages of the faction are equal to or higher than the specified number.
  • The delay before any teleportation - including home - (teleportation_delay, default : 10) : the time the player has to wait before the teleportation.
  • The friendly fire (disable_friendly_fire, default : true) : set this to true will disable the friendly fire

In the same configuration file, you can find the experience category.

Experience category

You can configure the amount of experience a faction earns in the pre-defined situation :

  • When a player kill a player of an other faction (kill_enemy, default : 7) : it's the amount of experience a player earns for his faction if he kills a player of an other faction (the player who is killed has to have a faction).
  • And you can define the amount of experience earned when a player kills any entity by adding the line : kill_modid_name=amount in the experience configuration, where modid is the id of the mod implementing the entity, name is the name of the entity and amount the amount of experience earned.

The factions have a chest to protect items, you can black-list item from this chest. To black-list an item you have to know his registry name, example : minecraft:stone for the stone, you have specified the domain and the path. After that, in the configuration file, find the category faction-chests and the sub-category unvalid-items :

faction-chests {

    unvalid-items {
    }

}

Once you found them, you will be able to add the black-listed items (you have to declare them in a sub-categorie) :

faction-chests {

    unvalid-items {
        S:basics <
            minecraft:stone
            minecraft:dirt
         >

        S:ores <
            minecraft:diamond_ore
            minecraft:gold_ore
         >
    }

}

NB : if an item is already in the chest and you black-list it, it won't be removed from the chest.