GateOfOrethority

版本 v1.0.6·更新於 2026-09-27

Biome boss portal restrictions

模組介紹 作者原文

Gate of Ore-thority

Boss-gated teleport restrictions with lore themed flavour text and server sync capabilities.

Disclaimer this was vibe-coded using Copilot & Claude, I know a lot of people don't want to use AI content.

However, I don't program and this mod has been a bit of a learning experience while also getting some settings that my group really wanted.

🧙 Features

  • 🔐 Teleport Restrictions: Prevents teleporting with specific items until the corresponding boss is defeated.
  • 📜 Flavorful Feedback: Custom messages for each item, themed to its biome and boss.
  • 🧪 Console Commands: Grant, revoke, list, or reset progression keys for testing and admin control.
  • 🧠 Multiplayer-Aware: Works in both solo and multiplayer environments.

🌍 World Modifier Requirement: Casual Portals

Gate of Ore-thority assumes that your world uses the Casual Portals modifier, which allows players to teleport with ores and other heavy items. This is essential for the mod’s teleport restriction system to function meaningfully—without it, players would be blocked by vanilla mechanics before your mod even runs its checks.

🛠 Console Commands

| Command | Description |

|-----------------------------|--------------------------------------------------|

| gateoforethority_addkey | Grants a progression key to the local player |

| gateoforethority_removekey| Removes a progression key from the local player |

| gateoforethority_keys | Lists all progression keys the player has |

🗝️ Teleport Restriction Keys

Gate of Ore-thority uses boss progression flags to restrict teleporting with specific items. These flags are stored in each player's custom data and are typically granted upon defeating the corresponding boss.

| Item Name | Required Boss Flag | Notes |

|-------------------------- |--------------------------|----------------------------|

| CopperOre | defeated_gdking | |

| TinOre | defeated_gdking | |

| Copper | defeated_gdking | |

| Tin | defeated_gdking | |

| Bronze | defeated_gdking | |

| IronScrap | defeated_bonemass | |

| Iron | defeated_bonemass | |

| Ironpit | defeated_bonemass | |

| IronOre | defeated_bonemass | |

| SilverOre | defeated_moder | |

| Silver | defeated_moder | |

| BlackMetalScrap | defeated_yagluth | |

| BlackMetal | defeated_yagluth | |

| MechanicalSpring | defeated_queen | |

| DvergrNeedle | defeated_queen | |

| BronzeScrap | defeated_queen | |

| CharredCogwheel | defeated_fader | |

| FlametalOre | defeated_fader | Not currently used in-game |

| Flametal | defeated_fader | Not currently used in-game |

| FlametalNew | defeated_fader | |

| FlametalOreNew | defeated_fader | |

🧙 Multiplayer Boss Flag Behavior

Gate of Ore-thority relies on boss progression flags (e.g. defeated_bonemass) stored in each player’s custom data to determine teleport eligibility. These flags are typically granted when a boss is defeated—but how they’re distributed in multiplayer depends on proximity.

🔑 How Boss Flags Are Granted

  • When a boss is killed, all players who are logged in and nearby will receive the corresponding boss flag.
  • The flag is stored in each player’s m_customData and used by this mod to gate teleport access.
  • The flag is not limited to the player who lands the killing blow.

📍 What Counts as “Nearby”?

  • Players within approximately 50 meters of the boss at the moment of death are considered nearby.
  • This includes anyone actively participating in the fight or spectating within render/combat range.
  • Players who are far away (e.g. in another biome or dungeon) or offline will not receive the flag automatically.

🛠️ Mod Behavior

  • Gate of Ore-thority checks each player’s m_customData for the required boss flag before allowing teleportation with gated items.
  • If a player did not receive the flag due to distance or timing, they will be blocked from teleporting with those items until the flag is granted manually or via another mod.

🔐 Server Override

If Server authoritative is enabled in the config, clients will use the server-defined boss flags for

安裝與使用 安裝:BepInEx 外掛

  1. 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
  2. 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
  3. 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
  4. 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。

帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

denikson-BepInExPack_Valheim

檔案與校驗

檔案名稱
GateOfOrethority-1.0.6.zip
檔案大小
84.8 KiB