SGCraft Wiki

Settings

SGCraft reads its settings from three config files. This page gives each setting's default and what it does, and lists every property a single gate can hold.

The files

FileWho it is forWhat it holds
config/sgcraft-server.jsonThe serverEnergy, costs, worldgen, gate defaults, the MALP, ZPMs and the rest
config/sgcraft-client.jsonEach playerHow SGCraft looks and sounds for that player
config/sgcraft-default-addresses.jsonThe serverThe addresses new PDDs and gate control tablets start with

Each file is written the first time the game starts without it. A setting left out of a file takes its default. If a file has a mistake, the log says so and the settings it can't read take their defaults.

The server file holds only the settings that differ from their defaults, so a fresh sgcraft-server.json is {}. Add only the settings you want to change.

The server reads sgcraft-server.json as it starts. To change a setting by hand, edit the file and restart the server. Most settings can also be changed in game, with the settings screen or a command, which applies the change at once and writes it to the file. See Changing settings in game.

Example

A short sgcraft-server.json that changes a few settings and leaves the rest at their defaults:

{
  "energy": {
    "dial_costs": {
      "per_tick": { "enabled": false, "energy": 1 }
    }
  },
  "gates": {
    "chunk_loading_range": 2,
    "defaults": {
      "sgcraft:open_ticks": 12000,
      "sgcraft:chevrons": 9
    }
  },
  "malp": {
    "signal_range": 512
  }
}

Server settings

config/sgcraft-server.json keeps its settings in fourteen sections: energy, addresses, gates, tools, worldgen, remote_view, malp, shields, zpm, computers, generators, zat, rings and jumper. A section left out takes all its defaults. In a section, a setting left out takes its default. This page names a setting by its path, such as energy.multipliers.inter_world. The whole file shows every setting at its default.

Energy

The energy section sets what naquadah and power units hold, the rates of other energy systems, and what dials cost. See Power for how gates use energy.

KeyDefaultMeaning
per_naquadah96000Gate energy (GE) one naquadah gives, burned in a DHD, crafted into a battery or burned in a battery charger
power_unit_capacity50000Most GE a power unit holds; cables fill a full one with 4,000,000 FE
bridge_rates{ "fe_in_per_ge": 80, "fe_out_per_ge": 80 }The energy bridges' rates. fe_in_per_ge is how many FE buy one GE coming in, and fe_out_per_ge how many FE one GE gives going out; an add-on bridge goes in by its ID, as how much GE one of its units is worth
converter_rate62.5The most GE an energy converter turns into FE each tick; 62.5 is 5,000 FE at the default out rate
free_in_creativefalsePlayers in creative mode dial without energy
dial_costsSee Dial costsWhat a wormhole costs the gate that dials it, before distance
multipliersSee MultipliersHow many times more a wormhole costs with distance, more chevrons or a supergate

SGCraft has two bridges of its own: sgcraft:forge_energy for FE and sgcraft:direct for energy already in GE. FE has two rates, fe_in_per_ge for FE coming in and fe_out_per_ge for GE going out as FE, both 80 FE to one GE unless set. "bridge_rates": { "fe_in_per_ge": 40, "fe_out_per_ge": 40 } makes 40 FE worth one GE both ways, as do /sgcraft costs fe_in_per_ge 40 and /sgcraft costs fe_out_per_ge 40. Writing sgcraft:forge_energy here is an error the server reports; use fe_in_per_ge and fe_out_per_ge. One unit through sgcraft:direct is worth 1.0 GE unless bridge_rates gives it another rate under its ID. Add-ons can register more bridges and set their rates by ID, as GE per unit, such as "bridge_rates": { "fe_in_per_ge": 80, "fe_out_per_ge": 80, "example:steam": 0.5 }.

Everything inside SGCraft stores and spends GE. The FE rates apply only where SGCraft meets other mods. The in rate covers cables filling power units and battery chargers, and other mods' chargers filling batteries. The out rate covers energy converters, and other mods drawing FE out of a battery.

If fe_out_per_ge is higher than fe_in_per_ge, FE run through a power unit and an energy converter comes back as more FE. Keep the out rate at or below the in rate unless you want that.

Dial costs

energy.dial_costs has three costs. Each cost is an object with enabled (true unless set) and energy (required, not negative). Each one is taken before the distance and world multipliers.

KeyDefaultWhen it is taken
per_chevron{ "enabled": true, "energy": 100 }As each chevron locks
open{ "enabled": true, "energy": 4000 }As the wormhole forms
per_tick{ "enabled": true, "energy": 1 }Each tick the wormhole stays open

A gate's own chevron_cost, open_cost and tick_cost properties (and their _enabled switches) override these for that gate. See Gate properties.

Multipliers

KeyDefaultMeaning
distance_factor1.0How much more a wormhole costs the further it reaches; 0 makes distance cost nothing extra
inter_world10.0How many times more a dial with an eighth chevron costs, to another world of the group
other_group10.0How many times more again a dial with a ninth chevron costs, to another group of worlds; 100 times the base by default
supergate8.0How many times more a wormhole to or from a supergate costs

A gate's own distance_factor_multiplier and inter_world_multiplier properties override the first two for that gate.

Addresses

The addresses section lays each world out into addresses. See Addresses.

KeyDefaultMeaning
cell_chunks8How many chunks wide and long each addressed cell is, from 1 to 256. One gate per cell can be dialed
point_of_origin"@"The symbol every address ends with, which the last chevron locks; "" for addresses without one
groups{}The groups of worlds, by name, each { "symbol": "<symbol>" }. Leave out symbol for one SGCraft chooses. List default only to give the default group another symbol than @
worlds{}A world's own cell_chunks, point_of_origin and group, by world ID. A value left out is the one above, and a world without a group is in the default group
secret_layoutfalseWhether every world's cells get their addresses in an order set by the server's secret key, so no one can work out where a gate is from its address. See Secret layout
"addresses": {
  "cell_chunks": 8,
  "point_of_origin": "@",
  "groups": {
    "pegasus": { "symbol": "P" },
    "destiny": {}
  },
  "worlds": {
    "minecraft:the_nether": { "cell_chunks": 1 },
    "mymod:atlantis": { "group": "pegasus", "point_of_origin": "A" }
  }
}

A group's name is lowercase letters, digits and underscores, up to 32 of them. A server has up to 39 groups and a group up to 39 worlds. See World symbols and groups.

Bigger cells reach farther from the center with the same symbols but leave more space between gates. With cells 8 chunks across, 7 symbols reach about 3,511,808 blocks out each way.

Warning: Changing cell_chunks or point_of_origin changes every gate address in the worlds it reaches, and changing secret_layout every gate address in every world. Changing a world's group, or a group's symbol, changes its gates' addresses of 8 and 9 symbols. Address books, default addresses and anything else holding an old address stop reaching the gate. Choose them before players build gates. The server records each world's layout, group and symbol. When a world that has gates starts with different ones, the server log shows a large STARGATE ADDRESSES HAVE CHANGED warning naming each world, its gate count and what changed, and operators who join get a warning in chat. It shows once, as the new addresses are then recorded. To get the old addresses back, set the old values again and restart. A world with no gates changes without a warning.

Gates

KeyDefaultMeaning
chunk_loading_range1Chunks around a busy gate's own that stay loaded, from 0 to 8
event_horizon_light12How bright an open horizon lights the world around it, from 0 for none to 15. The light waves up and down by 3 as ripples cross the horizon. Behind a shut iris the gate's back is lit this bright instead
kawoosh_breaks_unbreakablefalseA kawoosh also clears blocks that can't be broken, such as bedrock
owners_break_gatestrueA gate's owner may break it whatever its breakable property says
generated_gates_breakablefalsePlayers may break generated gates that have no breakable value of their own
wormholes_jumptrueWhen the gate an open wormhole reaches breaks, the wormhole jumps to another gate in the same address cell. See Wormhole jumps
log_eventsfalseGates forming and breaking, wormholes opening, closing and going astray, and dials that fail and why, are written to the server log
defaults{}Values gates have for a property when they have none of their own. See Gate defaults

Gate defaults

gates.defaults maps a gate property ID to a JSON value. A gate that has no value of its own for that property uses this one in place of the property's default. Two keys are given to gates once, as they first form, rather than read each time:

  • sgcraft:iris with "sgcraft:metal" fits every new gate with an iris. An iris given this way is part of the gate, so removing it gives no Iris Upgrade back. See Iris.
  • sgcraft:chevrons with 7, 8 or 9 sets how many chevrons new gates have.
"gates": {
  "defaults": {
    "sgcraft:iris": "sgcraft:metal",
    "sgcraft:chevrons": 9,
    "sgcraft:one_way_travel": false,
    "sgcraft:default_rights": ["sgcraft:use"]
  }
}

Use /sgcraft gate_defaults to list, set or reset these in game.

Tools

KeyDefaultMeaning
range6How far from a player the handheld tools (PDD, GDO, configurator, Explorer Dialer Device) look for a gate, in blocks

World generation

The worldgen section sets naquadah ore, the gates the world builds and the Tok'ra at them. See World generation.

KeyDefaultMeaning
naquadah_oreSee Naquadah oreHow naquadah ore generates
structure_gatesSee Structure gatesThe structures that get a gate, and how
village_gatesSee Village gatesThe gate plazas villages build
tokra_worlds{ "minecraft:overworld": true }Whether Tok'ra stand at generated gates, by world ID. See Tok'ra worlds

Naquadah ore

worldgen.naquadah_ore sets how naquadah ore generates.

FieldDefaultMeaning
enable_naquadah_oretrueNaquadah ore generates at all
gen_under_lava_odds1One chunk in this many gets clusters under lava; 0 gives none
max_nodes_under_lava16Most columns of a chunk searched for lava, each giving a cluster where lava rests on a solid block
gen_isolated_odds1One chunk in this many gets nodes away from lava; 0 gives none
max_isolated_nodes4Most such nodes a chunk gets
worlds["*", "!minecraft:the_nether", "!minecraft:the_end"]The worlds naquadah ore generates in. See Choosing worlds
add_ores_to_existing_worldstrueChunks made without naquadah ore, such as before SGCraft was added, get it when they load

Structure gates

worldgen.structure_gates maps a structure's ID to how a gate is added to it. A structure left out gets no gate. Writing this key replaces the whole default list, so copy every entry you want to keep.

Each entry has these fields:

FieldDefaultMeaning
templateRequiredThe structure template the gate and its surroundings are built from
chance25How many of these structures in a hundred get a gate (0 to 100)
placement"beside""inside" replaces the middle of the structure's first piece; "beside" builds it off to one side, clear of every piece
min_distance10Beside: fewest blocks from the first piece, along each axis (0 to 96)
max_distance30Beside: most blocks from the first piece, along each axis (0 to 96)
ground"surface"What the template sits on: "surface", "ocean_floor", "structure" (the first piece's bottom) or "structure_top" (its top)
y_offset0Blocks to raise the template, or lower it if negative
foundation"full"What is built under it down to solid ground: "none", "full" (the whole bottom layer) or "corners" (a 2 by 2 pillar under each corner)
foundation_blockstone_bricksThe block state a foundation is built of
chevron_upgrade_chance25How many gates in a hundred have 9 chevrons in place of 7 (0 to 100)
tokratrueA Tok'ra stands in front of the gate once it is built

The default list:

StructureTemplatePlacementGroundy_offsetTok'ra
minecraft:desert_pyramidsgcraft:stargate/pyramid_hallInsideStructure0Yes
minecraft:jungle_pyramidsgcraft:stargate/jungle_roofInsideStructure top0Yes
minecraft:monumentsgcraft:stargate/ocean_shrineInsideStructure16No
minecraft:fortresssgcraft:stargate/nether_chamberInsideStructure4No
minecraft:swamp_hutsgcraft:stargate/swamp_platformBeside, 10 to 29 blocksSurface0Yes
minecraft:igloosgcraft:stargate/snowy_platformBeside, 10 to 29 blocksSurface0Yes

Every default entry has a chance of 25 and a chevron upgrade chance of 25. The inside entries have no foundation. The beside entries have a full stone brick foundation.

Village gates

worldgen.village_gates adds gate plazas to village house pools. A village builds one gate at most.

FieldDefaultMeaning
weight2How often a plaza is chosen against the pool's other pieces (0 to 150); 0 adds none
poolsThe ten pools belowThe plaza template for each pool, by pool ID
tokratrueA Tok'ra stands in front of a village's gate

By default the plains, desert, savanna, snowy and taiga villages get a plaza in both their houses pool and their zombie/houses pool, such as minecraft:village/plains/houses with sgcraft:stargate/village_plains.

Warning: If you write a village_gates object without pools, the pools are empty and villages build no gates. Include every pool you want.

Tok'ra worlds

worldgen.tokra_worlds sets whether Tok'ra stand at generated gates, by world ID. A world set to false has no Tok'ra at its generated gates. A world left out has them wherever its structure settings (the tokra fields above) say.

Remote view

remote_view sets how much of the world around a MALP is streamed to the player watching it.

FieldDefaultMeaning
horizontal_radius32How far out from the camera blocks are sent, in blocks (8 to 128)
vertical_radius24How far above and below the camera blocks are sent, in blocks (8 to 96)
bytes_per_tick49152About how much block data one viewer is sent each tick (4096 to 1048576); a fresh view fills in at this rate

MALP

malp holds the settings for the MALP and its batteries. Energy amounts are in GE. Naquadah gives a battery or a battery charger energy.per_naquadah, the same as a DHD.

FieldDefaultMeaning
battery_capacity12500Most GE a battery holds
power_unit_charge_rate12.5GE a power unit puts into a battery in its slot each tick
charger_charge_rate12.5GE a battery charger puts into its battery each tick
idle_drain0.125GE a MALP uses each tick while someone watches its live feed
drive_drain1.25GE a MALP uses for each block it drives
signal_range256How far a console or tablet reaches a MALP directly, and reaches a gate to relay through, in blocks
linger_ticks600How long a MALP's chunks stay loaded after its driver leaves it, in ticks
console_damage_interruptstrueA player at a MALP console or tablet who takes damage is taken off it
console_spectators8How many players near a console see a feed on its monitor, nearest first, whether or not anyone is at it (0 to 64). Each costs the server a stream of the world around the MALP
spectator_range16How near a console a player must be to see its monitor, in blocks (1 to 64)
tablet_drain0.025GE a MALP tablet uses from its own battery each tick while it shows a live feed

Shields

shields sets the gate shield, the Shield Console and the City Shield Generator. See The shield and City Shield Generator.

FieldDefaultMeaning
gate_energy_per_tick1.0Gate energy a gate's shield uses each tick while it rises or stays raised; may be a fraction
console_range40How far from a Shield Console a gate's ring may be for the console to work its shield, in blocks (1 to 256)
city_energy_per_million_blocks0.333Energy a tick a city shield costs for every million blocks it holds
city_max_radius128The most a city shield reaches out, up or down from its generator, in blocks (up to 256)
city_power_reach6How far from a city shield generator, along each axis, the power units it runs on may stand (1 to 16)
city_keeps_chunks_loadedtrueA raised city shield keeps the chunks under it loaded and running

ZPMs

zpm sets the ZPM, the ZPM console, interface cart and hub, and ZPM chests. See Power and Zero Point Module.

A ZPM holds GE, which gates and city shields draw on as on any other source. The console, cart and hub give no FE themselves. An energy converter against one turns its GE into FE, at energy.bridge_rates.fe_out_per_ge and up to energy.converter_rate a tick.

FieldDefaultMeaning
capacity26843546GE a full ZPM holds
search_range6How far from a gate's base or a city shield generator, along each axis, the ZPM consoles, carts and hubs it draws on may stand, in blocks (1 to 16)
tainted_explosion250How big the explosion is when a ZPM console, cart or hub draws on a tainted ZPM (0 to 1000); 0 turns it off
chest_chance15The chance, in percent, that a generated gate has a chest beside it holding a ZPM (0 to 100)
tainted_chance10The chance, in percent, that a ZPM in such a chest is tainted (0 to 100)

Naquadah Generators

generators sets the Naquadah Generator's fuel and its two marks, as 2.2.0's naquadah-generator section.

FieldDefaultMeaning
naquadah_energy96000GE a piece of naquadah is worth, before the mark's share
ingot_energy384000GE a naquadah alloy ingot is worth
mark_1{"energy_per_tick": 4, "capacity": 20000, "efficiency": 1.0}The Mark I: GE it makes a tick, GE it holds, and the share of its fuel's worth it gets
mark_2{"energy_per_tick": 24, "capacity": 60000, "efficiency": 0.5}The Mark II's

The Zat

zat sets the Zat, as 2.2.0's zat section.

FieldDefaultMeaning
range30How far a shot reaches, in blocks (1 to 256)
cooldown_ticks20Ticks before it fires again
stun_ticks200How long a shot stuns for, and so how long a second shot kills in, in ticks
stun_damage4The harm a stunning shot does (0 to 1000)
second_shot_killstrueWhether a second shot while the target is stunned kills it

Transport rings

rings sets the transport rings, as 2.2.0's rings section, in GE where 2.2.0 used FE. A piece of naquadah burned in a platform gives energy.per_naquadah.

FieldDefaultMeaning
energy_per_use1000GE every transport costs the platform that starts it
energy_per_block1GE it costs on top of that for each block between the two platforms
capacity50000The most GE a platform holds from cables
max_distance2000How far apart two linked platforms may be, in blocks; 0 for no limit

Dialing computers

computers sets the dialing computer, and the power of dialing computers and MALP consoles.

FieldDefaultMeaning
link_range32How far from a dialing computer, in blocks, the base of the gate it dials may be (1 to 64)
chair_reach2How far in front of a dialing computer, in blocks, its office chair may stand (1 to 4)
requires_powertrueWhether dialing computers and MALP consoles need gate energy to run
energy_per_tick0.05How much gate energy a computer uses each tick while it is switched on; it may be a fraction
power_reach6How far from a computer, in blocks along each axis, the power units and ZPM blocks it draws on may stand (1 to 16)
history_size10How many of the addresses last dialed from a dialing computer its screen lists, to dial again (0 to 10, 0 keeps none)

The puddle jumper

jumper sets the cloak generator of the puddle jumper, its crashes and its drones. Energy amounts are in GE, and drains and rates are per tick. Only the server reads these.

FieldDefaultMeaning
generator_capacity2000The most GE a jumper's cloak generator holds (1 or more)
recharge_rate2GE the generator gains each tick while the drive is on and neither the shield nor the cloak runs
shield_drain0.5GE the shield uses each tick while it is up, hit or not
cloak_drain1GE the cloak uses each tick while it is on
hit_cost25GE the shield spends on each point of damage it stops
knockdown_ticks200How long the shield stays down once its energy runs out, in ticks (0 to 72000)
crash_speed0.35How fast a jumper may meet a block, in blocks a tick, before it is hurt
crash_damage40Damage for each block a tick it goes faster than crash_speed, dealt as any other hit
drone_refill_ticks600How long a jumper takes to build each launched drone again, in ticks (0 to 72000); 0 never does

The whole file

Every server setting at its default. You never need to write all of this. Settings at their defaults can be left out.

{
  "energy": {
    "per_naquadah": 96000,
    "power_unit_capacity": 50000,
    "bridge_rates": {
      "fe_in_per_ge": 80,
      "fe_out_per_ge": 80
    },
    "converter_rate": 62.5,
    "free_in_creative": false,
    "dial_costs": {
      "per_chevron": { "enabled": true, "energy": 100 },
      "open": { "enabled": true, "energy": 4000 },
      "per_tick": { "enabled": true, "energy": 1 }
    },
    "multipliers": {
      "distance_factor": 1.0,
      "inter_world": 10.0,
      "other_group": 10.0,
      "supergate": 8.0
    }
  },
  "addresses": {
    "cell_chunks": 8,
    "point_of_origin": "@",
    "groups": {},
    "worlds": {}
  },
  "gates": {
    "chunk_loading_range": 1,
    "kawoosh_breaks_unbreakable": false,
    "owners_break_gates": true,
    "generated_gates_breakable": false,
    "wormholes_jump": true,
    "log_events": false,
    "defaults": {},
    "event_horizon_light": 12
  },
  "tools": {
    "range": 6
  },
  "worldgen": {
    "naquadah_ore": {
      "enable_naquadah_ore": true,
      "gen_under_lava_odds": 1,
      "max_nodes_under_lava": 16,
      "gen_isolated_odds": 1,
      "max_isolated_nodes": 4,
      "worlds": ["*", "!minecraft:the_nether", "!minecraft:the_end"],
      "add_ores_to_existing_worlds": true
    },
    "structure_gates": {
      "minecraft:desert_pyramid": {
        "template": "sgcraft:stargate/pyramid_hall",
        "placement": "inside",
        "ground": "structure",
        "foundation": "none"
      },
      "minecraft:jungle_pyramid": {
        "template": "sgcraft:stargate/jungle_roof",
        "placement": "inside",
        "ground": "structure_top",
        "foundation": "none"
      },
      "minecraft:monument": {
        "template": "sgcraft:stargate/ocean_shrine",
        "placement": "inside",
        "ground": "structure",
        "y_offset": 16,
        "foundation": "none",
        "tokra": false
      },
      "minecraft:fortress": {
        "template": "sgcraft:stargate/nether_chamber",
        "placement": "inside",
        "ground": "structure",
        "y_offset": 4,
        "foundation": "none",
        "tokra": false
      },
      "minecraft:swamp_hut": {
        "template": "sgcraft:stargate/swamp_platform",
        "max_distance": 29
      },
      "minecraft:igloo": {
        "template": "sgcraft:stargate/snowy_platform",
        "max_distance": 29
      }
    },
    "village_gates": {
      "weight": 2,
      "pools": {
        "minecraft:village/plains/houses": "sgcraft:stargate/village_plains",
        "minecraft:village/plains/zombie/houses": "sgcraft:stargate/village_plains",
        "minecraft:village/desert/houses": "sgcraft:stargate/village_desert",
        "minecraft:village/desert/zombie/houses": "sgcraft:stargate/village_desert",
        "minecraft:village/savanna/houses": "sgcraft:stargate/village_savanna",
        "minecraft:village/savanna/zombie/houses": "sgcraft:stargate/village_savanna",
        "minecraft:village/snowy/houses": "sgcraft:stargate/village_snowy",
        "minecraft:village/snowy/zombie/houses": "sgcraft:stargate/village_snowy",
        "minecraft:village/taiga/houses": "sgcraft:stargate/village_taiga",
        "minecraft:village/taiga/zombie/houses": "sgcraft:stargate/village_taiga"
      },
      "tokra": true
    },
    "tokra_worlds": { "minecraft:overworld": true }
  },
  "remote_view": {
    "horizontal_radius": 32,
    "vertical_radius": 24,
    "bytes_per_tick": 49152
  },
  "malp": {
    "battery_capacity": 12500,
    "power_unit_charge_rate": 12.5,
    "charger_charge_rate": 12.5,
    "idle_drain": 0.125,
    "drive_drain": 1.25,
    "signal_range": 256,
    "linger_ticks": 600,
    "console_damage_interrupts": true,
    "console_spectators": 8,
    "spectator_range": 16,
    "tablet_drain": 0.025
  },
  "shields": {
    "gate_energy_per_tick": 1.0,
    "console_range": 40,
    "city_energy_per_million_blocks": 0.333,
    "city_max_radius": 128,
    "city_power_reach": 6,
    "city_keeps_chunks_loaded": true
  },
  "zpm": {
    "capacity": 26843546,
    "search_range": 6,
    "tainted_explosion": 250,
    "chest_chance": 15,
    "tainted_chance": 10
  },
  "computers": {
    "link_range": 32,
    "chair_reach": 2,
    "requires_power": true,
    "energy_per_tick": 0.05,
    "power_reach": 6,
    "history_size": 10
  },
  "generators": {
    "naquadah_energy": 96000,
    "ingot_energy": 384000,
    "mark_1": {
      "energy_per_tick": 4,
      "capacity": 20000,
      "efficiency": 1.0
    },
    "mark_2": {
      "energy_per_tick": 24,
      "capacity": 60000,
      "efficiency": 0.5
    }
  },
  "zat": {
    "range": 30,
    "cooldown_ticks": 20,
    "stun_ticks": 200,
    "stun_damage": 4,
    "second_shot_kills": true
  },
  "rings": {
    "energy_per_use": 1000,
    "energy_per_block": 1,
    "capacity": 50000,
    "max_distance": 2000
  },
  "jumper": {
    "generator_capacity": 2000,
    "recharge_rate": 2,
    "shield_drain": 0.5,
    "cloak_drain": 1,
    "hit_cost": 25,
    "knockdown_ticks": 200,
    "crash_speed": 0.35,
    "crash_damage": 40,
    "drone_refill_ticks": 600
  }
}

The structure gate entries above leave out the fields at their defaults.

Client settings

config/sgcraft-client.json belongs to each player. It changes nothing on the server or for other players. The game reads it as it starts, and the settings screen's Client tab changes it at once.

KeyDefaultMeaning
hd_event_horizontrueDraw the event horizon with its detailed texture; false uses the original's plain one
copy_address_on_openfalseOpening a gate's base screen copies the gate's address to the clipboard
sound_volume1.0How loud SGCraft's sounds play, from 0 (silent) to 1 (full), on top of the game's own volume

Default addresses

config/sgcraft-default-addresses.json lists the addresses every new PDD and gate control tablet starts with. A PDD or tablet takes them the first time it is used. After that, its addresses belong to its holder. The file starts as an empty list.

Each entry has an address, a name, and locked (false unless set). A locked address can be moved in the list but not renamed or removed.

[
  { "address": "ABCD-EFG", "name": "Home", "locked": true },
  { "address": "HIJK-LMN-O", "name": "Outpost" }
]

Use /sgcraft default_addresses to change the list in game. Changes reach PDDs and tablets used for the first time after the change. See Addresses.

Gate properties

Each gate holds its own values for these properties. Every ID starts with sgcraft:. A gate with no value of its own uses the server's gate defaults, and otherwise the default below. "Server" in the default column means the gate uses the server setting named.

Change them with the configurator, with /sgcraft property <id> set <json> (operators), or through the API.

Wormhole and dialing

PropertyDefaultWhat it does
open_ticks6000Ticks the wormhole stays open before it closes on its own; 0 for no limit
chevrons_lock_on_dialfalseDHDs and PDDs dialing out lock every chevron at once
ring_speedSet by the gate's typeHow fast the ring turns, or the light runs round, in degrees a tick (0.1 to 360)
dhd_range6How far from the base, in blocks, a DHD can stand and still link (0 to 32)
lightning_malfunctiontrueA storm can strike the gate as the wormhole opens and send it to another gate
horizon_transparenttrueThe open wormhole lets a little of what is behind it show through
close_from_either_endtrueThe dialed gate can close the wormhole, as well as the dialing gate
address_visibletruePlayers can see the gate's address on the gate

Energy and costs

PropertyDefaultWhat it does
requires_powertrueDialing draws energy; false dials for free
energy_capacity1000How much energy the gate's store holds
dhd_fueltrueNaquadah in linked DHDs powers the gate
energy_per_naquadahServer, energy.per_naquadahEnergy one naquadah gives this gate
chevron_cost_enabledServer, energy.dial_costs.per_chevronThe gate pays a cost as each chevron locks
chevron_costServer, energy.dial_costs.per_chevronEnergy for each chevron, before distance
open_cost_enabledServer, energy.dial_costs.openThe gate pays a cost as the wormhole forms
open_costServer, energy.dial_costs.openEnergy to open, before distance
tick_cost_enabledServer, energy.dial_costs.per_tickThe gate pays a cost each tick the wormhole is open
tick_costServer, energy.dial_costs.per_tickEnergy each tick, before distance
distance_factor_multiplierServer, energy.multipliers.distance_factorHow much more a wormhole costs the further it reaches
inter_world_multiplierServer, energy.multipliers.inter_worldHow many times more a dial with an eighth chevron costs

Travel and safety

PropertyDefaultWhat it does
one_way_traveltrueTravelers only pass from the dialing gate to the dialed gate
reverse_travel_killsfalseA traveler entering the dialed gate's wormhole while travel is one way dies
opening_damagetrueThe kawoosh harms what is in front of the gate
opening_damage_amount5000Harm the kawoosh does each tick
spills_fluidtrueReal fluid moves through the open wormhole
preserve_inventoryfalseA player the gate kills (at a shut iris or entering backwards) keeps what they carry; otherwise it is lost unless keepInventory is on
breach_explosion10Strength of the explosion when the gate is broken while connected, as TNT is 4; 0 for none (0 to 32)
breach_firetrueThe breach explosion sets fires
breach_breaks_blockstrueThe breach explosion breaks blocks

Iris and redstone

PropertyDefaultWhat it does
irisNoneThe fitted iris: "sgcraft:metal" for the metal iris or "sgcraft:shield" for a shield. Setting it fits one, starting open (a shield starts lowered); removing it takes it off
phase_shift_passes_iristrueA traveler carrying a Tollan Phase Shift Device passes the shut iris
iris_restores_statefalseThe iris goes back to how it was before the connection once the wormhole closes
redstone_inputtrueA redstone signal at the base shuts the iris, and the signal ending opens it
redstone_outputtrueThe base gives out a redstone signal while the gate is busy

Access

See Access.

PropertyDefaultWhat it does
allow_incomingtrueOther gates may dial this gate, unless an address rule says otherwise
allow_outgoingtrueThis gate may dial other gates, unless an address rule says otherwise
address_rules{}Rules for single addresses, each { "incoming": <bool>, "outgoing": <bool> }, by address
default_rights["sgcraft:use", "sgcraft:iris"]Rights of players not listed in player_rights (the owner has every right)
player_rights{}Rights of single players, by UUID, in place of default_rights
breakablefalseAny player may break the gate
generatedfalseWorld generation placed the gate

Only the gate's owner, operators and non-player causes can change default_rights, player_rights, breakable and generated. The configure right is not enough for these.

Changing settings in game

These commands change server settings at once and write them to sgcraft-server.json (or to sgcraft-default-addresses.json). All need permission level 2. If the file can't be written, the change lasts until the server stops. See Commands.

SettingCommand
Every setting that is one value, by its key, such as gates.wormholes_jump or zpm.capacity/sgcraft config <key> <value>, or the settings screen
energy.dial_costs, energy.multipliers.inter_world, energy.multipliers.other_group/sgcraft costs
addresses/sgcraft addresses or the settings screen (/sgcraft settings screen), which write the file but take effect when the server next starts
gates.kawoosh_breaks_unbreakable, gates.owners_break_gates, gates.generated_gates_breakable, gates.wormholes_jump/sgcraft settings
gates.defaults/sgcraft gate_defaults
gates.chunk_loading_range/sgcraft chunk_loading_range
gates.event_horizon_light/sgcraft event_horizon_light
gates.log_events/sgcraft log_events
worldgen.tokra_worlds/sgcraft worldgen tokra
worldgen.naquadah_ore/sgcraft ore
malp.console_damage_interrupts, malp.console_spectators, malp.spectator_range, malp.tablet_drain/sgcraft malp ...
shields/sgcraft shields
zpm/sgcraft zpm
computers/sgcraft computers
jumper/sgcraft config jumper.<key> <value>, or the screen's Jumper tab
Default addresses/sgcraft default_addresses

/sgcraft config and the screen also change remote_view and worldgen.village_gates, but those take effect when the server next starts, as both are set up as it starts. The settings that are lists or maps, such as worldgen.structure_gates and other bridges' energy.bridge_rates, need an edit to the file and a restart. /sgcraft worldgen always gives every listed structure a gate until the server stops, but writes nothing to the file.

The settings screen

Open it with /sgcraft settings screen, or from the mod list: on NeoForge, the pause screen's Mods button, then SGCraft and Config; on Fabric, Mod Menu's Config button, if Mod Menu is installed.

Operators see these tabs:

TabWhat it changes
WorldsThe selected world's point of origin, group and cell size, and the point of origin and cell size for every world that has none of its own. See Addresses
GroupsThe groups of worlds
GatesThe gates, tools and computers settings, and remote_view
EnergyThe energy settings and zpm
Shieldsshields
MALPmalp
Jumperjumper
Worldgenworldgen.naquadah_ore and worldgen.village_gates
ClientYour own sgcraft-client.json

Everyone sees the Client tab, even with no world open. The screen holds your changes until you press Save, and Discard drops them. Leaving with changes not saved asks first. A number counts as changed when you press Enter or click away from it. Until you save, the screen shows what your changes would do, and a changed setting's name is aqua. Settings marked * take effect when the server next starts, and a name in yellow has a different value after a restart. Hover over a setting to see what it does and its default. When you save, every other operator with the screen open sees the change. Commands change the file without refreshing anyone's screen.