
Doesn't work.
MagmaSlime123 opened this issue ยท 6 comments
What MC version and mod version are you even using? Neither of those versions make any sense.
And what do you mean by If this is dead, please remove it.
?
The commands you add in the config should not have the slash. I don't remember if it's stripped away, it probably is. A /say
command will not print you anything from a post world loading command, because the player has not joined the server yet when it gets sent. You may be able to see it in the game console, but not in chat.
Doing a quick test, these do seem to work for me, I get this in the console after logging in to a test world:
[09:41:49] [Server thread/INFO] [minecraft/MinecraftServer]: Preparing start region for level 0
[09:41:49] [Server thread/INFO] [minecraft/MinecraftServer]: [WorldPrimer] Test 123
[09:41:49] [Server thread/INFO] [minecraft/MinecraftServer]: [WorldPrimer: Set game difficulty to Peaceful]
I've tried using "say Hi" to test if these were working or not, and they aren't ran upon joining a world, at all. I've also tried with and without a /, and the /difficulty command (with/without a / as well).
In my case the commands are being run. But there is still some weirdness with the difficulty, as it doesn't take effect somehow, although I can clearly see the messages in the game console. I wonder if this is another case of the single player menu messing it up.
For example if I run /difficulty peaceful
manually via chat, I can see all hostile mobs despawning. But if I then open the main menu and close it, then the difficulty will revert to whatever it was set to earlier in the menu, in my case Normal, and the hostile mobs spawn back.
Well that's not the fault of the mod though. The mod runs the command. Vanilla is just being stupid and overriding the difficulty via the main menu stuff. I've had to deal with this same issue in the JED mod in single player cases. The only real "fix" is to lock the difficulty to prevent the menu stuff from trying to re-set it all the time.