Minecraft Data Packs / Challenge

Mega Death Swap ( >2 players! )

  • check_circle Functions
  • 30,509 views, 7 today
  • 4,769 downloads, 0 today
  • 35
  • 28
  • 34
Bertiecrafter's Avatar Bertiecrafter
Retired Moderator
Level 70 : Legendary Engineer
775

The well-known Death Swap game, but for 2 or more players!

For people who don't know the original Death Swap game by SethBling, let me explain:
  1. The participants go their own way and start a normal survival game.
  2. Every now and then, the players swap positions. The players don't know when this will happen though, they might receive a warning shortly in advance.
  3. Each player tries to set up a trap that kills the other player after the swap. The element of surprise causes the other player to never be fully prepared for everything.

Features

  • Randomly distributes all players across previous positions, which makes 2+ player swaps possible. The last player being swapped might end up on the same position when all others are taken.
  • No extra "spectator" account needed like the original SethBling game does.
  • Any player who dies during the game will instantly go into spectator. Use the number keys to teleport to other players.
  • Only survival mode players will be playing. Players in creative can just spectate.
  • A bunch of configurable options to customize the game.
  • Spectators won't load chunks while the datapack is active.
  • Health bars in tab list.

Installation & Configuration

Normally you just drop the .zip file in the datapacks folder and you're done, but with this datapack you're encouraged to unzip the folder. Make sure that the data folder of the datapack is two layers below the "datapacks" folder. In other words, make sure that this path exists:
./minecraft/saves/<world folder>/datapacks/Mega Death Swap/data

Now you can go deeper and open the options function file at data/bertiecrafter/functions/mdswap/options.mcfunction. The file consists of a couple scoreboard commands with numbers at the end. Modify those numbers to change the behaviour of this datapack. Don't forget to do /reload after making changes.

You can change the following options:
  • The minimum amount of delay (default: 30 seconds)
  • The maximum amount of delay (default: 180 seconds / 3 minutes)
  • The amount of seconds left before a warning showing up on screen (default: 5 seconds)
  • The amount of invulnerability seconds after swapping (default: 0 seconds)
  • The minimum amount of food points (0-20) that a player will always have (default: 8 points)

Controlling the game

After installing the datapack and running /reload, you can start the game!
Keep in mind that only survival mode players will be playing.

Start by resetting all players and starting the game. When a single player wins, the game will be stopped automatically. You can start another game using the same commands below.
/function bertiecrafter:mdswap/admin/reset_players
/function bertiecrafter:mdswap/admin/start
Resetting the players will do the following:
  • Set time to 0
  • Set all spectators back to survival
  • Fully restore health and hunger of all survival players
  • Clear inventories and advancements of all survival players
  • Spread all players across a 10k x 10k area.
    This might cause lag while generating new chunks, please wait a little before running the start command.
You can pause and resume the game as well.
/function bertiecrafter:mdswap/admin/stop
/function bertiecrafter:mdswap/admin/start

You can fully stop and play the game by adding the reset_players function inbetween. Remember that the game will automatically stop when a player wins. This will leave all dead players in spectator until you run the reset_players function again.

Have fun! =)
Feel free to send me any links to videos using this datapack :D


Videos made by other people




Install Instructions
This is a datapack, it can easily be used in any world or server without any difficulties.
Simply drop the downloaded zip file in the "datapacks" folder of your world save (<world>/datapacks).
Then open your world and do
/reload

In case the datapack doesn't automatically get enabled, run:
/datapack enable "file/[​datapack folder name].zip"

I encountered a bug! What do I do now?

I test all my creations, but bugs happen no matter how long you test something. Whenever someone experiences a bug, I do my best to fix the issue. You can help me by providing any useful information. You can never give me enough information, but please send it in a DM instead of placing it in the comments. You can still place a one-liner in the comments stating the issue to make the community aware, but that alone isn't enough to help me fix the issue.
  • Checklist: Are you using the right version? Did you do /reload after dropping the datapack in? After /reload, does the datapack show up green in /datapack list?
  • What is the issue? Does the datapack not seem to be working at all or is there a specific feature you are having issues with?
  • What happened? Please give me all the steps needed to reproduce the issue. The faster I can experience it, the faster I can solve it.
  • What did you expect to happen instead? This helps me understand your point of view and determine if the issue described is actually the issue I need to fix. The bug you are experiencing could just be a side effect of something else that doesn't behave as expected.

Mega Death Swap ( &gt;2 players! ) Minecraft Data Pack
Mega Death Swap ( &gt;2 players! ) Minecraft Data Pack
CreditTesters: pettyGamingHD, Vellaris, kotuu, NerdyWillow
CompatibilityMinecraft 1.15
Tags

1 Update Logs

Guaranteed Swap! : by Bertiecrafter 04/24/2020 1:06:21 pmApr 24th, 2020

I'm excited to announce a guaranteed swap every time.

Previously it would just put each player into a certain position, preferably not their own. However, if the last player had nowhere to go, he would not swap. With this new version the last player will be force swapped with a random player if there are no other already free positions.

Create an account or sign in to comment.

1
05/09/2021 4:40 am
Level 1 : New Miner
User3592803G
User3592803G's Avatar
protože je to na verzi 1.15
2
05/04/2021 6:49 am
Level 1 : New Miner
ToprakBey
ToprakBey's Avatar
perfect
1
02/07/2021 8:28 pm
Level 6 : Apprentice Crafter
chocoeyeoyo
chocoeyeoyo's Avatar
why..................why medifire.............uh
1
01/17/2021 5:00 am
Level 1 : New Miner
DAGAMING_PIZZA
DAGAMING_PIZZA's Avatar
The datapack isn't working, I've tried using /reload and all of the other commands, me and all of my friends are using optifine 1.16.4. please help.
1
01/17/2021 9:33 am
Level 70 : Legendary Engineer
Bertiecrafter
Bertiecrafter's Avatar
It has been confirmed to work though. Make sure you're on a vanilla server, does it show up in /datapack list? Does a blue message come up after /reload? Try a single player world and see if you see a message there or try another data pack to rule out that it was badly installed.
2
09/16/2020 10:42 pm
Level 32 : Artisan Ninja
relqxd
relqxd's Avatar
Officially works on 1.16 X
1
08/09/2020 2:28 am
Level 1 : New Miner
AnimeHarmenMan445
AnimeHarmenMan445's Avatar
I have a question regarding the options configurations, I want the time allotted to be longer for each round however whenever I go into the options and change them into a larger number, the games times still remains at the 30 - 170 mark whenever I start the game. I tried reloading and messing with a whole bunch of things to get this working but am still unable. I've been running the pack threw a Realms server and think that might be what's causing me so much trouble.
1
08/09/2020 6:26 am
Level 70 : Legendary Engineer
Bertiecrafter
Bertiecrafter's Avatar
Make sure you're on the right version (1.15) and the document actually gets saved on the realms. If you re-open the document from realms, does it show the modified numbers?
After reloading, can you put "/function bertiecrafter:mdswap/" in chat and try to auto complete it to find the load and options functions? If you can't find those functions in the auto complete list, you either broke them during your edits (redownload if this is the case) or you're not on the right version and Minecraft doesn't recognize the commands.
2
08/09/2020 3:30 pm
Level 1 : New Miner
AnimeHarmenMan445
AnimeHarmenMan445's Avatar
I figured out what was going on, I kept the raw zipped "Mega Death Swap" file in the data files folder and it must have been reading that instead of the unzipped folder contents from that. Once I moved the Zipped folder out, it started reading the changes I made to the options. Btw Thanks a whole lot for the game mode, cheers!
1
07/31/2020 3:24 pm
Level 1 : New Miner
MythGate
MythGate's Avatar
What are the commands to change the time before swapping?
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome