Note: This datapack requires the associated resource pack to display the texture for the Sun Stone. Otherwise, you'll get a purple and black cube.
Overview
This datapack adds a challenge where the player will burn in sunlight. This datapack also adds a new item and enchantment to help. When burning, you will take 1 heart of damage per tick. You will also get the blindness effect.
To make things a bit easier, the time will be set to midnight when you first generate a world with this pack. This is to give you enough time to gather surface resources and find a cave. Although, as a side effect, this time change will occur if you add the datapack to an existing world as well.
You can avoid sun damage in the following ways:
- Hiding in caves or under blocks.
- Avoid traveling during the daytime.
- Swimming in water.
- Using the Sun Stone.
- Using the Sun Protection enchantment.
Spoiler - Obtaining & Using The Sun Stone
The Sun Stone can be found in Desert Pyramid chests. Once obtained, you must hold the Sun Stone in either your main hand or your off hand to work.
Alternatively, you can also use this command:
/function sunlight_burn:give_sun_stone
Note: Other datapacks that override the loot chests for Desert Pyramids might be incompatible.
Spoiler - Obtaining & Using the Sun Protection Enchantment
You have a rare chance to find an enchantment book for Sun Protection in End City chests. You can only apply this enchantment to helmets.
Note: Other mods or datapacks that override End City chests might be incompatible.
Disabling/Enabling Sun Damage
To disable the Sunburn effect, run:
/function sunlight_burn:disable
And to re-enable:
/function sunlight_burn:enable
Planned Changes
- Backporting to versions 1.21 -> 1.21.3.
- Implementing a different way to handle loot tables for compatibility.
- Having sun damage reduces the durability of helmets with the Sun Protection enchantment.
- Increase damage amount in hot biomes like deserts and badlands.
