#(mrcrash) Item quantity in inventory script
1 messages · Page 1 of 1 (latest)
(mrcrash) Item quantity in inventory script
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>
!m quantity
Changes the number of items in this stack.
ItemTag
ElementTag(Number)
<ItemTag.quantity> Returns the number of items in the ItemTag's itemstack.
<ItemTag.max_stack> Returns the max number of this item possible in a single stack of this type. F...
So i need to adjust them ? That can't be set directly inside the script ?
does your item have an item script?
Yes
in the slots key in the inventory script, you can do [my_item[quantity=3]]
^^
Help us help you by pasting your script to https://paste.denizenscript.com/New/Script and linking it back here.
Content of Denizen Script Paste #111252: Unnamed Denizen Script Paste... pasted 2023/06/16 10:47:57 UTC-07:00, Paste length: 11354 characters across 397 lines, Content: cmd_jobs_shop: type: command
ye ^
yeah i don't think you're able to stack pickaxes even with the mechanism
okay so i need to adjust each ?
oh wait, you can stack pickaxes with the quantity mechanism, i just tried it in my inventory
(excuse the random stuff, it's my testing world haha)
lol np x)
so i need to adjust each of them on player open inventory ?
:/
huh, that's a bit stange i was able to do it using just the [netherite_pickaxe[quantity=2]]
!debug
If you need help with a script issue, one of the most powerful tools Denizen has to offer is full debug output. This is displaying in your console whenever scripts are running until you turn debug off. To share a debug log quickly and easily with helpers, simply run the command /denizen debug -r in-game to begin recording, then run through the part of the script you need help with, then run the command /denizen submit. This will give you a link to a paste of the debug log, which you can then copy/paste back to us!
can you send a debug please
where do u use it ?
my_inventory:
type: inventory
inventory: chest
gui: true
slots:
- [] [] [] [] [] [] [] [] []
- [] [] [] [netherite_pickaxe[quantity=2]] [] [] [] [] []
- [] [] [] [] [] [] [] [] []
just a test inventory
yeah that's working
very weird
maybe use def make it not worky ?
yes
def ruin quantity mech
Okay we do specify the quantity inside the def
and it's work
Last question
I don't think it's possible but I ask you never know
Is it possible to display the small 1 at the bottom of a single item?
Just like the little 2 when you have two stacker items
I can use a resource pack if needed
you could use the item itself and add the "1" to the texture 😄
Hmm i think the number go outside the slot quare
Its a client-render-thing, so not possible. It could probably be done with a resource pack, a separate item model that shows a number is what I would think is a decent solution.
Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.
If not yet resolved, please reply below to tell us what you still need.
(Note that if there is no reply for a few days, this thread will eventually close itself.)
@stone violet
Yeah probably the better way , thanks