#Mod to log who stored items in a chest

56 messages · Page 1 of 1 (latest)

agile osprey
#

A mod that logs who stored what item in a chest or container and displays it as the item’s lore

#

ping reply

strange fog
vast nacelleBOT
strange fog
#

Although I'm not positive it does lore

#

Oh misread

#

Ledger is for server admins

agile osprey
#

I am the server admin

#

im fine with serverside stuff

strange fog
#

Oh then you can use ledger, but it doesn't display it in that kind of format

agile osprey
#

I would still prefer one that does let me do that

strange fog
#

That's a good idea for an addon

short raft
#

Screen of sorts

#

For ledger

twin parrot
#

would you want the lore to be visible to everyone?

twin parrot
#

im getting somewhere but I dont like it. the way it works is that for each item in the players inventory, lore gets added which is then hidden, until put into a chest, cons:
Existing lore gets hidden
Stacking is not possible in the chest menu and shift clicking is annoying.

#

if anyone has any ideas on a better way to do it, im all ears

strange fog
agile osprey
#

ok so the video isn’t working for me

twin parrot
#

I thought about that too

#

it would be nice if items with components could just stack but get randomly overwritten by the one of the stacked items

#

so x has data 3 and y has data 6 so whe n stacked into z it will just get data 3 or 6. or nothing

#

but alas, not in the game

agile osprey
#

how viable would it be to just add the data once the chest is closed

#

nvm

#

in realising many flaws

twin parrot
#

yeah I had that idea too but you would have to store who touched it somehow

agile osprey
#

yeah,

#

this same issue exists for datapacks and stuff and it’s quite annoying

#

the way I see people getting around it is by just fully refreshing the nbt, for example, when the item is held in your hand

#

also my main priority to display are tools, shulkers .etc which aren’t stackable anyway, so we could get this working for that right?

twin parrot
#

oh yeah for that its good, maybe a config of item types to display it for

agile osprey
#

yeah

#

now that im thinking about it, i think it could just be possible with datapacks for those specific items

twin parrot
#

myeah but im not sure how you would get the player name

#

well i mean its possible

#

but difficult and annoying.

agile osprey
#

fair enough

#

ill take a closer look later, for now ty for the help

short raft
#

Ledger api*

twin parrot
#

ok so I now made a mixin into slotclicked so when you click on a slot, it checks if its a chest, if it is and the slot that is clicked is a slot in a chest, it applies the lore, and theres a function that clears the specific lore in every players inventory every tick, so now its compatible with other lore, havent taken a look at ledgers but gonna do that later

#

ledger is in kotlin

agile osprey
#

but nice

agile osprey
#

that’s so cool tysm

#

so, what’s really left of it?

twin parrot
#

some bugs to fix, also it works in a pretty janky way so im hoping ill think of a solution to that but prolly not

agile osprey
#

will there be any sort of config?