WorldJS

Quick rating

Community listing page, reviews here may not be monitored by the author.

WorldJS

By NotEnoughMailOwner

No reviews yet

KubeJS addon for changing world generation features

Mod Loaders
Minecraft

About

Description

World generation integration for KubeJS. Allows for the addition of configured features, placed features, and biome modifiers using KubeJS's ServerEvents.registry

Supports:

  • All vanilla configured feature types (+ a WorldJS custom type)
  • All vanilla placement modifier types (+ placed features)
  • All NeoForge biome modifiers

Additionally, support for other placement modifier types can be added with the provided PlacedFeatureModifierEvent

Example

ServerEvents.registry('worldgen/configured_feature', event => {
    event.create('delta_feature', 'delta_feature')
        .size([11, 15])
        .rimSize([1, 3])
        .rim('minecraft:calcite')
        .contents('minecraft:lava')
        .withPlacement('minecraft:delta', p => { // Overwrite the vanilla placed feature
            p.modifiers(modifiers => {
                let { minecraft } = modifiers
                minecraft
                    .countOnEveryLayer(40)
                    .biome()
            })
        })
})

image

World generation integration for KubeJS. Allows for the addition of configured features, placed features, and biome modifiers using KubeJS's ServerEvents.registry

Supports:

  • All vanilla configured feature types (+ a WorldJS custom type)
  • All vanilla placement modifier types (+ placed features)
  • All NeoForge biome modifiers

Additionally, support for other placement modifier types can be added with the provided PlacedFeatureModifierEvent

Example

ServerEvents.registry('worldgen/configured_feature', event => {
    event.create('delta_feature', 'delta_feature')
        .size([11, 15])
        .rimSize([1, 3])
        .rim('minecraft:calcite')
        .contents('minecraft:lava')
        .withPlacement('minecraft:delta', p => { // Overwrite the vanilla placed feature
            p.modifiers(modifiers => {
                let { minecraft } = modifiers
                minecraft
                    .countOnEveryLayer(40)
                    .biome()
            })
        })
})

A basalt delta with the calcite delta feature from the example