Minecraft Data Packs / Game Mechanic

Draconic Respawning for Hardcore SMP Servers

  • check_circle Functions
  • check_circle Loot Tables
  • 5,032 views, 0 today
  • 177 downloads, 1 today
  • 21
  • 16
  • 15
RainbwRobyn avatar RainbwRobyn
Level 37 : Artisan Birb
Kill the Ender Dragon to revive all dead players!

When the Ender Dragon is killed all previously dead players on your hardcore server will respawn in the end around the end portal!
Any dead players who were offline at the time of the dragon being killed will be brought back next time they join the server.

Features include:

- Options menu for server admins (must be oped to use)
  Accessible with the command /function drs:menu
- Option for Limited Revives per player
- Option for Limited times dragon kills will revive players
- Options for the dragon to drop commonly added items such as Elytra & Dragon Eggs

If you have any other ideas for features leave them in the comments below

Note: This pack modifies the dragon loot table to detect when the dragon is killed and thus may conflict with other packs that modify the dragon's loot table (such as dragon drop elytra packs).

If you are an admin and need to switch out of spectator to do something after you have died enter this command to prevent the pack from forcing you into spectator

/tag @s add drsAdmin
CompatibilityMinecraft 1.16
toMinecraft 1.18

4 Update Logs

v1.2.2 : by RainbwRobyn 12/06/2021 9:09:47 pmDec 6th, 2021

- Updated pack.mcmeta

- Uninstall function now actually disables the pack (I didn't realize datapacks could use the /datapack function before)

Create an account or sign in to comment.

07/16/2021 8:57 pm
Level 1 : New Collective
IcyGoneSouth avatar
Can this be used with other datapacks like 3rd life?
07/18/2021 2:07 pmhistory
Level 37 : Artisan Birb
RainbwRobyn avatar
I haven't looked at the functions of that pack but I'm going to assume they're not compatible.

I'm pretty sure that any pack that messes with lives and respawning wouldn't work with any other pack that does that kind of thing unless it was explicitly designed with the other pack in mind.

If you really want to try it do it on a test world first but I'm pretty sure it won't work properly.
07/18/2021 2:16 pm
Level 37 : Artisan Birb
RainbwRobyn avatar
That being said there are options in my pack that limit the number of revives a player can have.

You can also limit the number of times killing the dragon will revive players.

Just type the command /function drs:menu and you can look though the options to see if something works for you.
06/11/2021 12:10 am
Level 1 : New Miner
qq273669975 avatar
hi,bro.This datapack is so great.It works well.Your idea is so genius.

But I do have a suggestion, is it possible to reset the level and experience of a dead player after respawn (like non-hardcore mode)?That is more challenging (as hardcore mode should be), right?

Then, there is a little bit of a problem when running (not causing a crash), and there is a chance that every time the player dies there will be an incorrect log (inside the log), not every time the player dies, the game will continue normally when this log occurs.My server is a fabric vanila server(with carpet and some optimization mods).There is the part of log(when player die):
[11:06:14] [Server thread/INFO]: Xraye blew up
[11:06:15] [Server thread/FATAL]: Error executing task on Server
java.lang.NullPointerException: Cannot invoke "it.unimi.dsi.fastutil.objects.ObjectSet.remove(java.lang.Object)" because "?" is null
at net.minecraft.class_3204.method_14051(class_3204.java:202) ~[intermediary-server.jar:?]
at net.minecraft.class_3898.method_18713(MixinThreadedAnvilChunkStorage.java:1261) ~[intermediary-server.jar:?]
at net.minecraft.class_3215.method_14096(MixinServerChunkManager.java:467) ~[intermediary-server.jar:?]
at net.minecraft.class_3244.method_12063(class_3244.java:931) ~[intermediary-server.jar:?]
at net.minecraft.class_2828.method_12272(class_2828.java:122) ~[intermediary-server.jar:?]
at net.minecraft.class_2828$class_2829.method_11054(class_2828.java:56) ~[intermediary-server.jar:?]
at net.minecraft.class_2600.method_11072(class_2600.java:21) ~[intermediary-server.jar:?]
at net.minecraft.class_2600$$Lambda$5187/0x00000000c48b6110.run(Unknown Source) ~[?:?]
at net.minecraft.class_3738.run(class_3738.java:18) ~[intermediary-server.jar:?]
at net.minecraft.class_1255.method_18859(class_1255.java:144) [intermediary-server.jar:?]
at net.minecraft.class_4093.method_18859(class_4093.java:23) [intermediary-server.jar:?]
at net.minecraft.server.MinecraftServer.method_24306(MixinMinecraftServer.java:761) [intermediary-server.jar:?]
at net.minecraft.server.MinecraftServer.method_18859(MixinMinecraftServer.java:155) [intermediary-server.jar:?]
at net.minecraft.class_1255.method_16075(class_1255.java:118) [intermediary-server.jar:?]
at net.minecraft.server.MinecraftServer.method_20415(MixinMinecraftServer.java:743) [intermediary-server.jar:?]
at net.minecraft.server.MinecraftServer.method_16075(MixinMinecraftServer.java:737) [intermediary-server.jar:?]
at net.minecraft.class_1255.method_18857(class_1255.java:127) [intermediary-server.jar:?]
at net.minecraft.server.MinecraftServer.method_16208(MixinMinecraftServer.java:722) [intermediary-server.jar:?]
at net.minecraft.server.MinecraftServer.handler$bfn000$modifiedRunLoop(MixinMinecraftServer.java:5819) [intermediary-server.jar:?]
at net.minecraft.server.MinecraftServer.method_29741(MixinMinecraftServer.java:651) [intermediary-server.jar:?]
at net.minecraft.server.MinecraftServer.method_29739(MixinMinecraftServer.java:257) [intermediary-server.jar:?]
at net.minecraft.server.MinecraftServer$$Lambda$4326/0x00000000c2f7f860.run(Unknown Source) [intermediary-server.jar:?]
at java.lang.Thread.run(Unknown Source) [?:?]

Could you figure out what happened?
06/11/2021 1:24 amhistory
Level 37 : Artisan Birb
RainbwRobyn avatar
I'm going to be honest that kind of stuff is waaaaaaaaaay over my head. I don't know anything about java. I just know stuff about minecraft commands. I'll have a friend of mine who knows more about this stuff look at it.

I know datapacks tend to not play well with non-vanilla servers though. If this error isn't causing any significant issues like lag spikes or crashes I think you can safely ignore it.

As for the xp not being lost it sounds like you have keepInventory on. Clearing the xp should be simple enough though. I'll have a patch for the pack out very shortly.
06/11/2021 1:51 am
Level 37 : Artisan Birb
RainbwRobyn avatar
Had a friend of mine look at it and the error doesn't seem to be related to my pack. It appears to be an issue with either fabric, carpet mod, or any of the other mods you have installed.

Again if it's not causing lag or crashing the server I think you can safely ignore it.

If it's doing anything or the datapack breaks, try removing fabric mods. If that doesn't help swap fabric versions.
06/11/2021 3:10 pm
Level 1 : New Miner
qq273669975 avatar
Thank you so much! Yes, this log will not have any adverse effects on the game! Thanks again
06/10/2021 10:28 am
Level 1 : New Miner
Spittys avatar
Unrelated, but is it possible to make a datapack that makes the dragon egg spawn everytime you respawn and kill the ender dragon?
06/10/2021 4:52 pm
Level 37 : Artisan Birb
RainbwRobyn avatar
That should be possible yes.

If you wanted it to just drop as an item you just add it to the dragon's loot table (this pack has this and other items as a configurable drop)

If you wanted it as a block you should just be able to do a setblock command after the dragon has been killed. If you go for that method I would suggest setting the location for the egg a bit higher than the portal structure since I believe the height can vary a bit.
06/04/2021 11:59 pm
Level 1 : New Miner
Basilisk1349 avatar
Could you make it so that when you kill the ender dragon the game difficulty is set to hard instead of hardcore?
Planet Minecraft


© 2010 - 2023