How to make the whole worlds temperature be -1?

Started by Weebxeing0 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make the whole worlds temperature be -1?

Hi

So, I'm trying to make the world fully snowy and hopefully make temperature -1, the reason I'm trying to do this is, so player get frostbite if not close to a block. But yea I have no clue how to do something like this so any help would be great.

Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think the best way would…
Thu, 04/17/2025 - 01:04

I think the best way would be to set up a global procedure that triggers when a player joins the world, and you set a number NBT tag for that entity, to the value of -1, and call it "bodyTemp" or something like that. I think you need to leave the first letter in minuscules. 

Then, in the player's tick update, you can set up If Do's that alter that value or affect the player, for example, taking the template for checking a block in a 3x3x3 area to look for a source of heat, a fireplace or a furnace, and it increases the value of bodyTemp by 1 every 5 seconds or so, by setting a repeat loop, with the number to the max increase in temperature posible for that heat source, then in the Do part set a wait 100 ticks (20 ticks are 1 second) and then increase the value of bodyTemp. You can decrease their temperadure by doing the same, just detecting a "source of cold" (I know that's not how termodynamics work) like blocks of ice or snow but reduce the value of bodyTemp in the same way. 

Then you set the consequences with by checking with an If Do if the bodyTemp reaches a temperature too low (either instant death or suffer damage) or if they are warm enough (heal up).

Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
THANK YOU 
Thu, 04/17/2025 - 23:37

THANK YOU