Source-checkedWorld generation

McPortalMetal

by McLovin · for Valheim

Carry ore and bars through portals. Client-side: works on an unmodified server and changes nothing for anyone else.

422Downloads
49d agoLast updated
BepInExLoaders
ThunderstoreSource

About McPortalMetal

From Thunderstore

Carry ore and bars through portals. Client-side: works on an unmodified server and changes nothing for anyone else.

McPortalMetal

Carry ore and bars through portals.

Client-side. It works on a server that does not have the mod, and it changes nothing for anyone else playing there.

Why it works without the server

The portal decides on your own machine. TeleportWorld.Teleport asks Humanoid.IsTeleportable, which walks your inventory looking for an item flagged as non-teleportable. If nothing objects, that same client calls player.TeleportTo itself.

The server never re-validates the inventory. It only sees your character move, and you already own your own character, so the move is accepted like any other step you take. No RPC asks permission, and there is no server-side check to fail.

That also means the effect is strictly yours: no other player's inventory is consulted, and nothing about the world or the server is written.

How it does it

The restriction is cleared on the item definitions, not by intercepting the portal's question.

That matters because the portal is not the only thing reading the flag. The inventory grid draws its red no-teleport badge straight from m_shared.m_teleportable, and the item tooltip appends its warning from the same field. A mod that only answers the portal leaves the interface insisting your ore cannot travel while it quietly does — which reads as a broken mod, and gets people to drop their ore before stepping through. Clearing the flag at the source keeps the badge, the tooltip and the portal all telling the same story.

What is left alone

  • allowAllItems portals and the TeleportAll global key keep working

exactly as the game intends. This mod never overrides them.

  • Items the game never allows through (tool tier 1000 and above are refused

even with TeleportAll set) are skipped. That is the game saying "never" rather than "not by default".

  • Turning the mod off puts every flag back, immediately, without a restart.

Uninstalling leaves no trace.

Configuration

BepInEx/config/joaorodrigues.valheim.mcportalmetal.cfg, written on first launch.

| Setting | Default | What it does | | --- | ---: | --- | | Enabled | true | Off restores the stock restriction straight away. | | BlockedItems | (empty) | Items to keep restricted, comma-separated prefab names. Empty means everything may pass. |

BlockedItems uses prefab names as the console uses them, matched case-insensitively. To keep the late-game grind intact while freeing the rest:

BlockedItems = FlametalOre, BlackMetalScrap

Both settings apply the moment you change them.

Installation

Install with a mod manager, or drop McPortalMetal.dll into BepInEx/plugins. Requires BepInEx for Valheim.

Install it on your own game, not on a dedicated server. The plugin is scoped to the game client and will not load on valheim_server.exe at all — no log line, no config file. If you are hosting from your own game rather than a dedicated server, that is the client, so it loads and applies to your character as normal.

A note on shared servers

Ore through portals is a balance rule most servers keep on purpose. This is client-side, so it affects only you and breaks nothing for anyone else — but on someone else's server it is still the kind of thing worth asking the admin about first. If you want it for everyone, the game already has a supported way: an admin can set the TeleportAll global key, which this mod deliberately leaves working.

Source

https://github.com/jcastro09/McPortalMetal

MIT licensed. Built from the game's own decompiled code.

Highlights

From source data

Loaders

Runs on BepInEx.

Footprint

Rated a light load on a server.

Last update

Its author last shipped an update 49d ago.

McPortalMetal on Nxeon

From our catalogue
One-click install
Supported on Nxeon Valheim servers, for BepInEx servers. We download it from Thunderstore, place it, and restart the server.
Server type needed
BepInEx
Server load
light
Smallest plan we suggest
Valheim — 4 GB (4 GB RAM). This follows our own load rating above, not a benchmark.
Latest build
1.0.0, released 2026-09-16

Game versions by loader

LoaderGame versionsNewest
BepInEx

From 1 recorded build of McPortalMetal.

Dependencies

Declared by the newest build that lists any. Required ones are installed with it on one-click installs.

Run McPortalMetal on a Valheim server

Pick a server or deploy a new one above; it is installed in one click.

What kind of mod it is

From the catalog
Listed on Thunderstore as “Content”

World generation

Changes or adds to how new terrain, biomes and structures are created.

Compatibility

Game
Valheim
Loaders
BepInEx
Requires
One-click install needs a BepInEx server.

Verified at the source

  • ✓ThunderstoreOfficial listing, checked 2026-10-01Open ↗
  • ✓AuthorMcLovin, as published on Thunderstore
  • ✓LicenseNot published by the sourceFree

McPortalMetal, answered

Generated from the mod’s own source data.

Which loaders does it support?

BepInEx.

Is it free?

Yes. McPortalMetal is free to download from Thunderstore.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run McPortalMetal on a Valheim server.

Deploy in about a minute from $9.99 a month, then add McPortalMetal in one click.