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

Defense

A mod designed to protect players from unwanted PvP interactions while still allowing PvP on servers! Originally designed for the Empty World SMP

6K загрузок87 подписчиковMITfabric

Обновлён 10 января 2026 г. · опубликован 21 июля 2024 г.

  • Defense
  • Visual Indicator
  • Per-Player Icon Selection
  • Defense Toggle in Survival Inventory
  • Select your Icon!
  • AFK Notification

Defense

A mod designed to protect players from unwanted PvP interactions while still allowing PvP on servers!

Originally created for and tested by the Empty World SMP

SHOWCASE VIDEO:

Features

  • This mod adds a PvP toggle button in the survival player inventory.
  • When checked on, the player is now immune to all incoming PvP damage. Examples include direct attacks, projectiles, and lit TNT. This also disables the same outgoing attacks from the player. They cannot recieve damage from players or deal damage to players while toggled on.
  • When toggled on, Defense lasts for 20 minutes. One minute before the player's immunity runs out, they will be notified with a chat message prompting them to enable it again if they wish. The player may also enable or disable defense anytime they wish to reset the cooldown.
  • If a player's defense is toggled on, a shield icon will display next to their nametag.
  • You can change the icon you are displaying to others and that shows on your toggle switch in your Skin Customization Settings.
  • AFK system that will toggle on Defense after 1 minute to prevent players from attacking you. Use the afkTimerSeconds gamerule to change the time it takes to toggle AFK (set to 0 to disable this feature). Still very early, but improvements and changes will be made over time!

Available Icons:

Available Icons

(These Icons are selectable via the Skin Customization Settings within Minecraft)

More features are planned, and updates will add new functionality to the mod, along with quality of life changes to make it even better to use.

Why the 20 Minute Timer?

The 20 minute timer for defense naturally encourages players to keep defense toggled off most of the time. This provides for the occasional funny interaction with another player, like an accidental punch, or for a challenge during a PvE battle to not hit your friends. It is meant to be used as a tool to defend against an unwanted interaction rather than something to give a competitive advantage.

For more information on this mod, and access to the code, go to this mod's GitHub page!

Центр версий

12 версий
  • Релиз758 КБ
  • Релиз746 КБ
  • Релиз746 КБ
  • Релиз744 КБ
  • Релиз741 КБ
  • Релиз741 КБ
  • Релиз739 КБ
  • Релиз99 КБ
  • Бета99 КБ
  • Релиз90 КБ
  • Релиз75 КБ
  • Релиз75 КБ

Ченджлог

1.21.11-0.5.0Релиз1.21.11 · 10 января 2026 г.
  • Updated to 1.21.11
  • Fixed a bug with the defense button in the inventory
  • Renamed all the gamerules to fit the new gamerule namespacing system
1.21.6-0.4.3Релиз1.21.6 · 22 июня 2025 г.

Updated to 1.21.6

1.21.5-0.4.3Релиз1.21.5 · 23 мая 2025 г.
  • Updated to 1.21.5
  • Added French localization
  • Updated some English localization
1.21.4-0.4.2Релиз1.21.4 · 8 марта 2025 г.

Updated to 1.21.4

1.21-0.4.2Релиз1.21, 1.21.1 · 8 марта 2025 г.

Fixed a bug preventing the players tab list from correctly rendering scoreboard

1.21-0.4.1Релиз1.21, 1.21.1 · 30 августа 2024 г.
  • Fixed a bug with the icon next the player's name in the dark
  • Fixed a typo in the allowDefenseKeybind gamerule description
1.21-0.4.0Релиз1.21, 1.21.1 · 29 августа 2024 г.
  • Fixed some Issues with the AFK System
  • Added Keybind for Defense (Under the Multiplayer Section)
  • Added /afk command
  • Added /defense command
    • /defense (playername) (on/off/refresh)
    • /defense (on/off/refresh)
  • Added pet and mount protection
  • Added visual indicator to defense button in inventory to show how much time is left
  • Added Gamerules
    • afkTimerSeconds (time in seconds)
    • allowDefenseKeybind (true/false)
    • defenseDurationMinutes (time in minutes)
    • mountsProtected (true/false)
    • petsProtected (true/false)
  • Fixed various bugs!
1.21-0.3.0Релиз1.21, 1.21.1 · 25 августа 2024 г.

Fixed the bug described in 1.21-0.3.0-BETA1

Комментарии

Загружаем…