promotional bannermobile promotional banner
premium banner
It lets KubeJS register Tetra materials, schematics, modules, and improvements

Description

This file is placed in kubejs/server_scripts, so you need to use hp_TetraDataEvents.queue(…). queue(…) stages the Tetra data from this script and injects it on the next /reload. The easiest workflow is: /hp_tetra_data_kubejs apply

About this mod:

  1. It lets KubeJS register Tetra materials, schematics, modules, and improvements (that is: materials, schematics, modules, improvements).
  2. It provides a lot of completions, including effects, schematics, improvements, slots, etc. That is also what I think is the biggest highlight of this mod.

This example contains 5 core parts:

  1. material: register a custom Tetra material
  2. improvement: register a custom Tetra improvement
  3. module: register a custom Tetra module
  4. schematic: register two schematic examples
    • one for installing a custom module
    • one for applying a custom improvement to that module

If you are not already familiar with how Tetra normally registers materials, schematics, modules, and improvements through datapacks, I recommend learning that first.

image

image

image

image