How to check biome temperature?

Started by woodcraft on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to check biome temperature?

Let's say i want to give the player regeneration in a biome that has the temperature of 1.5 and down but not biomes with the temperature of 0.1, how would i do this?

Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yeah you can just use the…
Thu, 10/31/2024 - 18:41

Yeah you can just use the block "Get biome temperature at x y z" from the world data section. knowing the temperature, you can give an item to the player when it spawns, and make it impossible to drop using procedures, then every tick the entity has the item in the inventory you can use the temperature that you alredy know to do whatver you want. you can even use the item to inform the player about the temperature, doing some sorta conversion to Farenheits or Celcius degrees

 

Its pretty simple -

Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can do a lot of things…
Thu, 10/31/2024 - 18:45

You can do a lot of things with world data section blocks. you can use the "can location x y z see the sky" and check if its daytime to make a solar apocalipse, doing damage to the player whenever both of these are true