-
Notifications
You must be signed in to change notification settings - Fork 7
Recipe Options
This is NOT implemented publically yet and is currently included in beta v2.0.4.7 and beyond.
This guide explains how to configure conditions for recipes in your plugin.
Conditions allow you to restrict when and where a recipe can be crafted.
There are two types of blocks you can use:
- All rules must pass together for the recipe to work.
- Within each rule, if you provide multiple options, it’s treated as OR.
(Example:world: [world, world_nether]means either world is valid.)
- This is an OR block: if you define multiple condition sets under
conditions_any, only one of them needs to pass. - Think of it like: “at least one of these condition sets must succeed.”
Restrict the recipe to certain worlds.
world: ["world", "world_nether"]Deny specific worlds:
world_deny: ["world_the_end"]Restrict the recipe to certain biomes.
biome: ["plains", "forest"]Deny specific biomes:
biome_deny: ["desert"]Restrict crafting to certain times of day.
Time is measured in Minecraft ticks (0–23999).
-
0= sunrise -
6000= noon -
13000= sunset -
18000= midnight
You can use ranges, and even multiple ranges:
time: ["13000-23000", "0-2000"]Restrict crafting based on weather. Options:
clearrainthunder
Example:
weather: ["clear", "rain"]Restrict crafting based on the current moon phase.
Minecraft has 8 phases, from 0–7:
0 = full_moon1 = waning_gibbous2 = last_quarter3 = waning_crescent4 = new_moon5 = waxing_crescent6 = first_quarter7 = waxing_gibbous
Example:
moon_phase: [0, 4]Require the player to have completed one or more advancements.
If the recipe is used by an automated crafter block, this is skipped.
Example:
advancement: ["story/mine_stone", "story/iron_tools"]conditions:
world: ["world", "world_nether"]
biome: ["plains", "forest"]
time: ["13000-23000", "0-2000"]
weather: ["clear", "rain"]
moon_phase: ["full_moon"]
advancement: ["story/mine_stone"]conditions_any:
- world: ["world"]
time: ["0-2000"]
- world: ["world_nether"]
weather: ["thunder"]This means:
- Either it’s between 0–2000 ticks in
world, - OR it’s thundering in
world_nether.
This guide explains how to configure ItemsLeftover for recipes.
Leftover items are what remain in the crafting grid after a recipe is crafted.
Use the ItemsLeftover section to define which items should remain after crafting.
This is useful for cases like buckets, bottles, or custom ingredients that shouldn’t disappear.
- Can be a Minecraft material name (e.g.,
BUCKET,GLASS_BOTTLE,EMERALD). - Can be a custom ingredient identifier (if you define your own system).
- Use
[]if no leftovers are needed. - Supports multiple items.
ItemsLeftover:
- EMERALDWhen the recipe is crafted, an emerald will remain in the crafting grid.
ItemsLeftover:
- itemsadder:custom_item
- cursed_swordBoth the itemsadder item custom_item and the custom recipe cursed_sword will remain.
ItemsLeftover: []- Use the search box above to quickly jump to a page.
- New here? Start with Home → Configuration → Recipe Options.