Auto Totem Shield
Version 1.0.0
Author FrontEvill
Channels t.me/ModsFront | BedrockZone.com
Supports Minecraft Bedrock 1.21.20 and above including 1.26.20
What This Addon Does
When your Totem of Undying breaks after saving your life, this addon automatically pulls the next totem from your inventory and places it directly into your offhand slot. No menus, no manual movement, no delay.
Features
Fully automatic with no input required from the player.
Works in both singleplayer and multiplayer worlds.
Does not duplicate totems. It moves them, not copies them.
Does not disable achievements because it uses product_type addon.
Lightweight and runs every quarter second with no performance impact.
No Experimental Settings required.
Installation
Download both files:
AutoTotemShield_BP.mcpack
AutoTotemShield_RP.mcpack
Open AutoTotemShield_RP.mcpack first, Minecraft will import it automatically.
Then open AutoTotemShield_BP.mcpack.
Go into your world settings and open Add-Ons.
Activate Auto Totem Shield under both Behavior Packs and Resource Packs.
Save and enter the world. The addon is now active.
How It Works
Every 5 ticks which equals a quarter of a second, the addon checks your offhand slot.
If the offhand slot is empty or missing a totem, it scans your inventory from slot 0 to 35.
The first totem it finds gets moved to your offhand slot.
The original inventory slot is then cleared to prevent item duplication.
File Structure
AutoTotemShield_BP
manifest.json
pack_icon.png
scripts
main.js
AutoTotemShield_RP
manifest.json
pack_icon.png
Technical Notes
The addon uses EntityEquippableComponent with EquipmentSlot.Offhand to access the offhand slot. This is the correct API method since the inventory container only covers slots 0 through 35 and does not include equipment slots.
The manifest uses format_version 3 with product_type set to addon which is the official Mojang method to keep achievements enabled while running a scripted behavior pack.
The scripting library used is @minecraft/server version 1.13.0 which is stable and does not require any Experimental toggles.
Frequently Asked Questions
Will this disable my achievements?
No. The product_type addon field in the manifest prevents achievement disabling.
Does it work on servers?
Yes, it runs server-side and applies to all players in the world.
What if I have no totems in my inventory?
The addon simply does nothing and waits until one becomes available.
Can I turn it off?
Not from inside the addon currently. You can deactivate the behavior pack from the world settings to disable it completely.
Credits and Rights
Created by FrontEvill
Official channel t.me/ModsFront
All rights reserved. Redistribution or modification without explicit permission from the author is not allowed.