Skip to content

Ability to use biome tags for biome conditions for custom recipes #4412

@chloecat34

Description

@chloecat34

Cross-mod Integration

No response

Minecraft Version

1.20.1 Forge

Feature Description

I want to be able to make recipes only run if the current biome matches a biome tag. Right now, you can only match for biome IDs, but in this case I want to make a recipe that works in any biome with the #minecraft:is_ocean tag. If I put the tag in with the "#" symbol, it produces this error: Could not create ID from '#minecraft:is_ocean'!: Non [a-z0-9_.-] character in namespace of location: #minecraft:is_ocean. If I don't use the symbol, it takes it as a literal biome called "is_ocean" which does not exist.

Here is my recipe code:

    event.recipes.gtceu
        .fluid_drilling(`salt_water_drilling`)
        .notConsumable("immersiveengineering:fluid_pump")
        .outputFluids("kubejs:salt_water 500")
        .dimension("minecraft:overworld")
        .biome("minecraft:is_ocean")
        .duration(10)
        .EUt(128);

Metadata

Metadata

Assignees

No one assigned

    Labels

    1.20.1type: featureNew feature or request bundled for a 0.X.0 Update

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions