Do not expect anything exceptional from this mod. I just wanted to try my hand at making my own. You can play with it, it should work (1.20.1, Forge 47.4.20+), no I'm not going to make versions for any other minecraft versions. I did select MIT License for this on the github repository though, I think that just means you can do whatever with it in any projects as long as you keep a copy of this mod's license in said projects (just don't pass it off as your own please).
Various death-related commands:
/suicide - kills the player who used it. Level 0 permissions command, the purpose is to allow players to /kill themselves even in worlds where cheats are off or the players do not have permissions. Can be disabled by setting gamerule allowSuicide to false.
/itemkill [targets] - kills all dropped items within 1000 blocks of the player who ran the command, or all dropped items within the target selector. Level 2 permissions command (the same as /kill), the purpose is simply that sometimes when building a map and I try to use "/kill @e[type=item]" but I accidentally put a space between "@e" and "[type=item", and everything died. This ensures that nothing important dies, even if the target selector is typed wrong. The command only kills items, so "/itemkill @e" will act the same as "/kill @e[type=item]". Note that it will kill items dropped by any source, not just mob drops. Maybe if I get better at mods in the future I'll be able to change it.
/xpkill [targets] - same thing as /itemkill, but with experience orbs. Level 2 permissions command, same purpose as /itemkill but for experience orbs.
/killdrops [targets] - kills all dropped items and experience orbs either within 1000 blocks of the player who ran the command, or all dropped items and experience orbs within the target selector. Level 2 permissions command, it's the equivalent of running both /itemkill and /xpkill with the target selector (if any) provided. The main purpose of this command is if you just killed a lot of monsters or whatnots (for testing purposes, right?), you can just quickly use /killdrops to clear out the items. Basically I made this command for when I'm messing around with an overpowered weapon, running around and killing everything that spawns, and then afterwards I can use the command to clean up the items and experience orbs I didn't collect. Note that it will kill items and experience orbs dropped by any source, not just mob drops. Maybe if I get better at mods in the future I'll be able to change it.
In some releases I might forget to comment out /test, don't bother with that command. If you ever encounter a version where I forgot to remove it, it's best not to use said command. Who knows what it's purpose will be at that point in time.
/finddeath - logs a chat message telling you the coordinates of your last death position (as well as dimension, but that's probably useless). It can be disabled by setting the gamerule allowFindingLastDeath to false. Level 0 command (no cheats or operator permissions required)
/warpdeath - teleports the user to their last death position. It's possible that some mods that add custom dimensions that just absolutely have to be entered a specific way might break because the player didn't enter the dimension in the correct way, but there's probably very few mods that do this. Level 0 command (no cheats or operator permissions required). Can be disabled by setting the gamerule allowWarpingToLastDeath to false. Can also be customized a little:
The gamerule deathTeleportCooldown is the time (in ticks (20 ticks = 1 second)) of the cooldown between the successful uses of the command (meaning trying to use it before the cooldown ends won't start the cooldown timer again). Set to 1200 (1 minute) by default. Now that I think about it, I honestly don't know why I added this gamerule.
The gamerule allowMultipleWarpsPerDeath can be set to false to make sure that players only get one chance to go back to their death point with /warpdeath, so that they can't just die at a rare location and now just use /warpdeath to go there whenever they want. Set to false by default.
The gamerule deathWarpExpireTime is the time (in ticks) the player has after dying before they can no longer use /warpdeath (until they die again and the timer starts once more), this ensures that if they die somewhere and make it back manually without using /warpdeath, they can't just have a "free" teleport to that location "saved" up, it'll expire after the chosen time. Set to 3600 (3 minutes) by default.
In the future I really should add a gamerule for a wait period to use /warpdeath after dying, that way players who kill you at least get the opportunity to loot your stuff in pvp.
Also adds a creative mode tab "Hidden Items", meant to contain items that don't already appear in a creative mode tab somewhere (such as Knowledge Book or Wither Spawn Egg).
This part just makes it so that the creative inventory tabs generate twice instead of once, the first time they're being scanned for missing items, so that the second time the mod can reveal Hidden Items correctly.
As a side note, I will say that I noticed that if the setting "Operator Items Tab" (in vanilla minecraft Controls in options) is false, it's contents are added into the "Hidden Items" tab. I mean, I did make it that way...
I will also say that despite my best efforts, the game crashed whenever I tried to put "minecraft:air" into the Hidden Items tab so I had to leave it out, there may be other items from other mods that also crash the game when forced into a creative tab. In the future I'll probably add a config file to allow you to be able to exclude certain items from the Hidden Tab (and I'll probably make it have problematic items from popular mods by default).
If this mod is causing any conflicts with any others, just get rid of this mod. I don't blame you. If your modpack was working but stopped once you added this, you have the right to assume Minecraft Tools is at fault.

