Minecraft Data Packs / Game Mechanic

Draconic Respawning for Hardcore SMP Servers

  • check_circle Functions
  • check_circle Loot Tables
  • 5,177 views, 1 today
  • 178 downloads, 0 today
  • 21
  • 16
  • 15
RainbwRobyn's Avatar RainbwRobyn
Level 37 : Artisan Birb
9
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.18
Tags

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)
LOAD MORE LOGS

Create an account or sign in to comment.

1
07/16/2021 8:57 pm
Level 1 : New Collective
IcyGoneSouth
IcyGoneSouth's Avatar
Can this be used with other datapacks like 3rd life?
1
07/18/2021 2:07 pmhistory
Level 37 : Artisan Birb
RainbwRobyn
RainbwRobyn's 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.
1
07/18/2021 2:16 pm
Level 37 : Artisan Birb
RainbwRobyn
RainbwRobyn's 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.
1
06/11/2021 12:10 am
Level 1 : New Miner
qq273669975
qq273669975's 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 37 : Artisan Birb
RainbwRobyn
RainbwRobyn's 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 37 : Artisan Birb
RainbwRobyn
RainbwRobyn's 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's 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's 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 37 : Artisan Birb
RainbwRobyn
RainbwRobyn's 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's 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

Website

© 2010 - 2024
www.planetminecraft.com

Welcome