Updated:
Require recipe for crafting game rule (limited_crafting)
The "Require recipe for crafting" rule is called limited_crafting in Java 1.21.11 and later, and doLimitedCrafting in 1.21.10 and earlier. Controls whether players can only craft recipes they have unlocked.
Basic data
| Name | Require recipe for crafting |
|---|---|
| Rule name (Java 1.21.11+) | limited_crafting |
| Old name (Java 1.21.10 and earlier) | doLimitedCrafting |
| Bedrock name | No rule with the same name |
| Value type | true / false |
| Default | false |
Commands you can copy
Turn on (true)
/gamerule limited_crafting trueReset to the default (false)
/gamerule limited_crafting falseCheck the current value
/gamerule limited_craftingJava 1.21.10 and earlier
/gamerule doLimitedCrafting trueNotes
- Java 1.21.11 renamed game rules to lower case with underscores. If an older command or a map description uses the old name, rewrite it for your version.
- Game rules are saved per world. On a server, a new world starts with the default values again.
Questions
Typing doLimitedCrafting gives an error
In Java 1.21.11 and later the rule is called limited_crafting. Write /gamerule limited_crafting … instead. Worlds on 1.21.10 and earlier keep the old name.
How do I check the current value?
Run /gamerule limited_crafting without a value. The current value is shown in chat.