promotional bannermobile promotional banner

Beatrice & Subaru

A mod that adds a contractor link between 2 players similar to Beatrice and Subaru!
 

Spirit Contract: Return by Death

One of you is Subaru. The other is Beatrice. Good luck.

I wanted to play Minecraft with a friend the way Subaru and Beatrice go through Re:Zero: tied together, one of them dying over and over, the other one keeping him alive with magic. So I made this.

One player is the Contractor. The other is their Spirit. When the Contractor dies, they don't respawn. Time goes back about two minutes, for everyone. Your inventories, the blocks you broke, the chest you just looted and the creeper that blew you up all go back to how they were. You get to try again.

It's server-side only. Install it on the server and anyone can join with a normal 1.21.1 client. It also works in singleplayer and LAN.


How it works

Return by Death

  • When the Contractor dies, the death is cancelled and the whole world rewinds about 2 minutes:
    • every player's position, inventory, ender chest, health, hunger, XP and effects
    • every block that was placed, broken, blown up or flooded
    • chest, furnace and other container contents
    • mobs, dropped items, boats, minecarts and item frames
    • time of day and weather
  • You hear a heartbeat and a deep bell, and the world goes dark for a moment.
  • Save points work like the show. The moment you come back to becomes your save point. Die again quickly and you go back to that same point, never further. Live past it for 2 minutes and it moves forward.
  • After a rewind, everyone gets a few seconds of immunity and no fall damage until they land. A rewind can't kill you again right away.

The Spirit

  • The Spirit is about chest height on the Contractor.
  • Your spells run on the Contractor's mana, which is their XP levels.
  • Stay within 500 blocks of your Contractor. Wander off and you get a warning, then 3 minutes to get back before you fade away. The timer pauses if the Contractor logs off.

Gate mana (passive XP)

  • While the Spirit is online, the Contractor's XP bar slowly fills on its own, about 1 level every 8 seconds.
  • Subaru's mana gate isn't built for this. If his passive levels go over 100, he dies (and time rewinds).
  • Spending mana on spells drains the gate back down, so your Spirit has to keep casting.

The Forbidden Library Tome

  • The Spirit gets a glowing book when the contract is formed.
  • Right-click it to open the spell menu. It has four tabs, and hovering a spell shows what it does and what it costs.
  • Sneak + right-click recasts your last spell without opening the menu.
  • While you hold it, the Contractor's mana shows above your hotbar.

Spells work on people too

  • Attack spells hit hostile mobs and other players (if PvP is on). They never hit you or your own Contractor.
  • Support spells help whoever you're looking at, or your Contractor if you're not looking at anyone.

The Witch's taboo

You can't talk about Return by Death.

If the Contractor tries to say it in chat ("I died", "return by death", "time loop", "rewind"…), the message never gets sent, and the Witch reaches for everyone within 10 blocks.

  • Each of them gets a dark screen with a pounding heartbeat and has 5 seconds to click their own heart 4 times. It jumps around, and closing the screen doesn't save you.
  • Miss it and you die.
  • If nobody's close enough to hear, the Witch takes it out on the Contractor: he drops to 1 heart and stays slowed until he's fully healed.
  • /msg, /me and /say don't get around it either.

Spells (63)

Every spell can also be cast by command: /ability <id>. The cost is in the Contractor's XP levels.

Elemental Magic

Spell ID Cost What it does
Shamak shamak 2 Darkness swallows enemies where you look. Blind and slowed
El Shamak elshamak 5 Flings enemies 20–30 blocks away through a gap in space
Al Shamak alshamak 8 Erases a mob for good. A player gets lost between worlds for 15s, then comes back
Ul Murak ulmurak 5 Enemies lose their weight and float helplessly
El Minya elminya 4 Volley of 6 crystal stakes
Ul Minya ulminya 5 Rain of 16 stakes where you look
Al Minya alminya 8 A ring of 24 stakes closes in from every side
Shamak Veil veil 2 30s of invisibility
Goa goa 1 Small fireball
El Goa elgoa 3 Exploding fireball
Ul Goa ulgoa 5 Fan of 7 fireballs
Al Goa algoa 8 Huge burning blast
Huma huma 2 Frost bite: freezes and slows enemies
El Huma elhuma 4 Emilia's ice spears (slow what they hit)
Ul Huma ulhuma 6 Freezes all water and enemies around you
Al Huma alhuma 9 Puck's eternal frost: big damage and frozen in place
Fula fula 1 Gust that blasts enemies away
El Fula elfula 4 Wind blades hit everything around you
Ul Fula ulfula 4 Lightning strike where you look
Al Fula alfula 8 Crusch's Hundred-Man Slash, a 30-block cutting wind
Al Dona aldona 7 Stone pillars erupt and launch enemies

Authorities & Divine Protections

Spell ID Cost What it does
Unseen Hand unseenhand 5 Sloth: invisible hands lift a target and slam it down
Gluttony's Feast gluttony 5 Drain a target's health. From a player you also eat a buff
Witch's Shadow shadow 6 Envy: shadows drag in, wither and slow everything nearby
Wrath's Bond wrath 5 For 20s, every hit you take is shared with nearby enemies
Metamorphosis lust 6 Lust: grow huge for 30s (+4 hearts, +4 attack)
Lion's Heart lionheart 7 Greed: 8s of no damage and no knockback
Heliozoa heliozoa 9 Shaula's 50-block star beam
Sword Saint's Blessing swordsaint 6 Strength II, Speed II, Haste II for 20s
Blessing of Earth Spirits earthspirit 3 Regeneration II and Resistance for 30s
Mana Surge surge 4 Strength II, Resistance, Speed for 30s
Mana Overdrive overdrive 6 Strength III, Speed II, Haste II for 15s

Spirit Arts

Spell ID Cost What it does
Dona dona 3 45s of Haste II and 3×3 mining
Ul Dona uldona 3 60s: mine whole ore veins, fell whole trees
Dona Craft craft 2 60s of +5 reach, placed blocks aren't used up
El Dona bridge 1 Instant 20-block bridge from the block in your hand
Dona Wall donawall 2 5×3 stone wall in front of you
Murak murak 1 Leap forward, no fall damage for 8s
El Murak elmurak 1 Pulls all nearby drops and XP to you
Door Crossing door 2 Teleport to your Contractor
Clairvoyance clairvoyance 2 Everything within 48 blocks glows through walls
Spoken Language animalspeech 1 Otto's blessing: nearby animals come to you
Spirit Sight spiritsight 1 Night Vision for 5 min
Water Spirit's Grace watergrace 1 Water Breathing and Dolphin's Grace
Goa Ward goaward 2 Fire Resistance for 2 min
Goa Forge forge 3 Smelts your whole inventory (tools are left alone)
Restore restore 4 Fully repairs the item in your hand

Contract Magic (support)

Spell ID Cost What it does
E·M·M emm 5 6 seconds of total invulnerability
Cor Leonis corleonis 5 For 30s, every hit on them lands on you instead
Blessing of the Phoenix phoenix 10 Their next death is undone (no Return by Death needed)
Healing Magic heal 3 +5 hearts and Regeneration
Ferris's Cure ferris 6 Full heal, cures everything
Spirit Barrier barrier 3 Absorption II and Resistance
Mana Transfer transfer 3 Strength and Speed for 60s
Mayonnaise mayo 1 Fills hunger. It's what he'd want
Purify purify 2 Removes bad effects and fire
Elemental Ward ward 2 Fire Resistance and Water Breathing
Murak Touch lighten 1 Slow Falling for 60s
Shared Sight sharedsight 1 Night Vision for 5 min
Passage passage 3 Pulls them to you
Witch's Scent scent 2 Every mob near them hunts you instead
Mend Gear mend 5 Repairs their armor and held items
Contract Bond bond 3 Regeneration for both of you

Commands

/contract and /lifechain are the same command, so use whichever you like.

For operators

Command What it does
/contract link <contractor> <spirit> Forms a contract. The spirit gets the Tome
/contract unlink <spirit> Breaks a contract (works on offline players)
/contract list Shows every contract on the server
/contract passive <contractor> [levels] Shows or sets someone's gate mana
/contract perf Shows how much the rewind system is costing the server

For everyone

Command What it does
/contract status Who you're contracted to, and your gate mana
/ability Opens the spell menu (same as right-clicking the Tome)
/ability focus Gives you a new Tome if you lost it
/ability <id> Casts a spell directly (IDs are in the tables above)

Quick start

  1. Install Fabric Loader and Fabric API for Minecraft 1.21.1 on your server.
  2. Drop this mod into the server's mods folder.
  3. As an operator, run /contract link <Subaru> <Beatrice> with your players' names.
  4. The Spirit right-clicks the Tome, and you're off.

Good to know

  • It's light on performance. The world is snapshotted every few seconds. On a normal server that takes a few milliseconds. If your world gets heavy, it automatically snapshots less often instead of lagging. Check /contract perf if you're curious.
  • Rewind history lives in memory, so restarting the server starts it fresh.
  • Some things can't be rewound. Mobs in chunks nobody is near, and players who logged out during those 2 minutes, stay as they are.
  • Explosions don't play favourites. Al Goa and El Goa can hurt your own team, so aim carefully.
  • Contracts and gate mana are saved with the world.

This is a fan-made mod. It isn't affiliated with Re:Zero, Tappei Nagatsuki, Kadokawa or White Fox. I just really like the show.

 

Beatrice & Subaru Team

profile avatar
Owner
  • 1
    Projects
  • 8
    Downloads