Skip to content

上帝模式與無限耐久 (26.2)

系统參數取值
全局上帝模式規則ig:dm_infinity_global
默认状態false (已禁用)
損耗拦截機制传入損耗在 HEAD 处被取消(造成 $0$ 點損耗)
提示框渲染樣式✦ UNBREAKABLE (金色, 粗體)
計算优先級绝对优先(在任何百分比倍率前計算)

⚡ 概述與運作機制

**上帝模式(無限耐久)**為所选分類内的物品赋予完全無敌状態。当某物品激活上帝模式時,任何耐久損耗事件都在 ItemStackDurabilityMixin 处被彻底拦截并取消,防止物品遭受任何損壞或破碎。

與原版無法破壞組件的區別

  • 原版 Unbreakable 組件必须通过指令單个赋予物品堆疊(/give @p diamond_sword[unbreakable={}])。
  • Durability Multiplier 的上帝模式是全服与全類别生效的:世界中的每件工具、武器或盔甲都会自動具備無法破壞特性,無需修改物品 NBT 或組件數據。

🛡️ 24 項上帝模式規則

#游戏規則键名分類名称目標物品范围默认值
1ig:dm_infinity_globalGlobal God ModeAll damageable items in the gamefalse
2ig:dm_infinity_weaponsWeapons God ModeAll weapons (swords, spears, tridents, maces, bows, crossbows)false
3ig:dm_infinity_swordsSwords God Mode#minecraft:swords, #c:swordsfalse
4ig:dm_infinity_spearsSpears God Mode#minecraft:spears, #c:spearsfalse
5ig:dm_infinity_tridentsTridents God ModeItems.TRIDENT, TridentItem, #c:tridentsfalse
6ig:dm_infinity_macesMaces God ModeItems.MACE, MaceItem, #c:macesfalse
7ig:dm_infinity_bowsBows God ModeItems.BOW, BowItem, #c:bowsfalse
8ig:dm_infinity_crossbowsCrossbows God ModeItems.CROSSBOW, CrossbowItem, #c:crossbowsfalse
9ig:dm_infinity_shieldsShields God ModeItems.SHIELD, ShieldItem, #c:shieldsfalse
10ig:dm_infinity_toolsTools God ModeParent category for all Toolsfalse
11ig:dm_infinity_pickaxesPickaxes God ModePickaxeItem, #c:pickaxesfalse
12ig:dm_infinity_axesAxes God ModeAxeItem, #c:axesfalse
13ig:dm_infinity_shovelsShovels God ModeShovelItem, #c:shovelsfalse
14ig:dm_infinity_hoesHoes God ModeHoeItem, #c:hoesfalse
15ig:dm_infinity_shearsShears God ModeShearsItem, #c:shearsfalse
16ig:dm_infinity_fishing_rodsFishing Rods God ModeFishingRodItemfalse
17ig:dm_infinity_brushesBrushes God ModeBrushItemfalse
18ig:dm_infinity_flint_and_steelFlint and Steel God ModeFlintAndSteelItemfalse
19ig:dm_infinity_armorArmor God ModeParent category for all Armor piecesfalse
20ig:dm_infinity_helmetsHelmets God Mode#minecraft:head_armor, #c:helmetsfalse
21ig:dm_infinity_chestplatesChestplates God Mode#minecraft:chest_armor, #c:chestplatesfalse
22ig:dm_infinity_leggingsLeggings God Mode#minecraft:leg_armor, #c:leggingsfalse
23ig:dm_infinity_bootsBoots God Mode#minecraft:foot_armor, #c:bootsfalse
24ig:dm_infinity_elytraElytra God ModeItems.ELYTRA, DataComponents.GLIDERfalse

👑 上帝模式判定順序

DurabilityHelper.isInfinite(ServerLevel, ItemStack) 检查:

[1. Per-Item Dynamic Infinity == true?] ──► YES ──► Unbreakable (Damage = 0)
                 │ NO

[2. Specific Category Infinity == true?] ──► YES ──► Unbreakable (Damage = 0)
                 │ NO

[3. Weapons/Tools/Armor Infinity == true?] ──► YES ──► Unbreakable (Damage = 0)
                 │ NO

[4. Global Infinity == true?] ──► YES ──► Unbreakable (Damage = 0)
                 │ NO

[Proceed to Single-Use / Multiplier Calculation]

上帝模式相较于任何百分比倍率或單次使用設置拥有绝对优先权。只要 ig:dm_infinity_tools = true,工具就绝不会受損,無论 ig:dm_percent_tools 是設為 2001000 还是 0

Official documentation & web portal for Dasik Igaijinn mods.