Thomas Jacobs

The mod adds an item called "The Death Note" which is a black book that can be written within like the Book and Quil. If the player writes the name of any named mob, that mob will die in 40 seconds. If the player writes the name followed by a comma, they can write the cause of death of the mob. There are 4 causes of death: smite (the mob gets struck by lightning and dies immediately), explode (the mob explodes and dies), burn (the mob is set on fire and dies). If no cause of death is specified, the mob will simply die. Here is an example: Dinnerbone, smite. Write the instructions on the item's tool tip

Kodari AI
KodariNov 7 at 12:50 am 7
DeathNote
A Minecraft Fabric mod adding a Death Note item. When a player writes a named mob's name in the book, that mob dies after 40 seconds. Writing a name followed by a comma and a cause of death (smite, explode, or burn) triggers an immediate death by lightning strike, explosion, or fire respectively. The item includes tooltip instructions explaining the usage mechanics.

I’ll make the Death Note writable like a vanilla book, add the death instructions to its tooltip, and give it a survival crafting recipe. Named mobs will be affected after 40 seconds; the listed causes will determine how they die.

Created The Death Note. Craft it by surrounding a Book and Quill with four ink sacs in a cross.

Write each named mob’s exact name on its own line, optionally followed by , smite, , explode, or , burn. The mob dies after 40 seconds.

Only loaded mobs are matched when the book is saved. Pending deaths do not persist across server restarts. Signing keeps the Death Note writable.

Thomas Jacobs

the mod isnt compatible with 26.2. Make it so its compatible with 26.2, and also make it so the Death Note can kill players as well

Kodari AI
KodariNov 7 at 12:57 am 3
  1. Update the mod’s 26.2 compatibility.

  2. Make Death Note entries target players as well as named mobs.

The project already declares Minecraft 26.2 and Java 25; I haven’t found a specific version mismatch to change. I’ll extend the existing targeting logic to include online players.

The Death Note now targets online players by their exact username, as well as named mobs.

The project already targets Minecraft 26.2, but I couldn’t identify a specific version mismatch from the files. If it still reports incompatibility, please share the exact error or a screenshot so I can fix the cause.

Thomas Jacobs

the game launches, but when trying to join a world, it says "invalid player data"

Kodari AI
KodariNov 7 at 1:02 am 1

I couldn’t identify the cause from the mod’s code alone. Please share the relevant error and stack trace from latest.log after the failed join, and let me know whether this happens in a new world or only an existing one.

Don’t delete your player data; it may still be recoverable.

Thomas Jacobs
📎 1 file 27,204 chars
📄
pasted-code-1794013424043.txt
txt 289 lines
▶
[01:59:07] [main/INFO]: Loading Minecraft 26.2 with Fabric Loader 0.20.1
[01:59:07] [main/INFO]: Mappings not present!
[01:59:07] [main/INFO]: Loading 50 mods:
	- deathnote 1.0.0
	- fabric-api 0.161.0+26.2
	   |-- fabric-advancement-api-v1 1.0.0+58719a3b9e
	   |-- fabric-api-base 2.0.4+ece063239e
	   |-- fabric-api-lookup-api-v1 2.0.18+11e1c9a39e
	   |-- fabric-biome-api-v1 18.0.6+c7bd5b8e9e
	   |-- fabric-block-api-v1 3.1.0+53515aab9e
	   |-- fabric-block-getter-api-v2 2.0.7+ec56b6019e
	   |-- fabric-command-api-v2 3.1.0+00cb03469e
	   |-- fabric-content-registries-v0 11.3.2+37b1aa249e
	   |-- fabric-convention-tags-v2 4.7.1+1f023a9e9e
	   |-- fabric-crash-report-info-v1 1.0.5+086d547a9e
	   |-- fabric-creative-tab-api-v1 5.0.15+6468574f9e
	   |-- fabric-data-attachment-api-v1 2.2.19+515ac5339e
	   |-- fabric-data-generation-api-v1 25.6.0+c0da0b829e
	   |-- fabric-debug-api-v1 1.0.2+c792624d9e
	   |-- fabric-dimensions-v1 5.1.12+515ac5339e
	   |-- fabric-entity-events-v1 5.0.5+06488ac19e
	   |-- fabric-events-interaction-v0 5.2.8+515ac5339e
	   |-- fabric-game-rule-api-v1 4.0.8+46a6d00c9e
	   |-- fabric-item-api-v1 14.5.0+c68f6cbe9e
	   |-- fabric-key-mapping-api-v1 2.0.5+e2bdee789e
	   |-- fabric-lifecycle-events-v1 4.1.4+29b6eb019e
	   |-- fabric-loot-api-v3 3.0.17+06488ac19e
	   |-- fabric-menu-api-v1 2.0.17+086d547a9e
	   |-- fabric-message-api-v1 7.0.8+bb2ed3f79e
	   |-- fabric-model-loading-api-v1 8.0.17+c80601bb9e
	   |-- fabric-networking-api-v1 6.3.4+2989c6a09e
	   |-- fabric-object-builder-api-v1 24.1.1+6fcd5f039e
	   |-- fabric-particles-v1 5.0.19+d1756aa99e
	   |-- fabric-permission-api-v1 1.0.5+e442d8d09e
	   |-- fabric-recipe-api-v1 9.0.22+11e1c9a39e
	   |-- fabric-registry-sync-v0 7.1.1+c7bd5b8e9e
	   |-- fabric-renderer-api-v1 14.1.4+2b0d8a229e
	   |-- fabric-renderer-indigo 9.1.4+2b0d8a229e
	   |-- fabric-rendering-fluids-v1 6.0.4+06488ac19e
	   |-- fabric-rendering-v1 25.3.3+515ac5339e
	   |-- fabric-resource-conditions-api-v1 6.1.0+10e9a28b9e
	   |-- fabric-resource-loader-v0 3.3.20+4fc5413f9e
	   |-- fabric-resource-loader-v1 2.0.13+9edec1269e
	   |-- fabric-screen-api-v1 5.2.1+5087f8249e
	   |-- fabric-serialization-api-v1 2.0.4+11a26f319e
	   |-- fabric-sound-api-v1 2.0.5+11a26f319e
	   |-- fabric-tag-api-v1 2.1.4+515ac5339e
	   |-- fabric-transfer-api-v1 8.0.13+11dbb7d79e
	   \-- fabric-transitive-access-wideners-v1 8.1.4+67c847259e
	- fabricloader 0.20.1
	   \-- mixinextras 0.5.5
	- java 25
	- minecraft 26.2
[01:59:07] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8.7 Source=file:/C:/Users/Thomas/curseforge/minecraft/Install/libraries/net/fabricmc/sponge-mixin/0.17.5+mixin.0.8.7/sponge-mixin-0.17.5+mixin.0.8.7.jar Service=Knot/Fabric Env=CLIENT
[01:59:09] [main/INFO]: Initializing MixinExtras via com.llamalad7.mixinextras.service.MixinExtrasServiceImpl(version=0.5.5).
[01:59:09] [Datafixer Bootstrap #0/INFO]: 295 Datafixer optimizations took 235 milliseconds
[01:59:13] [Render thread/INFO]: Environment: Environment[sessionHost=https://sessionserver.mojang.com, servicesHost=https://api.minecraftservices.com, profilesHost=https://api.mojang.com, name=PROD]
[01:59:13] [Render thread/INFO]: Setting user: 7liasGyWeet
[01:59:13] [Render thread/INFO]: [Indigo] Registering Indigo renderer!
[01:59:13] [Render thread/INFO]: Backend library: LWJGL version 3.4.1-snapshot
[01:59:14] [Render thread/INFO]: Using graphics backend OpenGL, using drivers: 3.3.0 NVIDIA 621.01
[01:59:14] [Render thread/INFO]: Using graphics device: NVIDIA GeForce RTX 3070 Ti/PCIe/SSE2 (NVIDIA Corporation)
[01:59:14] [Render thread/INFO]: Using graphics device extensions: GL_ARB_multi_draw_indirect, GL_ARB_buffer_storage, GL_ARB_shader_draw_parameters, GL_ARB_base_instance, GL_KHR_debug, GL_ARB_draw_indirect, GL_ARB_clip_control, GL_ARB_vertex_attrib_binding, GL_ARB_direct_state_access, GL_EXT_texture_filter_anisotropic
[01:59:14] [Render thread/INFO]: Reloading ResourceManager: vanilla, deathnote, fabric-advancement-api-v1, fabric-api, fabric-api-base, fabric-api-lookup-api-v1, fabric-biome-api-v1, fabric-block-api-v1, fabric-block-getter-api-v2, fabric-command-api-v2, fabric-content-registries-v0, fabric-convention-tags-v2, fabric-crash-report-info-v1, fabric-creative-tab-api-v1, fabric-data-attachment-api-v1, fabric-data-generation-api-v1, fabric-debug-api-v1, fabric-dimensions-v1, fabric-entity-events-v1, fabric-events-interaction-v0, fabric-game-rule-api-v1, fabric-item-api-v1, fabric-key-mapping-api-v1, fabric-lifecycle-events-v1, fabric-loot-api-v3, fabric-menu-api-v1, fabric-message-api-v1, fabric-model-loading-api-v1, fabric-networking-api-v1, fabric-object-builder-api-v1, fabric-particles-v1, fabric-permission-api-v1, fabric-recipe-api-v1, fabric-registry-sync-v0, fabric-renderer-api-v1, fabric-renderer-indigo, fabric-rendering-fluids-v1, fabric-rendering-v1, fabric-resource-conditions-api-v1, fabric-resource-loader-v0, fabric-resource-loader-v1, fabric-screen-api-v1, fabric-serialization-api-v1, fabric-sound-api-v1, fabric-tag-api-v1, fabric-transfer-api-v1, fabric-transitive-access-wideners-v1, fabricloader
[01:59:14] [Worker-Main-21/INFO]: Found unifont_all_no_pua-17.0.01.hex, loading
[01:59:14] [Worker-Main-23/INFO]: Found unifont_pua-17.0.01.hex, loading
[01:59:14] [Worker-Main-23/INFO]: Found unifont_jp_patch-17.0.01.hex, loading
[01:59:15] [Render thread/INFO]: OpenAL initialized on device OpenAL Soft on Speakers (High Definition Audio Device)
[01:59:15] [Render thread/INFO]: Sound engine started
[01:59:15] [Render thread/INFO]: Created: 512x256x0 minecraft:textures/atlas/particles.png-atlas
[01:59:15] [Render thread/INFO]: Created: 128x128x0 minecraft:textures/atlas/decorated_pot.png-atlas
[01:59:15] [Render thread/INFO]: Created: 2048x1024x0 minecraft:textures/atlas/armor_trims.png-atlas
[01:59:15] [Render thread/INFO]: Created: 512x256x0 minecraft:textures/atlas/paintings.png-atlas
[01:59:15] [Render thread/INFO]: Created: 1024x512x0 minecraft:textures/atlas/shield_patterns.png-atlas
[01:59:15] [Render thread/INFO]: Created: 2048x2048x4 minecraft:textures/atlas/blocks.png-atlas
[01:59:15] [Render thread/INFO]: Created: 512x512x0 minecraft:textures/atlas/chest.png-atlas
[01:59:15] [Render thread/INFO]: Created: 256x128x0 minecraft:textures/atlas/celestials.png-atlas
[01:59:15] [Render thread/INFO]: Created: 1024x512x0 minecraft:textures/atlas/banner_patterns.png-atlas
[01:59:15] [Render thread/INFO]: Created: 1024x512x0 minecraft:textures/atlas/items.png-atlas
[01:59:15] [Render thread/INFO]: Created: 1024x1024x0 minecraft:textures/atlas/gui.png-atlas
[01:59:15] [Render thread/INFO]: Created: 128x64x0 minecraft:textures/atlas/map_decorations.png-atlas
[01:59:15] [Render thread/INFO]: Created: 512x512x0 minecraft:textures/atlas/shulker_boxes.png-atlas
[01:59:22] [Render thread/INFO]: Loaded 1586 recipes
[01:59:22] [Render thread/INFO]: Loaded 1688 advancements
[01:59:39] [Render thread/INFO]: Applied 0 biome modifications to 0 of 66 new biomes in 940.1 μs
[01:59:39] [Server thread/INFO]: Starting integrated minecraft server version 26.2
[01:59:39] [Server thread/INFO]: Generating keypair
[01:59:39] [Server thread/INFO]: Selecting global world spawn...
[01:59:40] [Server thread/INFO]: Loading 0 persistent chunks...
[01:59:40] [Server thread/INFO]: Preparing spawn area: 16%
[01:59:40] [Server thread/INFO]: Saving chunks for level 'ServerLevel[New World]'/minecraft:overworld
[01:59:40] [Server thread/INFO]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_nether
[01:59:40] [Server thread/INFO]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_end
[01:59:40] [Server thread/INFO]: ThreadedAnvilChunkStorage (world): All chunks are saved
[01:59:40] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved
[01:59:40] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved
[01:59:40] [Server thread/INFO]: ThreadedAnvilChunkStorage: All dimensions are saved
[01:59:40] [Server thread/INFO]: Loading 47 chunks for player spawn...
[01:59:40] [Server thread/INFO]: Preparing spawn area: 16%
[01:59:40] [Server thread/INFO]: Preparing spawn area: 16%
[01:59:41] [Server thread/INFO]: Preparing spawn area: 16%
[01:59:41] [Server thread/INFO]: Preparing spawn area: 52%
[01:59:41] [Server thread/INFO]: Time elapsed: 2168 ms
[01:59:41] [Server thread/INFO]: 7liasGyWeet[local:E:9aa9899f] logged in with entity id 1 at (-114.5, 67.0, 446.5)
[01:59:41] [Server thread/ERROR]: Mixin apply for mod deathnote failed deathnote.mixins.json:BookEditMixin from mod deathnote -> net.minecraft.server.network.ServerGamePacketListenerImpl: org.spongepowered.asm.mixin.transformer.throwables.InvalidMixinException @Shadow field server was not located in the target class net.minecraft.server.network.ServerGamePacketListenerImpl. No refMap loaded.
org.spongepowered.asm.mixin.transformer.throwables.InvalidMixinException: @Shadow field server was not located in the target class net.minecraft.server.network.ServerGamePacketListenerImpl. No refMap loaded.
	at org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.attachFields(MixinPreProcessorStandard.java:638)
	at org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.attach(MixinPreProcessorStandard.java:311)
	at org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.createContextFor(MixinPreProcessorStandard.java:286)
	at org.spongepowered.asm.mixin.transformer.MixinInfo.createContextFor(MixinInfo.java:1308)
	at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.apply(MixinApplicatorStandard.java:214)
	at org.spongepowered.asm.mixin.transformer.TargetClassContext.apply(TargetClassContext.java:437)
	at org.spongepowered.asm.mixin.transformer.TargetClassContext.applyMixins(TargetClassContext.java:418)
	at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:351)
	at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:237)
	at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClassBytes(MixinTransformer.java:202)
	at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.getPostMixinClassByteArray(KnotClassDelegate.java:436)
	at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.tryLoadClass(KnotClassDelegate.java:337)
	at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.loadClass(KnotClassDelegate.java:232)
	at net.fabricmc.loader.impl.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:119)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:490)
	at knot//net.minecraft.server.players.PlayerList.placeNewPlayer(PlayerList.java:162)
	at knot//net.minecraft.server.network.config.PrepareSpawnTask$Ready.spawn(PrepareSpawnTask.java:198)
	at knot//net.minecraft.server.network.config.PrepareSpawnTask.spawnPlayer(PrepareSpawnTask.java:91)
	at knot//net.minecraft.server.network.ServerConfigurationPacketListenerImpl.handleConfigurationFinished(ServerConfigurationPacketListenerImpl.java:178)
	at knot//net.minecraft.network.protocol.configuration.ServerboundFinishConfigurationPacket.handle(ServerboundFinishConfigurationPacket.java:22)
	at knot//net.minecraft.network.protocol.configuration.ServerboundFinishConfigurationPacket.handle(ServerboundFinishConfigurationPacket.java:8)
	at knot//net.minecraft.network.PacketProcessor$ListenerAndPacket.handle(PacketProcessor.java:55)
	at knot//net.minecraft.network.PacketProcessor.processQueuedPackets(PacketProcessor.java:38)
	at knot//net.minecraft.server.MinecraftServer.processPacketsAndTick(MinecraftServer.java:1032)
	at knot//net.minecraft.client.server.IntegratedServer.processPacketsAndTick(IntegratedServer.java:107)
	at knot//net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:773)
	at knot//net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:320)
	at java.base/java.lang.Thread.run(Thread.java:1474)
[01:59:41] [Server thread/ERROR]: Couldn't place player in world
java.lang.RuntimeException: Mixin transformation of net.minecraft.server.network.ServerGamePacketListenerImpl failed
	at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.getPostMixinClassByteArray(KnotClassDelegate.java:441)
	at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.tryLoadClass(KnotClassDelegate.java:337)
	at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.loadClass(KnotClassDelegate.java:232)
	at net.fabricmc.loader.impl.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:119)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:490)
	at knot//net.minecraft.server.players.PlayerList.placeNewPlayer(PlayerList.java:162)
	at knot//net.minecraft.server.network.config.PrepareSpawnTask$Ready.spawn(PrepareSpawnTask.java:198)
	at knot//net.minecraft.server.network.config.PrepareSpawnTask.spawnPlayer(PrepareSpawnTask.java:91)
	at knot//net.minecraft.server.network.ServerConfigurationPacketListenerImpl.handleConfigurationFinished(ServerConfigurationPacketListenerImpl.java:178)
	at knot//net.minecraft.network.protocol.configuration.ServerboundFinishConfigurationPacket.handle(ServerboundFinishConfigurationPacket.java:22)
	at knot//net.minecraft.network.protocol.configuration.ServerboundFinishConfigurationPacket.handle(ServerboundFinishConfigurationPacket.java:8)
	at knot//net.minecraft.network.PacketProcessor$ListenerAndPacket.handle(PacketProcessor.java:55)
	at knot//net.minecraft.network.PacketProcessor.processQueuedPackets(PacketProcessor.java:38)
	at knot//net.minecraft.server.MinecraftServer.processPacketsAndTick(MinecraftServer.java:1032)
	at knot//net.minecraft.client.server.IntegratedServer.processPacketsAndTick(IntegratedServer.java:107)
	at knot//net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:773)
	at knot//net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:320)
	at java.base/java.lang.Thread.run(Thread.java:1474)
Caused by: org.spongepowered.asm.mixin.transformer.throwables.MixinTransformerError: An unexpected critical error was encountered
	at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:380)
	at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:237)
	at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClassBytes(MixinTransformer.java:202)
	at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.getPostMixinClassByteArray(KnotClassDelegate.java:436)
	... 17 more
Caused by: org.spongepowered.asm.mixin.throwables.MixinApplyError: Mixin [deathnote.mixins.json:BookEditMixin from mod deathnote] from phase [DEFAULT] in config [deathnote.mixins.json] FAILED during APPLY
	at org.spongepowered.asm.mixin.transformer.MixinProcessor.handleMixinError(MixinProcessor.java:685)
	at org.spongepowered.asm.mixin.transformer.MixinProcessor.handleMixinApplyError(MixinProcessor.java:636)
	at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:367)
	... 20 more
Caused by: org.spongepowered.asm.mixin.transformer.throwables.InvalidMixinException: @Shadow field server was not located in the target class net.minecraft.server.network.ServerGamePacketListenerImpl. No refMap loaded.
	at org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.attachFields(MixinPreProcessorStandard.java:638)
	at org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.attach(MixinPreProcessorStandard.java:311)
	at org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.createContextFor(MixinPreProcessorStandard.java:286)
	at org.spongepowered.asm.mixin.transformer.MixinInfo.createContextFor(MixinInfo.java:1308)
	at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.apply(MixinApplicatorStandard.java:214)
	at org.spongepowered.asm.mixin.transformer.TargetClassContext.apply(TargetClassContext.java:437)
	at org.spongepowered.asm.mixin.transformer.TargetClassContext.applyMixins(TargetClassContext.java:418)
	at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:351)
	... 20 more
[01:59:41] [Server thread/INFO]: 7liasGyWeet (bf82713a-6574-4bb5-ba61-4f4bfd9de711) lost connection: Invalid player data
[01:59:41] [Server thread/INFO]: Stopping singleplayer server as player logged out
[01:59:41] [Server thread/INFO]: Stopping server
[01:59:41] [Server thread/INFO]: Saving players
[01:59:41] [Server thread/INFO]: Saving worlds
[01:59:42] [Server thread/INFO]: Saving chunks for level 'ServerLevel[New World]'/minecraft:overworld
[01:59:42] [Server thread/INFO]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_nether
[01:59:42] [Server thread/INFO]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_end
[01:59:42] [Server thread/INFO]: ThreadedAnvilChunkStorage (world): All chunks are saved
[01:59:42] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved
[01:59:42] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved
[01:59:42] [Server thread/INFO]: ThreadedAnvilChunkStorage: All dimensions are saved
[01:59:42] [Render thread/WARN]: Client disconnected with reason: Invalid player data
[01:59:47] [Render thread/INFO]: Loaded 1586 recipes
[01:59:47] [Render thread/INFO]: Loaded 1688 advancements
[01:59:47] [Render thread/INFO]: Applied 0 biome modifications to 0 of 66 new biomes in 343.6 μs
[01:59:47] [Server thread/INFO]: Starting integrated minecraft server version 26.2
[01:59:47] [Server thread/INFO]: Generating keypair
[01:59:47] [Server thread/INFO]: Loading 0 persistent chunks...
[01:59:47] [Server thread/INFO]: Preparing spawn area: 16%
[01:59:47] [Server thread/INFO]: Saving chunks for level 'ServerLevel[New World]'/minecraft:overworld
[01:59:47] [Server thread/INFO]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_nether
[01:59:47] [Server thread/INFO]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_end
[01:59:47] [Server thread/INFO]: ThreadedAnvilChunkStorage (world): All chunks are saved
[01:59:47] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved
[01:59:47] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved
[01:59:47] [Server thread/INFO]: ThreadedAnvilChunkStorage: All dimensions are saved
[01:59:47] [Server thread/INFO]: Loading 48 chunks for player spawn...
[01:59:47] [Server thread/INFO]: Preparing spawn area: 87%
[01:59:47] [Server thread/INFO]: Time elapsed: 585 ms
[01:59:47] [Server thread/INFO]: 7liasGyWeet[local:E:8ff86f26] logged in with entity id 2 at (-111.5, 65.0, 443.5)
[01:59:47] [Server thread/ERROR]: Mixin apply for mod deathnote failed deathnote.mixins.json:BookEditMixin from mod deathnote -> net.minecraft.server.network.ServerGamePacketListenerImpl: org.spongepowered.asm.mixin.transformer.throwables.InvalidMixinException @Shadow field server was not located in the target class net.minecraft.server.network.ServerGamePacketListenerImpl. No refMap loaded.
org.spongepowered.asm.mixin.transformer.throwables.InvalidMixinException: @Shadow field server was not located in the target class net.minecraft.server.network.ServerGamePacketListenerImpl. No refMap loaded.
	at org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.attachFields(MixinPreProcessorStandard.java:638)
	at org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.attach(MixinPreProcessorStandard.java:311)
	at org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.createContextFor(MixinPreProcessorStandard.java:286)
	at org.spongepowered.asm.mixin.transformer.MixinInfo.createContextFor(MixinInfo.java:1308)
	at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.apply(MixinApplicatorStandard.java:214)
	at org.spongepowered.asm.mixin.transformer.TargetClassContext.apply(TargetClassContext.java:437)
	at org.spongepowered.asm.mixin.transformer.TargetClassContext.applyMixins(TargetClassContext.java:418)
	at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:351)
	at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:237)
	at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClassBytes(MixinTransformer.java:202)
	at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.getPostMixinClassByteArray(KnotClassDelegate.java:436)
	at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.tryLoadClass(KnotClassDelegate.java:337)
	at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.loadClass(KnotClassDelegate.java:232)
	at net.fabricmc.loader.impl.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:119)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:490)
	at knot//net.minecraft.server.players.PlayerList.placeNewPlayer(PlayerList.java:162)
	at knot//net.minecraft.server.network.config.PrepareSpawnTask$Ready.spawn(PrepareSpawnTask.java:198)
	at knot//net.minecraft.server.network.config.PrepareSpawnTask.spawnPlayer(PrepareSpawnTask.java:91)
	at knot//net.minecraft.server.network.ServerConfigurationPacketListenerImpl.handleConfigurationFinished(ServerConfigurationPacketListenerImpl.java:178)
	at knot//net.minecraft.network.protocol.configuration.ServerboundFinishConfigurationPacket.handle(ServerboundFinishConfigurationPacket.java:22)
	at knot//net.minecraft.network.protocol.configuration.ServerboundFinishConfigurationPacket.handle(ServerboundFinishConfigurationPacket.java:8)
	at knot//net.minecraft.network.PacketProcessor$ListenerAndPacket.handle(PacketProcessor.java:55)
	at knot//net.minecraft.network.PacketProcessor.processQueuedPackets(PacketProcessor.java:38)
	at knot//net.minecraft.server.MinecraftServer.processPacketsAndTick(MinecraftServer.java:1032)
	at knot//net.minecraft.client.server.IntegratedServer.processPacketsAndTick(IntegratedServer.java:107)
	at knot//net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:773)
	at knot//net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:320)
	at java.base/java.lang.Thread.run(Thread.java:1474)
[01:59:47] [Server thread/ERROR]: Couldn't place player in world
java.lang.RuntimeException: Mixin transformation of net.minecraft.server.network.ServerGamePacketListenerImpl failed
	at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.getPostMixinClassByteArray(KnotClassDelegate.java:441)
	at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.tryLoadClass(KnotClassDelegate.java:337)
	at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.loadClass(KnotClassDelegate.java:232)
	at net.fabricmc.loader.impl.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:119)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:490)
	at knot//net.minecraft.server.players.PlayerList.placeNewPlayer(PlayerList.java:162)
	at knot//net.minecraft.server.network.config.PrepareSpawnTask$Ready.spawn(PrepareSpawnTask.java:198)
	at knot//net.minecraft.server.network.config.PrepareSpawnTask.spawnPlayer(PrepareSpawnTask.java:91)
	at knot//net.minecraft.server.network.ServerConfigurationPacketListenerImpl.handleConfigurationFinished(ServerConfigurationPacketListenerImpl.java:178)
	at knot//net.minecraft.network.protocol.configuration.ServerboundFinishConfigurationPacket.handle(ServerboundFinishConfigurationPacket.java:22)
	at knot//net.minecraft.network.protocol.configuration.ServerboundFinishConfigurationPacket.handle(ServerboundFinishConfigurationPacket.java:8)
	at knot//net.minecraft.network.PacketProcessor$ListenerAndPacket.handle(PacketProcessor.java:55)
	at knot//net.minecraft.network.PacketProcessor.processQueuedPackets(PacketProcessor.java:38)
	at knot//net.minecraft.server.MinecraftServer.processPacketsAndTick(MinecraftServer.java:1032)
	at knot//net.minecraft.client.server.IntegratedServer.processPacketsAndTick(IntegratedServer.java:107)
	at knot//net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:773)
	at knot//net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:320)
	at java.base/java.lang.Thread.run(Thread.java:1474)
Caused by: org.spongepowered.asm.mixin.transformer.throwables.MixinTransformerError: An unexpected critical error was encountered
	at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:380)
	at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:237)
	at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClassBytes(MixinTransformer.java:202)
	at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.getPostMixinClassByteArray(KnotClassDelegate.java:436)
	... 17 more
Caused by: org.spongepowered.asm.mixin.throwables.MixinApplyError: Mixin [deathnote.mixins.json:BookEditMixin from mod deathnote] from phase [DEFAULT] in config [deathnote.mixins.json] FAILED during APPLY
	at org.spongepowered.asm.mixin.transformer.MixinProcessor.handleMixinError(MixinProcessor.java:685)
	at org.spongepowered.asm.mixin.transformer.MixinProcessor.handleMixinApplyError(MixinProcessor.java:636)
	at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:367)
	... 20 more
Caused by: org.spongepowered.asm.mixin.transformer.throwables.InvalidMixinException: @Shadow field server was not located in the target class net.minecraft.server.network.ServerGamePacketListenerImpl. No refMap loaded.
	at org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.attachFields(MixinPreProcessorStandard.java:638)
	at org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.attach(MixinPreProcessorStandard.java:311)
	at org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.createContextFor(MixinPreProcessorStandard.java:286)
	at org.spongepowered.asm.mixin.transformer.MixinInfo.createContextFor(MixinInfo.java:1308)
	at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.apply(MixinApplicatorStandard.java:214)
	at org.spongepowered.asm.mixin.transformer.TargetClassContext.apply(TargetClassContext.java:437)
	at org.spongepowered.asm.mixin.transformer.TargetClassContext.applyMixins(TargetClassContext.java:418)
	at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:351)
	... 20 more
[01:59:47] [Server thread/INFO]: Stopping server
[01:59:47] [Server thread/INFO]: Saving players
[01:59:47] [Server thread/INFO]: Saving worlds
[01:59:47] [Server thread/INFO]: Saving chunks for level 'ServerLevel[New World]'/minecraft:overworld
[01:59:48] [Server thread/INFO]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_nether
[01:59:48] [Server thread/INFO]: Saving chunks for level 'ServerLevel[New World]'/minecraft:the_end
[01:59:48] [Server thread/INFO]: ThreadedAnvilChunkStorage (world): All chunks are saved
[01:59:48] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved
[01:59:48] [Server thread/INFO]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved
[01:59:48] [Server thread/INFO]: ThreadedAnvilChunkStorage: All dimensions are saved
[01:59:48] [Render thread/WARN]: Client disconnected with reason: Invalid player data
[02:03:23] [Render thread/INFO]: Stopping!
Kodari AI
KodariNov 7 at 1:05 am 1

Fixed the mixin error shown in the log: the server field belonged to a superclass, so the mixin couldn’t find it. The mod now obtains the server through the player’s level instead.

Compile and download the updated jar, replace the old one, and try joining the world again. The log does not indicate that your player data needs deleting.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
14 283
src/main/java/com/kodari/deathnote/DeathNoteMod.java
package com.kodari.deathnote;

import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.creativetab.v1.CreativeModeTabEvents;
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerLifecycleEvents;
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerTickEvents;
import net.minecraft.core.Registry;
import net.minecraft.core.component.DataComponents;
import net.minecraft.core.registries.BuiltInRegistries;
import net.minecraft.core.registries.Registries;
import net.minecraft.resources.Identifier;
import net.minecraft.resources.ResourceKey;
import net.minecraft.world.item.CreativeModeTab;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.component.WritableBookContent;

public final class DeathNoteMod implements ModInitializer {
    private static final Identifier ID = Identifier.fromNamespaceAndPath("deathnote", "death_note");
    private static final ResourceKey<Item> KEY = ResourceKey.create(Registries.ITEM, ID);
    public static final Item DEATH_NOTE = Registry.register(BuiltInRegistries.ITEM, KEY,
            new DeathNoteItem(new Item.Properties().setId(KEY).stacksTo(1)
                    .component(DataComponents.WRITABLE_BOOK_CONTENT, WritableBookContent.EMPTY)));

    @Override
    public void onInitialize() {
        ResourceKey<CreativeModeTab> tab = ResourceKey.create(Registries.CREATIVE_MODE_TAB,
                Identifier.fromNamespaceAndPath("minecraft", "tools_and_utilities"));
        CreativeModeTabEvents.modifyOutputEvent(tab).register(output -> output.accept(DEATH_NOTE));
        ServerTickEvents.END_SERVER_TICK.register(DeathNoteDeaths::tick);
        ServerLifecycleEvents.SERVER_STOPPED.register(server -> DeathNoteDeaths.clear());
    }
}