Feature Recycler

Feature Recycler

Mod

A simple mod that prevents crashes between world generation mods caused by Minecraft's Feature Cycler.

Server UtilityWorld Generation

397 downloads
9 followers
Follow Save
90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!

What does this mod do?

Fixes the "Feature order cycle" error when mods add placed features in different orders between their biomes. It does this by automatically recycling(resorting) their biome features to respect the rules set by a previous biome containing the same 2 elements.

It will now also silently log and tell you which features may have conflicted between which mods and how many crashes were prevented: [01:55:31] [Worker-Main-11/INFO]: Starting feature recycler... [01:55:32] [Worker-Main-11/WARN]: Moved placed feature "minecraft:flower_default" from index 2 to index 4 for biome "biomeswevegone:sakura_grove". Placed Feature index rules set by biome "wythers:sakura_forest". [01:55:32] [Worker-Main-11/WARN]: Moved placed feature "minecraft:flower_cherry" from index 4 to index 2 for biome "biomeswevegone:sakura_grove". Placed Feature index rules set by biome "wythers:sakura_forest". [01:55:32] [Worker-Main-11/WARN]: Just prevented a crash between biomeswevegone and wythers! Please report the issues to their respective issue trackers. [01:55:32] [Worker-Main-11/INFO]: Finished recycling features. Took 192ms [01:55:32] [Worker-Main-11/INFO]: Feature Recycler just prevented 1 crashes!

What is the Feature Order Cycle error?

The error looks similar to this:

java.lang.IllegalStateException: Feature order cycle found, involved sources: [Reference{ResourceKey[minecraft:worldgen/biome / wythers:sakura_forest]=net.minecraft.class_1959@3fddd9c5}, Reference{ResourceKey[minecraft:worldgen/biome / biomeswevegone:sakura_grove]=net.minecraft.class_1959@337bfcbf}]

or with Cyanide:

com.alcatrazescapee.cyanide.codec.FeatureCycleDetector$FeatureCycleException: A feature cycle was found.

Cycle: At step 9 Feature 'minecraft:patch_melon_sparse' must be before 'biomeswevegone:oak_bushes' (defined in 'biomeswevegone:fragment_jungle' at index 8, 9) must be before 'biomeswevegone:mushrooms' (defined in 'biomeswevegone:pumpkin_valley' at index 8, 14 and 8 others) must be before 'minecraft:seagrass_normal' (defined in 'biomeswevegone:crag_gardens' at index 11, 12) must be before 'minecraft:sea_pickle' (defined in 'biomeswevegone:lush_stacks' at index 10, 11) must be before 'minecraft:patch_melon_sparse' (defined in 'minecraft:warm_ocean' at index 11, 12)


Project members

CorgiTaco

Member

Details

Licensed ARR
Published a month ago
Updated a month ago