SGCraft Wiki

Battery

The Battery stores gate energy (GE) for the MALP and the MALP tablet. You charge it in a power unit, a battery charger or the crafting grid.

Obtaining

Crafting

A new battery is empty.

Redstone Dust
Iron Ingot
Naquadah Alloy Ingot
Iron Ingot
Iron Ingot
Naquadah Alloy Ingot
Iron Ingot
➤
Battery
Battery

Creative tab

The SGCraft creative tab has two batteries: an empty one, and right after it a full one, holding as much as the server's batteries hold.

Usage

Put a charged battery in the battery slot of a MALPMALP (use the MALP with an empty hand) or of a MALP TabletMALP Tablet (sneak and use the tablet in the air). Gates don't use batteries.

A battery shows its charge as a green bar on the item. Its tooltip shows the exact charge as "<held> / <capacity> GE (<percent>%)", such as "6,250 / 12,500 GE (50%)".

Charging

WhereHow fastNotes
A Stargate Power UnitStargate Power Unit's battery slot12.5 GE a tick (power_unit_charge_rate)Takes GE from the unit's store
A Battery ChargerBattery Charger12.5 GE a tick (charger_charge_rate)The charger burns naquadah or takes FE from cables
The crafting gridAt once96,000 GE for each NaquadahNaquadah (energy.per_naquadah), so one piece fills it
Other mods' chargersAs fast as they chargeOn NeoForge it is a NeoForge energy item. On Fabric it is a Team Reborn Energy item. Each 80 FE adds 1 GE

Recharging with naquadah

Battery
Naquadah
Naquadah
➤
Battery
Battery
Shapeless: one battery and any number of naquadah, each adding its charge

Put one battery and any number of naquadah in the crafting grid, in any arrangement. Nothing else may be in the grid. The battery comes out holding 96,000 GE more for each naquadah, up to its capacity, and the naquadah is used up. One naquadah fills an empty battery.

  • A full battery doesn't craft, so no naquadah is lost on it.
  • Energy past the capacity is lost. One naquadah gives far more than a battery holds, so use one piece at a time.
  • Two batteries in the grid don't craft.

Behavior

  • Other mods see a battery's charge as FE, 80 FE for each GE it holds. They can take FE out of a battery as well as put it in.
  • The capacity is the server's battery_capacity setting. If the server lowers it, a battery counts as holding no more than the new capacity.
  • The server sends its capacity to each player as they join and whenever it changes, so the bar and tooltip match it. ZPMs and the Zat's cooldown work the same way.
  • A MALP that is destroyed drops its battery. A MALP you pick up keeps its battery in the item.

Data components

ComponentWhat it holds
sgcraft:energyThe GE the battery holds. A battery without it holds none

Commands

These need permission level 2.

  • /sgcraft battery shows the charge of the battery in your main hand: "Your battery holds <held> of <capacity> GE".
  • /sgcraft battery set <ge> sets it in GE, kept within the capacity.
  • /sgcraft malp battery <malp> <ge> sets the charge of a MALP's battery in GE, giving it one if it has none. It replies "<malp>'s battery holds <held> of <capacity> GE".

Server admins

The battery settings are in the malp section of config/sgcraft-server.json, except what naquadah gives, which is energy.per_naquadah:

SettingDefaultWhat it does
malp.battery_capacity12500GE a battery holds
malp.power_unit_charge_rate12.5GE a tick a power unit puts into its battery
malp.charger_charge_rate12.5GE a tick a battery charger puts into its battery
energy.per_naquadah96000GE one naquadah gives a battery, crafted in or burned in a charger, the same as it gives a gate

See also