Disable Wandering Trader
Stop the wandering trader from spawning
✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026Stops the wandering trader (and his two leashed llamas) from periodically appearing near players. Useful when the trader's spawn sounds and wandering llamas disrupt builds or farms. Re-enable any time with true.
/gamerule doTraderSpawning false32 characters
- Java: yes
- Bedrock: no
- Command block: yes
- Needs cheats / OP: yes
How to use
- Open chat (T on Java, / on Bedrock).
- Paste the command and press Enter.
- The wandering trader no longer spawns near players.
- Run it with true to welcome him back.
Related commands
Keep your items when you die instead of dropping them
/gamerule keepInventory trueStop creepers, endermen, and other mobs from changing blocks
/gamerule mobGriefing false