Minecraft Data Packs / Challenge

Mega Death Swap ( >2 players! )

  • check_circle Functions
  • 22,023 views, 63 today
  • 4,063 downloads, 12 today
  • 33
  • 25
  • 34
Bertiecrafter avatar Bertiecrafter
Level 61 : High Grandmaster Cyborg
337

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! : 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 avatar
protože je to na verzi 1.15
2
05/04/2021 6:49 am
Level 1 : New Miner
ToprakBey
ToprakBey avatar
perfect
1
02/07/2021 8:28 pm
Level 5 : Apprentice Crafter
chocoeyeoyo
chocoeyeoyo avatar
why..................why medifire.............uh
1
01/17/2021 5:00 am
Level 1 : New Miner
DAGAMING_PIZZA
DAGAMING_PIZZA 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 61 : High Grandmaster Cyborg
Bertiecrafter
Bertiecrafter 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 28 : Expert Ninja
RelaxedSweat
RelaxedSweat avatar
Officially works on 1.16 X
1
08/09/2020 2:28 am
Level 1 : New Miner
AnimeHarmenMan445
AnimeHarmenMan445 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 61 : High Grandmaster Cyborg
Bertiecrafter
Bertiecrafter 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 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 avatar
What are the commands to change the time before swapping?
1
07/31/2020 3:49 pm
Level 61 : High Grandmaster Cyborg
Bertiecrafter
Bertiecrafter avatar
There are no commands. You'll have to unzip the data pack and modify a function file using a text editor. See "Installation & Configuration" in the submission description.
1
06/29/2020 2:35 pm
Level 1 : New Crafter
RobRP
RobRP avatar
Hello, Sir! I am in doubt about the datapack version. Can it be used only in versions of 1.15 or can it also be used in 1.14 / 1.16?
2
06/30/2020 8:23 am
Level 61 : High Grandmaster Cyborg
Bertiecrafter
Bertiecrafter avatar
Honestly, I have no clue. From the top of my head I can't come up with reasons why it would not work on the other versions. Please try and let me know!
1
06/27/2020 10:05 pm
Level 1 : New Miner
Tympho
Tympho avatar
I have unzipped the file and put it in my data packs but it is still not working plz help
1
06/28/2020 1:55 am
Level 61 : High Grandmaster Cyborg
Bertiecrafter
Bertiecrafter avatar
Make sure you unzip the files inside to a new folder in the datapacks folder. Check if your directory structure looks like this:
datapacks/(new folder)/data
1
06/22/2020 8:12 pm
Level 22 : Expert Dragonborn
DragonRider333
DragonRider333 avatar
How do I open the MCFUNCTION Files? I wanna change the settings btw Great job
1
06/23/2020 1:11 amhistory
Level 61 : High Grandmaster Cyborg
Bertiecrafter
Bertiecrafter avatar
Start by unzipping the data pack. In windows you can right click the file to extract. See the description for more information. Once you've found the .mcfuntion file, simply double click it. On Windows, you'll get a small window asking which program should be used to open mcfunction files. Any text editor works, even plain notepad.
1
06/17/2020 12:50 pm
Level 1 : New Miner
Maxminedigger
Maxminedigger avatar
A really well-made datapack but sadly it's lagging badly when swapping places
2
06/17/2020 2:27 pm
Level 61 : High Grandmaster Cyborg
Bertiecrafter
Bertiecrafter avatar
The mechanism itself shouldn't lag, it's very light. It's most likely chunk loading, so try lowering the render distance in server.properties. You could also try using /tp right after starting to teleport all participants to the same location and have each one go their own direction afterwards. This way you're all in the same area and maybe less chunks have to be loaded.
1
06/17/2020 3:03 pmhistory
Level 1 : New Miner
Maxminedigger
Maxminedigger avatar
I'm playing on a LAN world and its only lagging when we are swapping places. Like I drop to 0 fps for a while and then go up to like 200 again
2
04/24/2020 5:37 pm
Level 1 : New Miner
AndreiWasFound
AndreiWasFound avatar
Hi. First i want to thank you for this amazing datapack, it is veryyy good. Second, what line of text or command do I type to disable the random teleport function?
1
04/25/2020 9:41 am
Level 61 : High Grandmaster Cyborg
Bertiecrafter
Bertiecrafter avatar
Wait.... what do you mean with "random teleport function"? Did you really just ask me how you can get Death Swap working without swapping? haha
1
04/23/2020 6:35 pm
Level 1 : New Miner
User3014303G
User3014303G avatar
Hi there im having problems setting this up is there any way u could help us
1
04/24/2020 3:02 am
Level 61 : High Grandmaster Cyborg
Bertiecrafter
Bertiecrafter avatar
You'll have to provide more information, maybe in a Private Message. Don't worry about it if you're the guy who joined the discord server recently :P
1
04/23/2020 10:53 am
Level 1 : New Miner
Bolun06
Bolun06 avatar
sometimes a player can't swap and end up died in his own trap. This is really annoying cuz when nearly swap you just jump into your trap to prepare trap for other player and you end up no swapping. Can you fix this cuz I think this is not fun at all
1
04/24/2020 1:06 pm
Level 61 : High Grandmaster Cyborg
Bertiecrafter
Bertiecrafter avatar
I fixed it!

If you still manage to somehow not swap, I am out of ideas on how to improve it xD
1
04/23/2020 2:36 pmhistory
Level 61 : High Grandmaster Cyborg
Bertiecrafter
Bertiecrafter avatar
-- OLD MESSAGE --

I already lowered the chances of this a lot during development, by making sure the datapack prefers to put you at a different location and only keeps you at your position as a last resort. For a long time I thought it wasn't possible to improve this, but I think I actually came up with a way.... Stay tuned :P
2
04/25/2020 9:13 am
Level 1 : New Miner
Bolun06
Bolun06 avatar
thanks for the hard work :D
2
04/21/2020 10:31 pm
Level 1 : New Miner
Mr_Stonelicker
Mr_Stonelicker avatar
I'm curious, is there any way to change the minimum and maximum amount of time between swaps? I sure would like it to be at least 5 minutes.
1
04/22/2020 1:53 am
Level 61 : High Grandmaster Cyborg
Bertiecrafter
Bertiecrafter avatar
Yeah! You need to unzip the file and open up the options function inside. See "Installation & Configuration" for more info
2
04/21/2020 1:50 pm
Level 26 : Expert Architect
boyslikegirls
boyslikegirls avatar
This is so fun me and my brother played it, DUDE ITS GOOD
1
04/21/2020 4:20 pm
Level 61 : High Grandmaster Cyborg
Bertiecrafter
Bertiecrafter avatar
Let me know if you decided to make a video of it :P
3
04/20/2020 7:52 pm
Level 1 : New Miner
Mr_Stonelicker
Mr_Stonelicker avatar
Thanks for the datapack! Nobody else that I could find has anything available for free on 1.15. Was looking for this for my friend and I.
2
04/20/2020 3:54 pmhistory
Level 61 : High Grandmaster Cyborg
Bertiecrafter
Bertiecrafter avatar
Thank you pettyGamingHD, Luracasmus, Chimerabot, _williamab, Mr_Stonelicker, SuperJackPL, shmoobalizer, R0cktt, andreisava4, Brownie1111, Danger Kiwi, InfinityCharly, TheSova, User3019112G, TNT_101, chickenpants93, Balke01, HoodShine, DragonRider333, RobRP, PoyoBoyo, PixieMax, Abdullah1924, CorporalKeith, My name is not George, Aquarexz, monstruo1o, User3070794G, _THEREDLION_, MiguelkiX30, DufdilR and Carved_Creeper for the diamonds!
Planet Minecraft

Website

© 2010 - 2021
www.planetminecraft.com

Welcome