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
| File | Who it is for | What it holds |
|---|---|---|
config/sgcraft-server.json | The server | Energy, costs, worldgen, gate defaults, the MALP, ZPMs and the rest |
config/sgcraft-client.json | Each player | How SGCraft looks and sounds for that player |
config/sgcraft-default-addresses.json | The server | The 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.
| Key | Default | Meaning |
|---|---|---|
per_naquadah | 96000 | Gate energy (GE) one naquadah gives, burned in a DHD, crafted into a battery or burned in a battery charger |
power_unit_capacity | 50000 | Most 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_rate | 62.5 | The most GE an energy converter turns into FE each tick; 62.5 is 5,000 FE at the default out rate |
free_in_creative | false | Players in creative mode dial without energy |
dial_costs | See Dial costs | What a wormhole costs the gate that dials it, before distance |
multipliers | See Multipliers | How 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.
| Key | Default | When 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
| Key | Default | Meaning |
|---|---|---|
distance_factor | 1.0 | How much more a wormhole costs the further it reaches; 0 makes distance cost nothing extra |
inter_world | 10.0 | How many times more a dial with an eighth chevron costs, to another world of the group |
other_group | 10.0 | How many times more again a dial with a ninth chevron costs, to another group of worlds; 100 times the base by default |
supergate | 8.0 | How 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.
| Key | Default | Meaning |
|---|---|---|
cell_chunks | 8 | How 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_layout | false | Whether 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.
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
| Key | Default | Meaning |
|---|---|---|
chunk_loading_range | 1 | Chunks around a busy gate's own that stay loaded, from 0 to 8 |
event_horizon_light | 12 | How 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_unbreakable | false | A kawoosh also clears blocks that can't be broken, such as bedrock |
owners_break_gates | true | A gate's owner may break it whatever its breakable property says |
generated_gates_breakable | false | Players may break generated gates that have no breakable value of their own |
wormholes_jump | true | When the gate an open wormhole reaches breaks, the wormhole jumps to another gate in the same address cell. See Wormhole jumps |
log_events | false | Gates 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:iriswith"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:chevronswith7,8or9sets 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
| Key | Default | Meaning |
|---|---|---|
range | 6 | How 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.
| Key | Default | Meaning |
|---|---|---|
naquadah_ore | See Naquadah ore | How naquadah ore generates |
structure_gates | See Structure gates | The structures that get a gate, and how |
village_gates | See Village gates | The 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.
| Field | Default | Meaning |
|---|---|---|
enable_naquadah_ore | true | Naquadah ore generates at all |
gen_under_lava_odds | 1 | One chunk in this many gets clusters under lava; 0 gives none |
max_nodes_under_lava | 16 | Most columns of a chunk searched for lava, each giving a cluster where lava rests on a solid block |
gen_isolated_odds | 1 | One chunk in this many gets nodes away from lava; 0 gives none |
max_isolated_nodes | 4 | Most 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_worlds | true | Chunks 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:
| Field | Default | Meaning |
|---|---|---|
template | Required | The structure template the gate and its surroundings are built from |
chance | 25 | How 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_distance | 10 | Beside: fewest blocks from the first piece, along each axis (0 to 96) |
max_distance | 30 | Beside: 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_offset | 0 | Blocks 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_block | stone_bricks | The block state a foundation is built of |
chevron_upgrade_chance | 25 | How many gates in a hundred have 9 chevrons in place of 7 (0 to 100) |
tokra | true | A Tok'ra stands in front of the gate once it is built |
The default list:
| Structure | Template | Placement | Ground | y_offset | Tok'ra |
|---|---|---|---|---|---|
minecraft:desert_pyramid | sgcraft:stargate/pyramid_hall | Inside | Structure | 0 | Yes |
minecraft:jungle_pyramid | sgcraft:stargate/jungle_roof | Inside | Structure top | 0 | Yes |
minecraft:monument | sgcraft:stargate/ocean_shrine | Inside | Structure | 16 | No |
minecraft:fortress | sgcraft:stargate/nether_chamber | Inside | Structure | 4 | No |
minecraft:swamp_hut | sgcraft:stargate/swamp_platform | Beside, 10 to 29 blocks | Surface | 0 | Yes |
minecraft:igloo | sgcraft:stargate/snowy_platform | Beside, 10 to 29 blocks | Surface | 0 | Yes |
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.
| Field | Default | Meaning |
|---|---|---|
weight | 2 | How often a plaza is chosen against the pool's other pieces (0 to 150); 0 adds none |
pools | The ten pools below | The plaza template for each pool, by pool ID |
tokra | true | A 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.
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.
| Field | Default | Meaning |
|---|---|---|
horizontal_radius | 32 | How far out from the camera blocks are sent, in blocks (8 to 128) |
vertical_radius | 24 | How far above and below the camera blocks are sent, in blocks (8 to 96) |
bytes_per_tick | 49152 | About 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.
| Field | Default | Meaning |
|---|---|---|
battery_capacity | 12500 | Most GE a battery holds |
power_unit_charge_rate | 12.5 | GE a power unit puts into a battery in its slot each tick |
charger_charge_rate | 12.5 | GE a battery charger puts into its battery each tick |
idle_drain | 0.125 | GE a MALP uses each tick while someone watches its live feed |
drive_drain | 1.25 | GE a MALP uses for each block it drives |
signal_range | 256 | How far a console or tablet reaches a MALP directly, and reaches a gate to relay through, in blocks |
linger_ticks | 600 | How long a MALP's chunks stay loaded after its driver leaves it, in ticks |
console_damage_interrupts | true | A player at a MALP console or tablet who takes damage is taken off it |
console_spectators | 8 | How 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_range | 16 | How near a console a player must be to see its monitor, in blocks (1 to 64) |
tablet_drain | 0.025 | GE 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.
| Field | Default | Meaning |
|---|---|---|
gate_energy_per_tick | 1.0 | Gate energy a gate's shield uses each tick while it rises or stays raised; may be a fraction |
console_range | 40 | How 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_blocks | 0.333 | Energy a tick a city shield costs for every million blocks it holds |
city_max_radius | 128 | The most a city shield reaches out, up or down from its generator, in blocks (up to 256) |
city_power_reach | 6 | How far from a city shield generator, along each axis, the power units it runs on may stand (1 to 16) |
city_keeps_chunks_loaded | true | A 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.
| Field | Default | Meaning |
|---|---|---|
capacity | 26843546 | GE a full ZPM holds |
search_range | 6 | How 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_explosion | 250 | How big the explosion is when a ZPM console, cart or hub draws on a tainted ZPM (0 to 1000); 0 turns it off |
chest_chance | 15 | The chance, in percent, that a generated gate has a chest beside it holding a ZPM (0 to 100) |
tainted_chance | 10 | The 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.
| Field | Default | Meaning |
|---|---|---|
naquadah_energy | 96000 | GE a piece of naquadah is worth, before the mark's share |
ingot_energy | 384000 | GE 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.
| Field | Default | Meaning |
|---|---|---|
range | 30 | How far a shot reaches, in blocks (1 to 256) |
cooldown_ticks | 20 | Ticks before it fires again |
stun_ticks | 200 | How long a shot stuns for, and so how long a second shot kills in, in ticks |
stun_damage | 4 | The harm a stunning shot does (0 to 1000) |
second_shot_kills | true | Whether 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.
| Field | Default | Meaning |
|---|---|---|
energy_per_use | 1000 | GE every transport costs the platform that starts it |
energy_per_block | 1 | GE it costs on top of that for each block between the two platforms |
capacity | 50000 | The most GE a platform holds from cables |
max_distance | 2000 | How 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.
| Field | Default | Meaning |
|---|---|---|
link_range | 32 | How far from a dialing computer, in blocks, the base of the gate it dials may be (1 to 64) |
chair_reach | 2 | How far in front of a dialing computer, in blocks, its office chair may stand (1 to 4) |
requires_power | true | Whether dialing computers and MALP consoles need gate energy to run |
energy_per_tick | 0.05 | How much gate energy a computer uses each tick while it is switched on; it may be a fraction |
power_reach | 6 | How far from a computer, in blocks along each axis, the power units and ZPM blocks it draws on may stand (1 to 16) |
history_size | 10 | How 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.
| Field | Default | Meaning |
|---|---|---|
generator_capacity | 2000 | The most GE a jumper's cloak generator holds (1 or more) |
recharge_rate | 2 | GE the generator gains each tick while the drive is on and neither the shield nor the cloak runs |
shield_drain | 0.5 | GE the shield uses each tick while it is up, hit or not |
cloak_drain | 1 | GE the cloak uses each tick while it is on |
hit_cost | 25 | GE the shield spends on each point of damage it stops |
knockdown_ticks | 200 | How long the shield stays down once its energy runs out, in ticks (0 to 72000) |
crash_speed | 0.35 | How fast a jumper may meet a block, in blocks a tick, before it is hurt |
crash_damage | 40 | Damage for each block a tick it goes faster than crash_speed, dealt as any other hit |
drone_refill_ticks | 600 | How 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.
| Key | Default | Meaning |
|---|---|---|
hd_event_horizon | true | Draw the event horizon with its detailed texture; false uses the original's plain one |
copy_address_on_open | false | Opening a gate's base screen copies the gate's address to the clipboard |
sound_volume | 1.0 | How 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
| Property | Default | What it does |
|---|---|---|
open_ticks | 6000 | Ticks the wormhole stays open before it closes on its own; 0 for no limit |
chevrons_lock_on_dial | false | DHDs and PDDs dialing out lock every chevron at once |
ring_speed | Set by the gate's type | How fast the ring turns, or the light runs round, in degrees a tick (0.1 to 360) |
dhd_range | 6 | How far from the base, in blocks, a DHD can stand and still link (0 to 32) |
lightning_malfunction | true | A storm can strike the gate as the wormhole opens and send it to another gate |
horizon_transparent | true | The open wormhole lets a little of what is behind it show through |
close_from_either_end | true | The dialed gate can close the wormhole, as well as the dialing gate |
address_visible | true | Players can see the gate's address on the gate |
Energy and costs
| Property | Default | What it does |
|---|---|---|
requires_power | true | Dialing draws energy; false dials for free |
energy_capacity | 1000 | How much energy the gate's store holds |
dhd_fuel | true | Naquadah in linked DHDs powers the gate |
energy_per_naquadah | Server, energy.per_naquadah | Energy one naquadah gives this gate |
chevron_cost_enabled | Server, energy.dial_costs.per_chevron | The gate pays a cost as each chevron locks |
chevron_cost | Server, energy.dial_costs.per_chevron | Energy for each chevron, before distance |
open_cost_enabled | Server, energy.dial_costs.open | The gate pays a cost as the wormhole forms |
open_cost | Server, energy.dial_costs.open | Energy to open, before distance |
tick_cost_enabled | Server, energy.dial_costs.per_tick | The gate pays a cost each tick the wormhole is open |
tick_cost | Server, energy.dial_costs.per_tick | Energy each tick, before distance |
distance_factor_multiplier | Server, energy.multipliers.distance_factor | How much more a wormhole costs the further it reaches |
inter_world_multiplier | Server, energy.multipliers.inter_world | How many times more a dial with an eighth chevron costs |
Travel and safety
| Property | Default | What it does |
|---|---|---|
one_way_travel | true | Travelers only pass from the dialing gate to the dialed gate |
reverse_travel_kills | false | A traveler entering the dialed gate's wormhole while travel is one way dies |
opening_damage | true | The kawoosh harms what is in front of the gate |
opening_damage_amount | 5000 | Harm the kawoosh does each tick |
spills_fluid | true | Real fluid moves through the open wormhole |
preserve_inventory | false | A player the gate kills (at a shut iris or entering backwards) keeps what they carry; otherwise it is lost unless keepInventory is on |
breach_explosion | 10 | Strength of the explosion when the gate is broken while connected, as TNT is 4; 0 for none (0 to 32) |
breach_fire | true | The breach explosion sets fires |
breach_breaks_blocks | true | The breach explosion breaks blocks |
Iris and redstone
| Property | Default | What it does |
|---|---|---|
iris | None | The 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_iris | true | A traveler carrying a Tollan Phase Shift Device passes the shut iris |
iris_restores_state | false | The iris goes back to how it was before the connection once the wormhole closes |
redstone_input | true | A redstone signal at the base shuts the iris, and the signal ending opens it |
redstone_output | true | The base gives out a redstone signal while the gate is busy |
Access
See Access.
| Property | Default | What it does |
|---|---|---|
allow_incoming | true | Other gates may dial this gate, unless an address rule says otherwise |
allow_outgoing | true | This 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 |
breakable | false | Any player may break the gate |
generated | false | World 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.
| Setting | Command |
|---|---|
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:
| Tab | What it changes |
|---|---|
| Worlds | The 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 |
| Groups | The groups of worlds |
| Gates | The gates, tools and computers settings, and remote_view |
| Energy | The energy settings and zpm |
| Shields | shields |
| MALP | malp |
| Jumper | jumper |
| Worldgen | worldgen.naquadah_ore and worldgen.village_gates |
| Client | Your 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.