Back to 9Minecraft
Wiki 9Minecraft Wiki 9Minecraft
Gatewaysjs Mod Wiki

Gatewaysjs Mod Wiki & Guide

wiki.9minecraft.net/gatewaysjs-mod/

Adds gateway structures or portals that enable travel or access to new dimensions or areas.

Guides

Step-by-step, in-game.

Frequently asked questions

How do I start making a custom gateway?
Create a new KubeJS script file in your `kubejs/server_scripts/` folder, then use `GatewaysJS.registerGateway()` to define your gateway with a unique ID, custom pearl appearance, wave configurations, and event listeners. You can reference the Custom Gateway Pearl guide for the full structure and available properties.
What's the difference between gateway events and how do I use them?
Gateway events fire at different stages: `onOpen` (gateway created), `onStart` (wave begins), `onWaveEnd` (wave cleared), `onMobSpawn` (each mob appears), and `onFail` (arena lost). Attach listeners to each event in your script to trigger custom actions like spawning items, playing sounds, or modifying the boss bar.
Can I apply potion effects to mobs in my waves?
Yes, use the Entity Modifiers system in your wave configuration to add potion effects, custom equipment, NBT data, and stat multipliers to spawned mobs. You can apply these modifiers per-wave or per-mob-type to create difficulty scaling and unique boss mechanics.
How do I give players rewards when they complete a gateway?
Set up a Dynamic Reward Pool by defining loot tables in your gateway script, then trigger them in the `onWaveEnd` event listener to drop items when players clear waves. You can randomize rewards or give specific loot based on wave difficulty.

See all 10 Gatewaysjs questions ›