Minecraft Data Packs / Mini-game

Simple Death Swap

  • check_circle Functions
  • 85,158 views, 275 today
  • 14,445 downloads, 62 today
  • 60
  • 56
  • 68
ScriptFox avatar ScriptFox
Level 48 : Master Modder
14
Death Swap data pack

step 1 - Setup the Datapack:


Download the zip file, and extract it into your Minecraft world's datapack folder.
For a more detailed explanation visit this website Here.

step 2 - Setup the commands:

(Note: All players must have cheats enabled)

Go inside your Minecraft world, go into creative mode, and place down a command block. inside the command block type "function ds:timer". Make sure to have the command block be repeating, unconditional, and needs redstone. Place a lever on the command block.

Once you have two players in your world run "/reload" command

If you have an odd number of players playing run the command "/function ds:odd"

Set all players to survival mode

Flick the lever on the command block and start playing!

Step 3 - Play the game:

Teleport or run away from your opponents, and play the game like survival.

Every 5 minutes you will swap positions with one of your opponents.

try to kill your opponents by getting into sticky situations right before you swap places.

You are not allowed to make direct contact with your opponents, meaning you can only do damage by swapping places.

Notes:


When installing the pack into the world. Make sure that the folder contains a folder called data and a file called pack. If the folder only has a folder called death swap in it, put that folder into the data pack folder, and delete the other one

This data pack works best with LAN worlds, but should work on multiplayer servers if you follow the instructions on the linked website in step 1.

There is a maximum amount of six players playing at a time.

The order your run the commands matters. First, put the command in the command block, and invite the players. The next step is to run the "/Reload" command. Finally do "/function ds:odd" if you are playing with 3 or 5 players.

Sorry about the adfly link. Hopefully nobody gets any viruses... here is a direct link shhhh :)
Please let me know if anything doesn't function properly, or you think something should be changed :)
CreditSethbling for original idea. Heavily inspired by Dream.
CompatibilityMinecraft 1.13
toMinecraft 1.16
Tags

3 Update Logs

Multiplayer Update : 04/18/2020 12:05:18 pmApr 18th, 2020

Added support for 2 - 6 players at once. Made the /reload command output nicer.
LOAD MORE LOGS

Create an account or sign in to comment.

2
01/08/2021 11:32 am
Level 1 : New Miner
coolkidcrafter
coolkidcrafter avatar
ok the download button has to be virus its just really sus when I get to the end I have to install a chrome extension???? is this for everyone? Im not comfortable installing a random thing that gets access to my browser.
1
01/08/2021 5:37 pmhistory
Level 48 : Master Modder
ScriptFox
ScriptFox avatar
I was trying to see if I could monetize the data pack somehow. If you just press the skip button after 5 seconds on the download link and not click on anything else it should be fine. Here is a safer direct link to the download. Just press the blue download button on that website. I apologize if anything bad happened to your computer.
2
11/11/2020 10:13 am
Level 1 : New Miner
GDuckMC
GDuckMC avatar
ditmehayvailon cam on ban nhieu lam. Toi se dung datapack nay de thong lo dit cua Dream
1
10/04/2020 6:11 pm
Level 1 : New Miner
Axtenz
Axtenz avatar
In 1.14.4 there are no command blocks so how do i do it?
2
10/09/2020 7:08 pm
Level 1 : New Miner
himatthew
himatthew avatar
You can only get repeating command block by using /give repeating_command_block for 1.13 - 1.16
For 1.9 - 1.12 use /give 210 1
2
09/12/2020 4:34 pm
Level 1 : New Miner
looomad
looomad avatar
THIS GAME IS SO MUCH FUN! :D
I played this for HOURS with my friend. Thanks so much for this fantastic game.
especially since the set up is so easy.
1
09/12/2020 4:36 pmhistory
Level 48 : Master Modder
ScriptFox
ScriptFox avatar
Thanks for the feedback:D
2
07/08/2020 1:11 am
Level 1 : New Miner
YouSpottedAPig
YouSpottedAPig avatar
Hey, the death swap works amazing with me and my friend, but what happens when more than 2 people participate? because whoever died was still getting teleported, so if the person hosting the server dies, they can't leave so they'll just get teleported in the next swap
1
07/20/2020 7:25 pm
Level 1 : New Miner
User3153181G
User3153181G avatar
hey how did you install it? when i pull the lever of the command block it doesn't do anything...
2
07/04/2020 3:23 pm
Level 2 : Apprentice Explorer
Halim006
Halim006 avatar
Very good and the ability to play with more than 2 players is AWESOME.
I will find it very usefull if the data pack send a chat message when the game begins.
I suggest you to add it , if it was easy

EXCELLENT game
I suggest it to everyone
1
06/30/2020 12:43 am
Level 1 : New Miner
TheGamerCat189
TheGamerCat189 avatar
I played this with one of my friends on my realm and it worked. Now im trying to play it with another friend on the same realm and every time he joins in he keeps getting disconnected. We got it to work once but it didnt work.
2
06/17/2020 12:33 am
Level 1 : New Miner
Phelidai
Phelidai avatar
Can't get it to show up under the enabled datapacks list in either multiplayer or singleplayer. Have confirmed im putting it in the datapacks folder, and have followed the installation instructions to the letter.
1
06/17/2020 5:04 pm
Level 48 : Master Modder
ScriptFox
ScriptFox avatar
Maybe try making sure that Contents the of the DeathSwap Datapack folder are a pack.mcmeta file and data folder. If there is another folder inside of the folder move that folder into the data pack folder.
1
06/02/2020 4:45 pm
Level 1 : New Miner
mrwizzarrd
mrwizzarrd avatar
The /function ds:timer command block command isn't working... Do I really need the command block to play?
1
06/03/2020 9:02 am
Level 48 : Master Modder
ScriptFox
ScriptFox avatar
Yes, the command block makes it so that the command is used repeatedly. It will not work if you just type it once in the chat.
1
07/01/2020 7:05 pm
Level 29 : Expert Architect
Meinhaert
Meinhaert avatar
why cant you just put those commands in the datapack it self instead?
1
05/27/2020 10:41 pm
Level 1 : New Miner
2weekoldpickle
2weekoldpickle avatar
This worked well for two players, but was wondering how to disable /function ds:odd once one of the players die. It just teleported me to the other alive player but he didn't move. Does the third player need to stay online? Apologies if this was stated above and I missed it.
1
05/28/2020 12:26 pm
Level 48 : Master Modder
ScriptFox
ScriptFox avatar
I recently added the ability to play with more than two players and hadn't thought about this before. You didn't miss anything in the instructions. If /function ds:odd is enabled then the teleporting will not work with an even number of players. The reason that happened to you is because your opponent needed to teleport to a third player, but there wasn't one to teleport to. The third player must be online for this to work. I have yet to make a disable command, and will start working on that soon, but if you are just playing with friends and not on a large server or realm, you can fix this issue by running the /reload command and then starting to play again with two people.

If the third player had only died once and is still online then that is a bug in the data pack.

If that didn't work or if I misunderstood something please let me know. Thanks.
1
05/09/2020 11:03 am
Level 1 : New Miner
KienNgoQwert
KienNgoQwert avatar
Does it have warnings every time we swap?
1
05/28/2020 12:29 pmhistory
Level 48 : Master Modder
ScriptFox
ScriptFox avatar
Yes, this does have warnings every time you swap. If you want a randomized death swap more like Sethbling's than you should probably look somewhere else. If you are fine with the 5-minute intervals and just don't want warnings I could take them out and give you a file to use that doesn't have warnings. Sorry for the super late response.
1
04/28/2020 9:10 am
Level 1 : New Miner
Ash546
Ash546 avatar
Hi mate, on minehut, the /reload action is unusable. Is there any other commands to replace reload?
1
04/28/2020 9:27 am
Level 48 : Master Modder
ScriptFox
ScriptFox avatar
I don't think so. :(

There is probably a death swap plugin on the internet somewhere, so you could use something like that.
1
05/28/2020 3:35 pm
Level 1 : New Miner
Forty_of_death
Forty_of_death avatar
Ash546 Just go to dashboard on the minehut pages and just click "restart"
1
04/19/2020 8:22 pm
Level 1 : New Miner
Abyssr
Abyssr avatar
it doesnt work for me
1
04/25/2020 8:54 am
Level 1 : New Miner
Herombi
Herombi avatar
If you're playing in an older version than 1.15 you must delete the line which says gamerule doInsomnia false in the file setup.mcfunction which is located in world/datapacks/deathswap/data/ds/functions/setup.mcfunction, because the gamerule doesn't exist in Minecraft Java until version 1.15.

Then it should work. (For me it did.)
1
04/19/2020 5:36 pm
Level 1 : New Miner
Skribblez
Skribblez avatar
Awesome Great fun!!
2
04/18/2020 5:27 pm
Level 1 : New Miner
User3003483G
User3003483G avatar
When I put the command block down, put it in repeat and unconditional, type the command "function ds:timer" and flip the lever. It keeps repeating the command in chat: "[@: Executed 2 commands from function 'ds:timer']". What am I doing wrong?
1
04/18/2020 5:38 pm
Level 48 : Master Modder
ScriptFox
ScriptFox avatar
I would think that if you ran the command /gamerule commandBlockOutput false It should stop saying that in the chat. I recently updated it so there may be bugs. If you run into any other problems please let me know :)
1
04/19/2020 6:02 am
Level 1 : New Miner
User3003483G
User3003483G avatar
Well the text is no longer speaking, but after 5mins it didn't swap us, is it because we died?
1
04/19/2020 11:41 am
Level 48 : Master Modder
ScriptFox
ScriptFox avatar
Maybe. It should have still swapped if you were playing. Did you see the swapping in 10, 9, 8 etc. part? If not than you probably set something up wrong.
1
04/17/2020 7:17 am
Level 1 : New Miner
Kimikomonn
Kimikomonn avatar
Is this modpack ok for 2+ people? If not how to set the teams for 2+ people?
1
04/15/2020 10:50 pm
Level 2 : Apprentice Crafter
Tommypants
Tommypants avatar
I host my server on minehut.com, is there any way i could install this datapack? I tried it on my multiplayer world, like the idea though, nice work.
1
04/17/2020 8:00 am
Level 1 : New Miner
theluckyone8
theluckyone8 avatar
yeah there is a tutorial on how to ad them on youtube
2
04/15/2020 5:52 am
Level 1 : New Miner
Heroblast
Heroblast avatar
I know this might sound silly but, is there any way to make a death swap for more then 2 players, for example 6 players... so it would be a random swap with a random player.
2
04/15/2020 8:23 am
Level 48 : Master Modder
ScriptFox
ScriptFox avatar
Yes. It would be possible. The way the datapack works right now only lets two players play, but I could add a mode where more people could play.
2
04/16/2020 9:19 pm
Level 1 : New Miner
Heroblast
Heroblast avatar
If you could do that thay would be awesome and I couldn't thank you enough. Thanks for the answer!
1
04/18/2020 11:46 am
Level 48 : Master Modder
ScriptFox
ScriptFox avatar
I have been trying to get the multiple player swap to work. I think It works now, but I only have 3 accounts to test with. I am pretty sure it should work with 4 -6 players. Right now there is a max of six players, but I might add support for more than that later. I will update the instructions and add a new download link when I am ready.

Hope you like it :)
1
04/14/2020 4:59 pmhistory
Level 1 : New Miner
Han_D_Man
Han_D_Man avatar
I can't tell what i am doing wrong. I am hosting a multiplayer server. I have put down a commandblock set it to (Repeat, Unconditional and Needs Redstone). I have pasted in the command "function ds:timer". Me and my friend is both in survival and i have reloaded to make sure the teams are correct. But when i flick the lever nothing happends. Even after waiting for 5 minutes still nothing happened. The server is in 1.15.2 but htat shouldent be the problem right?
1
04/14/2020 6:24 pmhistory
Level 48 : Master Modder
ScriptFox
ScriptFox avatar
Hmmm. It sounds like you are doing everything correctly. There may be a problem on my part.

Here a list of possible fixes for you issue. Hopefully one of them works. If they don't than I will try to fix the problem asap.

  1. The instructions for setting up the world I made above were for a single player world hosted to LAN. I assumed they would be the same for multiplayer, but I may be wrong about that. you can refer to the minecraft wiki multiplayer setup section for more information.
  2. I am pretty sure that both players must be operators for it to work.

  3. You can run the command /scoreboard players get time time to see the number of ticks that have passed since the last timer reset. If this is zero than the timer is probably not running. If this is the case maybe the lever isn't powered

  4. If you run the command in the previous step, and it is between 0 and 6000 try running it again. If that number is higher then the last number it gave try waiting a couple more minutes, and it might work.
If any of these fixes work please tell me because I want to make sure the pack is functioning properly. Thanks!
1
04/21/2020 12:23 pm
Level 1 : New Miner
LavaPototo
LavaPototo avatar
i am having the same problem, BUt if i run /scoreboard players get time time nothing happens, it just says: "unknown scoreboard objective 'time' " what else can i do?
1
04/21/2020 12:36 pm
Level 48 : Master Modder
ScriptFox
ScriptFox avatar
I don't know what went wrong. You could try taking out the datapack and reinstalling it.
1
04/22/2020 8:00 am
Level 1 : New Miner
LavaPototo
LavaPototo avatar
Re-installed it twice, same problem i dont know what seems to be a problem. im playing on 1.14.3 I don't know if this helps or not.
1
04/16/2020 11:35 am
Level 1 : New Miner
Han_D_Man
Han_D_Man avatar
I fixed it the problem was on my part. Datapack works fine.
1
04/17/2020 3:14 pm
Level 1 : New Miner
DrimuS
DrimuS avatar
How did you fix it? I can't get it to work either
1
04/13/2020 7:57 pmhistory
Level 1 : New Miner
CreeperAwwMaan
CreeperAwwMaan avatar
Why Wont The Datapack Load When I Put It In it Says the Only Pack Is Vanilla
1
04/13/2020 9:52 pm
Level 48 : Master Modder
ScriptFox
ScriptFox avatar
I think you have put the datapack in the resource packs folder. You can refer to this website for installation instructions. :)
1
05/28/2020 3:40 pm
Level 1 : New Miner
Forty_of_death
Forty_of_death avatar
CreeperAwwMaan I guess you're not putting the data pack inside the world folder "datapack". If it doesn't work, stop it, then start it again. Maybe it will work then.
4
04/11/2020 11:40 amhistory
Level 1 : New Miner
Mrcrazycool
Mrcrazycool avatar
hi do i need to add the teams myself or is it meant to already be there when i put in the command (i have downloaded everything correctly and into the right file and reloaded the world) also does it work in newer versions then 1.13
1
04/12/2020 8:39 am
Level 48 : Master Modder
ScriptFox
ScriptFox avatar
After you put the function ds:timer command in the running command block and you have run the /reload command while two players are in the game, they game should start working properly. The teams should be done already.

  If you have 3 or more players in your game then you will have to set the teams manually.
To set the teams manually you have to run the command /team join Red <FirstPlayerName> replacing <Firstplayername> with one persons IGN, then running
/team join Blue <SecondPlayerName> replacing <SecondPlayerName> with the other players IGN.

  I am pretty sure that this datapack should work on versions higher than 1.13. I have tested them but only with two players in the world. If there are any bugs please let me know, I wouldn't want a malfunctioning datapack on the internet. :)
2
04/12/2020 11:30 amhistory
Level 1 : New Miner
Mrcrazycool
Mrcrazycool avatar
thank you but one more thing how do you get two players in a world at the same time without it being a server or a realm can it be a LAN world? and do you only have to type
function ds:timer into the command block
Planet Minecraft

Website

© 2010 - 2021
www.planetminecraft.com

Welcome