#(drjoenh) Inventory filling

19 messages · Page 1 of 1 (latest)

pure hatch
#

Hello, Ive been working on my /recipe command which would open as a GUI to display different ways of crafting specific item... I got to the point where I am filling up inventory based on the search result. To fill up the inventory im using inventory fill command, the problem is that I cant specify amount of those specific items I want to fill.
Ill provide few pics for better understading: (Expected amount isnt 64)
Script: https://paste.denizenscript.com/View/110843
What should I do to fill the inventory with specific amount of items?

rapid lionBOT
#

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>

strange widgetBOT
# sullen pivot !debug
Info: 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!

pure hatch
raven gale
pure hatch
#

lmao, feels like im the only one D:

pure hatch
#

~~```
recipeProcedure_inventoryfiller:
type: task
debug: false
definitions: inventory[InventoryTag]|items[ListTag]
description: Returne inventar, v ktorom nahradi prazdne sloty v inventari danymi itemami.
script:
- define items_count 1
- foreach <[inventory].list_contents> as:item:
- foreach stop if:<[items_count].is_more_than[<[items].size>]>
- foreach next if:!<[item].equals[<item[air]>]>
- inventory set destination:<[inventory]> slot:<[loop_index]> origin:<[items].get[<[items_count]>]>
- define items_count:+:1

Made this filler task, if anyone would need it as well..
#

oh

#

!paste

strange widgetBOT
pure hatch