#Mod to log who stored items in a chest
56 messages · Page 1 of 1 (latest)
!!Mr ledger
Oh then you can use ledger, but it doesn't display it in that kind of format
oh, alright
I would still prefer one that does let me do that
That's a good idea for an addon
would you want the lore to be visible to everyone?
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
yeah
oh wow
Some extra data on the item, and override the rendering on the client. That way, they have the same lore already.
ok so the video isn’t working for me
myeah but the problem is that I want it to be serverside, or atleast, thats the idea
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
how viable would it be to just add the data once the chest is closed
nvm
in realising many flaws
yeah I had that idea too but you would have to store who touched it somehow
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?
oh yeah for that its good, maybe a config of item types to display it for
yeah
now that im thinking about it, i think it could just be possible with datapacks for those specific items
myeah but im not sure how you would get the player name
well i mean its possible
but difficult and annoying.
Check ledgers database n pate hmmm
Ledger api*
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
video still isn’t working
but nice
yoo nice
that’s so cool tysm
so, what’s really left of it?
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
will there be any sort of config?