Minecraft Data Packs / Game Mechanic

Draconic Respawning for Hardcore SMP Servers

  • check_circle Functions
  • check_circle Loot Tables
  • 1,474 views, 17 today
  • 55 downloads, 0 today
  • 11
  • 6
  • 11
Dahson avatar Dahson
Level 29 : Expert Birb
3
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
CreditCodedVoid
CompatibilityMinecraft 1.16
toMinecraft 1.17
Tags

3 Update Logs

v 1.2.1 : 06/11/2021 1:29:59 amJun 11th

- XP is now cleared on player death
LOAD MORE LOGS

Create an account or sign in to comment.

1
06/11/2021 12:10 am
Level 1 : New Miner
qq273669975
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?
1
06/11/2021 1:24 amhistory
Level 29 : Expert Birb
Dahson
Dahson 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.
1
06/11/2021 1:51 am
Level 29 : Expert Birb
Dahson
Dahson 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.
1
06/11/2021 3:10 pm
Level 1 : New Miner
qq273669975
qq273669975 avatar
Thank you so much! Yes, this log will not have any adverse effects on the game! Thanks again
1
06/10/2021 10:28 am
Level 1 : New Miner
Spittys
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?
1
06/10/2021 4:52 pm
Level 29 : Expert Birb
Dahson
Dahson 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.
1
06/04/2021 11:59 pm
Level 1 : New Miner
Basilisk1349
Basilisk1349 avatar
Could you make it so that when you kill the ender dragon the game difficulty is set to hard instead of hardcore?
1
06/10/2021 5:06 pm
Level 29 : Expert Birb
Dahson
Dahson avatar
Unfortunately, hardcore is a server property, not a difficulty. So it can't be changed with commands.

Adding this feature would require that the server be run with hardcore set to false. And I'd rather not force people to have certain server settings that only affect one datapack setting that they might not even use.
1
06/10/2021 5:08 pm
Level 29 : Expert Birb
Dahson
Dahson avatar
Also sorry for the late reply. I was thinking this over for a while and didn't want to respond until I had an answer for you.
1
05/04/2021 11:48 am
Level 30 : Artisan Modder
SKYDIAMONDS1
SKYDIAMONDS1 avatar
You should make it so the players only respawn after like 30 seconds so the player Who killed the dragon can get the egg
Planet Minecraft

Website

© 2010 - 2021
www.planetminecraft.com

Welcome