Skip to content

Add auto-equip on grave interaction#48

Merged
Dream-Master merged 8 commits into
masterfrom
feature/grave-auto-equip
May 10, 2026
Merged

Add auto-equip on grave interaction#48
Dream-Master merged 8 commits into
masterfrom
feature/grave-auto-equip

Conversation

@Eldrinn-Elantey
Copy link
Copy Markdown

@Eldrinn-Elantey Eldrinn-Elantey commented Apr 27, 2026

Graves now auto-equip items back into their original slots on collection — armor to armor, baubles to baubles, TConstruct accessories to TConstruct slots, etc. Slot positions are captured at death and restored exactly; if a slot is occupied the system falls back to heuristic equip. Soft deps for Baubles Expanded, AdventureBackpack2, Minecraft Backpack Mod, TinkersConstruct.

Grave is indestructible by hand while it has items. Disappears automatically when emptied.

Action Owner Other player
LMB / Shift+RMB collect to original slots "This is not your grave"
RMB (empty hand) show death message show death message
RMB (shovel) force-drop all force-drop all

Players can now retrieve items from graves directly into equipment slots.
Right-click shows death message, Shift+right-click or left-click auto-equips
armor, baubles, and backpacks into their correct slots. Remaining items go
to inventory. Grave is unbreakable by hand while it contains items.
Soft dependencies: Baubles Expanded, AdventureBackpack2, Minecraft Backpack Mod, Tinkers' Construct.
@Eldrinn-Elantey Eldrinn-Elantey requested a review from a team April 27, 2026 22:39
@github-actions
Copy link
Copy Markdown

#49

@LazyFleshWasTaken
Copy link
Copy Markdown

Shift+right-click or left-click auto-equips grave contents: armor into armor slots, baubles into bauble slots, AdventureBackpack and Minecraft Backpack into their respective slots, Tinkers' Construct accessories into extended armor slots

only problem I have with this is some baubles can go into armour slots, which can banish armour into inv,
and some people prefer baubles like the travel staff of the universal terminal to be in their hotbar.

Does this save the precise location of each itemstack, or just force iteratively for each item?

@Ranzuu
Copy link
Copy Markdown

Ranzuu commented Apr 27, 2026

How about saving every slot in cache or whatever then when destroying or clicking the grave everything will end up insame places

@Eldrinn-Elantey
Copy link
Copy Markdown
Author

@LazyFleshWasTaken @Ranzuu I've made some changes. Please take a look.

Comment thread src/main/java/openblocks/common/tileentity/TileEntityGrave.java
Comment thread src/main/java/openblocks/common/PlayerDeathHandler.java
@Eldrinn-Elantey Eldrinn-Elantey requested a review from Worive May 10, 2026 12:09
Copy link
Copy Markdown

@Worive Worive left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@Dream-Master Dream-Master merged commit 397eb61 into master May 10, 2026
1 check passed
@Dream-Master Dream-Master deleted the feature/grave-auto-equip branch May 10, 2026 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants