0 of 0

File information

Last updated

Original upload

Created by

aedenthorn

Uploaded by

aedenthorn

Virus scan

Safe to use

Tags for this mod

About this mod

Causes traders to stay open at all times, and lets you override build, damage, and land claim restrictions in trader areas with a hotkey and config settings.

Permissions and credits
Changelogs
Donations
Summary

This mod modifies the game code to completely bypass trader closing logic and override block placement, land claim, and block damage restrictions for trader areas.

It works with Pickup Blocks which normally doesn't allow picking up blocks in trader areas.


Closing Time

Traders should stay open at all times and never cause the player to teleport out of their range.


Block Placement Protection

By default, block placement in trader areas is always allowed with this mod. To prevent block placement in trader areas, edit the config.


Land Claim Protection

By default, land claim blocks are allowed in trader areas with this mod. To prevent land claims in trader areas, edit the config.


Block Damage Protection

By default, block damage is not allowed in trader areas with this mod. To allow damaging blocks in trader areas, press the customizable hotkey toggle (default NumPad 0), or edit the config. The key can be changed in the config, using values taken from this page.

There is also a list in the config to always allow certain types of blocks to be damaged. The default list looks like this:

  "alwaysAllowDamageTypes": [
    "blockNameHere",
    "blockPrefixHere*"
  ],

The two entries in the list are just placeholders, to provide sample syntax. Here is a functioning example that allows crops to be harvested in trader areas:

  "alwaysAllowDamageTypes": [
    "planted*"
  ],

The * is a wildcard marker, signifying that any type starting with planted should be damagable regardless of the hotkey being toggled.

Block names can be found by attempting to damage them and then checking the console (F1). You should see a line that says something like:

UnrestrictedTraderAccess Preventing damage to cntArmyTruckOpen

Here, the name of the block is cntArmyTruckOpen.


Config

A config.json file will be created in the mod's folder on first launch. Edit it with Notepad++ and save. You can edit the config file in game, there is no need to restart the game. Just be careful about json syntax!