when using the /difficulty command in single player the difficulty is not changed accordingly.
Steps to reproduce:
1. open world
2. in the game's menu set difficulty to peaceful
3. in the command box, type "/difficulty easy"
4. try to spawn a monster with a mob egg
the mob will appear and disappear, as it would in peaceful difficulty.
Linked issues
duplicates 1
Attachments
Comments 4
Migrated attachment from MC-45249.
Alternative way of reproducing this issue:
Create a new world (not sure if necessary...)
Make sure the world difficulty is set to "normal"
Spawn in some mobs using /summon or do /time set 18000
Type /difficulty 0
Mobs won't despawn!
I don't think that's intended.
Commands that don't affect singleplayer usually aren't usable either.
Confirmed. May be intended.