
RandomJS
Added a new category of block presets to KubeJS, allowing players to set custom survival rules for created blocks.
About this Mod
Added a new category of block presets to KubeJS, allowing players to set custom survival rules for created blocks. (More features coming soon)
Currently added kinds:
- Determination of the bottom block
- Determination of whether the immediate neighboring faces are complete or not
The full list of methods is below:
- customSurviveRule( Json ) (use json to customize the survival rule)
- surviveType( String ) (select a preset rule for surviving blocks, see below for details)
- catchAllDirection( Boolean ) (enable full face all match mode)
Optional json statement:
- "setFaceSturdy" : String[]
- (set a list of directions, make the blocks detect if the neighboring faces of the directions in the list are all faces, if any direction meets the condition, all matches need to enable all-face-match mode)
- (optional values: "up" "down" "east" "west" "south" "north")
- "setBelowBlock" : String[]
- (set a list of blocks so that blocks must be placed on the blocks in the list)
- (optional: full block id, e.g. "minecraft:stone", no way to match blockstate yet because it's not done yet)
Future plans:
- More survival rules with preset types
- Custom HUD
- Custom GUI
Usage examples:
StartupEvents.registry ("block", e=> {
e.create ("block_name", "super_block")
.surviveType ("custom")
.customSurviveRule (
{
"setFaceSturdy" : ["up", "down"],
"setBelowBlock" : ["minecraft:stone", "minecraft:oak_log", "minecraft:campfire"]
})
.catchAllDirection (false)
})
Available Versions
How to Install RandomJS on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set forge Loader
In the panel under "Egg", select the forge loader and matching Minecraft version (1.20.4).
Install Mod
Open the mod browser in the dashboard and search for "RandomJS". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.20.4, 1.20.3, 1.20.2 (+1 more)
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
RandomJS server crashes on startup – what to do?
Most common cause: wrong forge version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.20.4). You can switch loaders with one click in the panel.
Is RandomJS compatible with forge?
RandomJS officially supports forge for Minecraft 1.20.4, 1.20.3, 1.20.2. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with RandomJS – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if RandomJS consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Rent Modded Server
Install RandomJS with just one click on your server.