Energy System¶
Energy (Hc) is the fuel required for Generators to function. It is produced by Energy Producers and stored in the player's Energy Capacitor.
- Source File:
server_configs/tycoon/plugins/Skript/scripts/energy.sk - Command:
/energy - Storage Variable:
{playerdata::%uuid%::energy}
Energy Producers¶
Energy Producers are special blocks (Player Heads) that passively generate energy when placed on your island.
Mechanics¶
- Production Loop: Runs every 2 seconds.
- Formula:
(ID * 0.1) * 2Energy per tick. - Requirement: Player must be online and within 62 blocks of the producer.
- Star Engine Module: If equipped, gives 12% chance to boost production by 1.5x.
Slot System¶
Players have a limit on how many producers they can place.
- Variable: {playerdata::%uuid%::EusedSlots}
- Default Max: 5 slots
- Max: Upgradable/Donator perk.
NBT Data¶
Producers use specific NBT tags to track identity and ownership:
- custom;hcp: Producer Type ID.
- custom;eneOwner: UUID of the owner.
Energy Capacitor¶
The Capacitor acts as the battery for the island.
- Initial Capacity: 100 Energy.
- Upgrade Command:
/energyupgrade(requires player to be on their island).
Upgrade Formula¶
Capacitor upgrades increase max storage by 100 per level. Cost formula:
Example: Level 1 -> 2 costs 10,000 Credits.Commands¶
/energy- Open Energy Management GUI./energyupgrade- Upgrade capacitor level./enelist <player>- List location of all placed producers./recountenergyproducers- Fix "Slot Full" bugs by recounting placed blocks.