Traveler's Backpack [Fabric]

Traveler's Backpack [Fabric]

11M Downloads

When deep underground, backpack is placed at y-level 1 on death no matter what level you were at on death

Landrin201 opened this issue ยท 4 comments

commented
  1. ALWAYS PROVIDE INFORMATION ABOUT MODLOADER (Fabric / Forge) AND MOD VERSION (For Example 1.19.2-8.2.10)

MC: 1.19.4, forge 45.0.43
Configs: backpackDeathPlace = true, backpackForceDeathPlace = true
The mod is running on a server

  1. Describe the bug
    When below y-level 1, I've noticed that when you die with the backpack equipped it will not be placed in the spot where you died; instead, it will be placed at y-level 1. So, if you were at coordinated x100, z100, y-30, then the backpack will be placed at x100, z100, y0.

  2. Write steps to reproduce the bug
    Go deep underground, below y-level 1, and /kill

  3. What is expected behaviour
    The backpack should be placed where you died

  4. Screenshots (If applicable)

commented

I also am using this gravestone mod: https://www.curseforge.com/minecraft/mc-mods/gravestone-mod

I thought that it may have been a conflict there, so I tested above ground: it works fine with the gravestone mod when above y-1. The backpack successfully gets placed next to the gravestone.

commented

I found the problem: When void protection is on, the y-level is set to 1. I think you should add to the if statement.

First, check to see if the player is in the End. If they are, and they died below y=0, set temp_y to y=1.
IF the player is not in the end, then set tempY to -64. PErsonally, I'd actually set it higher in this case- if you set it to do, say, -55 then you'd ensure that it can't get placed under bedrock and become unretrievable.

commented

i forgot about this issue will be fixed in the next update