Перейти к содержимому
Mineforgian

Water Pressure

Adds water pressure, damaging players the deeper they dive without sufficient protection from armor

Загрузки
150
Подписчики
2
Обновлён
31 марта 2025 г.
Лицензия
Apache-2.0

Опубликован 24 марта 2025 г.

Water Pressure

A simple but fleshed out datapack that adds water pressure, damaging players the deeper they dive without sufficient protection from armor! Dynamically detects water depth in any pool based on the number of water blocks above the player.

Pressure Effects

Pressure damage and effects are applied as the player decends past their limits set by the offset and their armor

Depth Dmg Effects (Cumulative)
>= 1 1 Difficulty swimming
>= 6 2 Nausea
>= 11 3
>= 16 4 Blindness
>= 26 5

Config

Several config options are made available to the player through scoreboard commands

  • Show Settings: /scoreboard objectives setdisplay sidebar watpr
  • Change Setting: /scoreboard players set $offset watpr 20
  • Hide Settings: /scoreboard objectives setdisplay sidebar
Setting Description Default Values
$offset Depth in blocks before pressure is applied 16 -1000 ~ 1000
$armor_mult Armor offset multiplier percentage 150 >= 0
$toughness_mult Armor Toughness offset multiplier percentage 250 >= 0
$total_mult Total multiplier percentage for armor/toughness 115 >= 0
$damage_diff_scaling Toggles damage difficulty scaling
(If enabled, disables damage in peaceful)
1 0 ~ 1

You can also add to the vehicle_pressure_blacklist by modifying the file in data/watpr/tags/entity_types/

License

- This project is licensed under the Apache License 2.0. See the LICENSE file for details.
- This project can be packaged into any server or modpack you'd like

Ченджлог

1.0.2Релиз1.20.4, 1.20.5, 1.20.6 · 31 марта 2025 г.
  • Added vehicle_pressure_blacklist entity tag, allowing defined vehicles to make the player immune to all pressure effects
  • Added support for alexscaves:submarine if present
1.0.1Релиз1.20.4, 1.20.5, 1.20.6 · 27 марта 2025 г.
  • Improved Minecraft version compatibility for all 1.20.x versions
  • Made/added both grass and short_grass as not required in the air block tag to expand compatibility
  • Added the fluids key to the water predicate, keeping the fluid key to expand compatibility
  • Updated pack.mcmeta with compatible formats

Комментарии

Загружаем…