Started by
ItzDaSnowyBoi
on
Topic category: Help with Minecraft modding (Java Edition)
as the title says itself is there a way to check if the world has hardcore mode enabled or not? I want to make a hardcore mode-specific item but I'm having trouble figuring out how I would do this, I'm open to suggestions too if anyone has any.
Not sure if this is possible, since there is a block that does check the difficulty in the given world, but it only checks for peaceful, easy, normal, and hard mode. Don't know if this helps, but you might be able to lock the procedure doing the check, and change the code to check if the mode is hardcore like this:
For under the block that checks the difficulty, put your stuff here or something like that
Then you can lock the procedure and edit this line from "HARD" to "HARDCORE"
Hope this somewhat works, because I'm not sure if this will work