Dr. Cyano's Lootable Bodies
A Forge mod for Minecraft 1.8.0 and Minecraft 1.8.9
Summary
This mod protects your items from despawning when you die by storing them on a dead body that you can later loot to get your stuff back. Your dead body is unharmed by fire, explosions, and falling, with configurations options to make your lootable bodies completely invulnerable (or more vulnerable, if you so choose). Simply right-click on a dead body to access its inventory. Use a shovel to dispose of your body after you looted it (3 hits with a shovel will remove the body).
Change Log
- recompiled for Minecraft Forge 1.8.9
Version 1.3.5
- Fixed bug that caused a compatibility issue with some other mods
Version 1.3.5
- Fixed bug that made corpses not behave properly on servers with plugins (or any other mod that uses the onLivingAttack Forge hook)
Version 1.3.4
- Fixed bug where you could loose items if a corpse is killed by a third party while you are adding items to the corpse
- You can now specify that corpses only decay when their inventories are empty
- Corpses no longer get stuck in walls! If forced into a wall, the corpse will teleport out.
Version 1.3.3
- Shortened the hitbox height of the corpse to just under 1 block tall
- Corpses now respect the keepInventory game rule
- Multiple people can now loot the same corpse at the same time (this feature will be removed if it causes synchonization issues)
- Rotten flesh and bones are now random instead of always being 4 bones and 2 rotten flesh (unless disabled in the config file)
Version 1.3.2
- Made a few changes to reduce the likelihood that an item from another mod will mistakenly be damaged when it is not supposed to be damageable
Version 1.3.1
- Added config option to let you disable adding bones and rotten flesh to your corpse
Version 1.3.0
- Added ability to make corpses self-destruct after a period of time (disabled by default, decay time is configurable)
- Fixed an item duplication bug
- Added language translations for spanish, chinese, german, and italian (and made more english language files for better localization)
Version 1.2.0
- Bodies don't play suffocation sound underwater
- Larger corpse inventory (configurable size)
- can dispose body using any shovel-like tool (cross-mod support)
Version 1.1.3-backport
- There was a bug in 1.1.2 in the 1.7.10 backport (not in the 1.8 version) that caused items that differened only in their metadata to stack together and combine.
Version 1.1.2
- Changed the config file. Dead bodies are now invulnerable by default and have config options to run on specific vulnerabilities (opposite as before)
Version 1.0.1
- Small improvement to stacking behavior of vacuumed items
Version 1.0.0-backport
- This is a port of the mod to Minecraft 1.7.10. Note that bodies will all be skeletons (no player skins) because MC 1.7.10 does not let me load player skins.
Version 1.0.0
- First release of Lootable Bodies. Tested with server and in single-player, requires Forge-1.8-11.14.0.1252.
Save Your Inventory When You Die
When you die, this mod spawns a corpse (with your player skin, unless fancy corpses are disabled) and puts all of your inventory on the corpse. Damageable items suffer some damage (configurable), bit will never be destroyed. Even near-by items on the ground are sucked into your corpse, so that even items in extra inventories provided by other mods will also be saved on your corpse.
In the following sequence of images, my character gets killed by a Creeper and then loots his own dead body to get his stuff back.
Your lootable body is fire-proof, explosion-proof, and fall-proof by default.
Here is my body right before a TNT explosion...
...and right after.
Disposing Bodies
Hitting a body 3 times with a shovel will dispose it, dropping any equipment it has still on it. Damaging the body with other damage sources will also destroy it if that damage type is enabled by the config options (see Configuration Options below).
Configuration Options
corpse_HP This is the number of half-hearts of damage that needs to be dealt to the body to destroy it. If no damage vulnerabilities are specified, then only a shovel can destroy a body (and it only takes 3 hits from the shovel, no matter how many HP it the body has). Default is 50 (25 hearts).
add_bones_to_corpse If set to true, then bones and rotten flesh will be added to your corpse inventory when you die. Default is true.
corpse_inventory_size This is the total number of items that the corpse can hold. Only 54 items are visible at a time (the rest will appear in the inventory window as soon as there's space). Default is 108 items and the lowest allowed value is 54 (which is the number of items visible in the GUI).
use_player_skin If true, dead bodies use the skins of their former selves. If false, dead bodies are skeletons.
item_damage_on_death Damage suffered by damageable items on death (you didn't think that death was a free-ride, did you?). This item damage will never destroy an item, leaving it with 1 durability instead. You can set this value to 0 if you don't want item damage on death, default is 32 durability damage.
enable_corpse_decay If true, corpses will self-destruct after a preiod of time (default: false). See also corpse_decay_time.
corpse_decay_time If enable_corpse_decay=true, then this is the age at which a dead body will self-destruct, dropping its items. The format is hours:minutes:seconds or just hours:minutes. For example: 0:05 is five minutes and 48:00:10 is two days and ten seconds. Default is 1:00:00 (1 hour).
empty_only_decay If true and corpse decay is enabled, then corpses only decay when they have no items on them.
hurt_by_weapons If true, bodies can be damaged by attacking it (default: false).
hurt_by_fire If true, bodies will be damaged by fire and lava (default: false).
hurt_by_fall If true, bodies will be damaged by falling long distances (default: false).
hurt_by_explosions If true, bodies will be damaged by creepers and TNT (default: false). Note that if you disable explosion damage but enable fall damage, then explosions will eventually destroy a body by throwing it into the air and hurting it with fall damage.
hurt_by_cactus If true, bodies will be damaged by cacti (default: false).
hurt_by_block_suffocation If true, bodies will be damaged by being stuck inside a block (default: false).
hurt_by_other If true, bodies will be damaged by damage sources not covered by the other options (default: false).
hurt_by_all If true, bodies will be damaged by anything that damages a player (default: false).
Known Issues
- The Slime Dungeons mod sometimes conflicts with this mod, causing a crash related to assigning the same entity ID multiple times. Unfortunately, there is nothing I can to Lootable Bodies to prevent this conflict, so if it happens to you, you must either remove Slime Dungeons or Lootable Bodies.
- The dead body model in Lootable Bodies is not the same model as the player, so mods that change the appearance of players will not apply the same change to your dead body.
F.A.Q.
A: Grabbing player skins on demand is a new feature in Minecraft 1.8. I don't have the time nor the interest in reimplementing Minecraft 1.8 in Minecraft 1.7.10.
Q: Please can you add player skins to the 1.7.10 backport?
A: No, I cannot.
Q: Can I use this mod in my public mod pack?
A: Yes you can. You do not need my written permission, though I would appreciate it if you could post a link to your mod pack on this thread so I can check it out for myself.
Q: What happens if my corpse falls into the void?
A: Here's what the experts say:
Q: When I die holding an item from mod ________, the game glitches/crashes/changes the item into something else! How do I fix that?
A: Set item_damage_on_death=0 in the config file and see if that fixes the problem. If not, send me you crash report. The problem here is that some mods use the damage value of an item for metadata but still report the item to be damageable when Lootable Bodies tries to figure out whether the item should receive item damage.
Q: Could you please port this mod to Minecraft 1.7.2/1.6.4/1.5.2/etc.?
A: No way! Just backporting to 1.7.10 added an addtional 200 lines of rendering code. Minecraft 1.8 is so much easier. Going back even further would be unbearably painful. However, there's nothing stopping you from forking my GitHub project and making your own backport.
Download:
DrCyanos Lootable Bodies for MC 1.8.9 (req. Forge-1.8.9-11.15.0.1705 or later): CyanosLootableBodies-1.4.0.jar
DrCyanos Lootable Bodies for MC 1.8.0 (req. Forge-1.8-11.14.0.1299 or later): CyanosLootableBodies-1.3.6.jar
DrCyanos Lootable Bodies for MC 1.7.10 (built with Forge-1.7-10.13.2.1230): CyanosLootableBodies-backport-1.7.10_1.3.6.jar
All Versions: DrCyanos_Lootable-Bodies/releases
Source code: https://github.com/cyanobacterium/DrCyanos_Lootable-Bodies
License/Redistribution:
This mod is open source. You may include it in your mod-packs, but remember to give credit to me (Cyanobacterium aka Dr. Cyano aka Synechocystis). You do not need to ask for my permission, but feel free to post links to your mod-pack on this thread.
Install Instructions:
1. Install the latest version of Forge mod loader
2. Download CyanosLootableBodies-X.X.X.jar
3. Put CyanosLootableBodies-X.X.X.jar in the mods folder of your Minecraft install (created by Forge when you first run it)
Videos:
Here's my favorite video:
Other videos:
All Mods by DrCyano:
Power Advantage & Steam Advantage (MC 1.8)
Base Metals (MC 1.8)
DrCyano's Lootable Bodies (MC 1.8)
Minecraft Mineralogy (MC 1.7.10, 1.8)
DrCyano's Wonderful Wands (MC 1.8, 1.7.10, 1.6.4)
Tombstone (MC 1.6.4)
Cyano's Basic BuildCraft Machines (MC 1.6.4)
1
B.
We seem to be winning a lot lately.
Also, Buttons, you should stop eating dynamite.
1
"Nice to meet ya. And who's the pretty lady hiding behind ya?"
Lunacia shies away and hides behind Asteral
1
Lunacia hides behind Asteral.
"Hey, rude. But yes, we met before. I'm Gustav, a talking skull. Surprising, eh?"
2
OOC: I have to agree with ScorpionXR64.
For IRIS it's understandable, as Nucleep stated before that there is no sentience besides IRIS in IRIS' 'company', and that the androids are all controlled by her, so expensive AI doesn't have to be made for each single android.
On the other hand, neither Aleron, Kala, Cali and the Mare have the resources needed to start such an ambitious project. Darth doesn't either (This can be questioned, since he has enough resources to built huge submersible battleship-aircraftcarriers, but let's not go too deep into detail), instead opting to create Semi-Sentient Humanoids that can only follow orders, meaning that they are useless if not commanded and thus impossible to posses.
Tl;Dr: IRIS has an acceptable excuse, the others don't.
2
OOC: To be honest, at this point there are almost no solutions anymore besides having the fight not happen, but even that is only temporary.
The 'blocks' hate/dislike eachother too much. Even if a fight doesn't happen interaction between characters is mostly restricted between the blocks:
The ex-snarl characters and Cali hate eachother and will fight.
Darth and Aleron hate eachother and will fight.
IRIS doesn't like anyone who is not her ally.
Even if we don't fight, RP possibilities are severely limited, the relations have deteriorated too far to allow new friendships to be made. I fear that this RP is nearing it's end, and it would either go out with a bang, or with people leaving because it has grown boring. I think this RP has been slowly dying ever since Anti-Tar lost the fight. From there on there has basically only been fighting. The Mare vs the Snarl fights resulted in the final splitting: Those who were allied with the Mare have formed one block, while the ex-snarl characters have inherited the Snarl's hate for the Mare's allies and have formed the other block. IRIS and Darth have both joined the Snarl Block since it most matched their interests.
It ultimately comes down to shpore whether or not to end it now, but I fear that there isn't much else that can be done.
1
OOC: It depends. If you're talking about who has the most troops then the USSR would be IRIS followed closely by Darth who would represent China, though swapping the two would also work. Strength wise it's quite similar, but Darth would probably be USSR because Nukes. Policy wise IRIS would definitely be the USSR. Victory wise though? Not sure which side will be the victor. All is still calm, and neither side is likely to collapse soon.
1
OOC: Your character tries to kill ours, so we are killing him. There's no way he can get out, since:
-He's being skewered by two spears
-The entrances/exits are blocked
tl;Dr: RIP
1
They chase it around a corridor, but it disappears. Suddenly, contact is lost with the one of the androids.
1
Message Contents:
"I need help. I am a soldier aboard a People's Army Ekranoplan, and we've recently crashed deep inside a forest. Something is aboard with us, and it's killed everyone on board but me. I need help quickly - I don't want to die. Please, send help!"
Attached to the message are some coordinates
1
π