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

NameRequire recipe for crafting
Rule name (Java 1.21.11+)limited_crafting
Old name (Java 1.21.10 and earlier)doLimitedCrafting
Bedrock nameNo rule with the same name
Value typetrue / false
Defaultfalse

Commands you can copy

Turn on (true)

/gamerule limited_crafting true

Reset to the default (false)

/gamerule limited_crafting false

Check the current value

/gamerule limited_crafting

Java 1.21.10 and earlier

/gamerule doLimitedCrafting true

Notes

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.

Other game rules