#darkness death (1.20.1)

26 messages · Page 1 of 1 (latest)

solemn sorrel
#

i want to try an old idea i had but gave up on
the idea is basically that the player instantly dies if they have a light level of 2 or less with block light and 0 from sky light (both having to be true during day time, and sky light being ignored at night time)

also im using true darkness
also please, if there is a way to do the light check at the player head position (also when crawling), do that to prevent being partially in the ground or crawling result in death

death message: (playername) has been consumed by the darkness
also please make the death message only show on the death screen and not send out in chat

edit:
and please make it bypass totem of undying and other such things

valid leaf
#

I can try lol

#

Seems fun

solemn sorrel
#

thanks
btw i was moving some stuff back home so i was afk

valid leaf
#

just beware that im just starting out with modding so i aint that great lol

valid leaf
#

@solemn sorrel hey just popping in to say that im probably almost done

#

do you have an icon for it?

#

its done!!

valid leaf
#

its in review now

valid leaf
#

@solemn sorrel

solemn sorrel
#

omg thanks

valid leaf
#

you are a darn mazochist if you enjoy that lol

solemn sorrel
#

hey btw @valid leaf could you pls add compatibility with lamb dynamic lights?

#

also btw with the light check thing i mean like, if you do the light check in the legs, then you die if you are partially stuck in a block, but if you do it in the head (in not a thing based on the player model but coordinates) you would die when crawling under a full block

#

actually if i used that in the modpack i would have to have a way to light torches in your hand without just using normal torches that dont run out

#

because having them always light in your inventory doesnt make sense

solemn sorrel
#

my game crashes when i try to load a world with the mod @valid leaf

amber imp
#

java.lang.IllegalStateException: Missing key in ResourceKey[minecraft:root / minecraft:damage_type]: ResourceKey[minecraft:damage_type / darknessdeath:consumed_by_darkness]
at knot//net.minecraft.class_2378.method_47446(class_2378.java:151)
at java.base/java.util.Optional.orElseThrow(Optional.java:403)
at knot//net.minecraft.class_2378.method_40290(class_2378.java:151)
at knot//dev.iseal.darknessconsumesall.Registries.DamageSourceRegistry.initializeServer(DamageSourceRegistry.java:28)
at knot//dev.iseal.darknessconsumesall.DarknessConsumesAll.lambda$onInitialize$0(DarknessConsumesAll.java:19)
at knot//net.fabricmc.fabric.api.event.lifecycle.v1.ServerLifecycleEvents.lambda$static$2(ServerLifecycleEvents.java:49)
at knot//net.minecraft.server.MinecraftServer.handler$zeg000$fabric-lifecycle-events-v1$afterSetupServer(MinecraftServer.java:2342)
at knot//net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:650)
at knot//net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:265)
at java.base/java.lang.Thread.run(Thread.java:833)

#

the problem is here

valid leaf
#

Yeah, i have no clue why its not working, gonna fix it in a couple of hours

valid leaf
#

fixed

waxen fossil
valid leaf