KubeJS

KubeJS

69M Downloads

WorldgenEvents.remove printFeatures only outputs minecraft:the_void

jc776 opened this issue ยท 0 comments

commented

Minecraft Version

1.19

KubeJS Version

1902.6.0-build.101

Rhino Version

1902.2.1-build.242

Architectury Version

6.3.49

Forge/Fabric Version

Forge 43.1.47

Describe your issue

With the following in startup_scripts/worldgen.js:

WorldgenEvents.remove(event => {
    console.log("KJS Worldgen removals")
    event.printFeatures()
    event.printFiltered()
    event.printFeatures('lakes')
    event.printFeatures('lakes',{id: "minecraft:plains"})
    event.printFeatures('lakes',"minecraft:plains")
    event.printFeatures('',"minecraft:plains")
})

console.log("KJS Worldgen event registered")

The first 3 each only output the features for 'Optional[minecraft:the_void]' then stop - I expected this to be "always true"/un-filtered so it should output those features for all biomes.
The 3 with 'plains' do not output anything. Is this the correct way of making a 'BiomeFilter'? There were no errors seen around the two console logs or the 'void' output. This uses the syntax from the old worldgen event here.

[30Oct2022 14:13:46.108] [Server thread/INFO] [KubeJS Startup/]: Features with type 'raw_generation' in biome 'Optional[minecraft:the_void]':
[30Oct2022 14:13:46.108] [Server thread/INFO] [KubeJS Startup/]: Features with type 'lakes' in biome 'Optional[minecraft:the_void]':
[30Oct2022 14:13:46.108] [Server thread/INFO] [KubeJS Startup/]: Features with type 'local_modifications' in biome 'Optional[minecraft:the_void]':
[30Oct2022 14:13:46.108] [Server thread/INFO] [KubeJS Startup/]: Features with type 'underground_structures' in biome 'Optional[minecraft:the_void]':
[30Oct2022 14:13:46.108] [Server thread/INFO] [KubeJS Startup/]: Features with type 'surface_structures' in biome 'Optional[minecraft:the_void]':
[30Oct2022 14:13:46.108] [Server thread/INFO] [KubeJS Startup/]: Features with type 'strongholds' in biome 'Optional[minecraft:the_void]':
[30Oct2022 14:13:46.108] [Server thread/INFO] [KubeJS Startup/]: Features with type 'underground_ores' in biome 'Optional[minecraft:the_void]':
[30Oct2022 14:13:46.108] [Server thread/INFO] [KubeJS Startup/]: - 5 features with unknown id
[30Oct2022 14:13:46.108] [Server thread/INFO] [KubeJS Startup/]: Features with type 'underground_decoration' in biome 'Optional[minecraft:the_void]':
[30Oct2022 14:13:46.108] [Server thread/INFO] [KubeJS Startup/]: Features with type 'fluid_springs' in biome 'Optional[minecraft:the_void]':
[30Oct2022 14:13:46.108] [Server thread/INFO] [KubeJS Startup/]: Features with type 'vegetal_decoration' in biome 'Optional[minecraft:the_void]':
[30Oct2022 14:13:46.109] [Server thread/INFO] [KubeJS Startup/]: Features with type 'top_layer_modification' in biome 'Optional[minecraft:the_void]':
[30Oct2022 14:13:46.109] [Server thread/INFO] [KubeJS Startup/]: - ResourceKey[minecraft:worldgen/placed_feature / minecraft:void_start_platform]
[30Oct2022 14:13:46.109] [Server thread/INFO] [KubeJS Startup/]: Features with type 'lakes' in biome 'Optional[minecraft:the_void]':
[30Oct2022 14:13:46.109] [Server thread/INFO] [KubeJS Startup/]: Features with type 'raw_generation' in biome 'Optional[minecraft:the_void]':
[30Oct2022 14:13:46.109] [Server thread/INFO] [KubeJS Startup/]: Features with type 'lakes' in biome 'Optional[minecraft:the_void]':
[30Oct2022 14:13:46.109] [Server thread/INFO] [KubeJS Startup/]: Features with type 'local_modifications' in biome 'Optional[minecraft:the_void]':
[30Oct2022 14:13:46.109] [Server thread/INFO] [KubeJS Startup/]: Features with type 'underground_structures' in biome 'Optional[minecraft:the_void]':
[30Oct2022 14:13:46.109] [Server thread/INFO] [KubeJS Startup/]: Features with type 'surface_structures' in biome 'Optional[minecraft:the_void]':
[30Oct2022 14:13:46.109] [Server thread/INFO] [KubeJS Startup/]: Features with type 'strongholds' in biome 'Optional[minecraft:the_void]':
[30Oct2022 14:13:46.109] [Server thread/INFO] [KubeJS Startup/]: Features with type 'underground_ores' in biome 'Optional[minecraft:the_void]':
[30Oct2022 14:13:46.109] [Server thread/INFO] [KubeJS Startup/]: - 5 features with unknown id
[30Oct2022 14:13:46.109] [Server thread/INFO] [KubeJS Startup/]: Features with type 'underground_decoration' in biome 'Optional[minecraft:the_void]':
[30Oct2022 14:13:46.109] [Server thread/INFO] [KubeJS Startup/]: Features with type 'fluid_springs' in biome 'Optional[minecraft:the_void]':
[30Oct2022 14:13:46.109] [Server thread/INFO] [KubeJS Startup/]: Features with type 'vegetal_decoration' in biome 'Optional[minecraft:the_void]':
[30Oct2022 14:13:46.109] [Server thread/INFO] [KubeJS Startup/]: Features with type 'top_layer_modification' in biome 'Optional[minecraft:the_void]':
[30Oct2022 14:13:46.109] [Server thread/INFO] [KubeJS Startup/]: - ResourceKey[minecraft:worldgen/placed_feature / minecraft:void_start_platform]
[30Oct2022 14:13:46.119] [Server thread/INFO] [configured/]: Loading server configs...
[30Oct2022 14:13:56.226] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Preparing start region for dimension minecraft:overworld

Crash report/logs

No response