#(vukajloo) Full inventory bug?
62 messages · Page 1 of 1 (latest)
(vukajloo) Full inventory bug?
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.
!paste
do i need to check if inventory slots are avaible?
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 #129845: Unnamed Denizen Script Paste... pasted 2025/01/10 11:11:28 UTC-08:00, Paste length: 716 characters across 20 lines, Content: kit_sprinter: type: task script: - if :
!t list_contents
!t <inventoryTag.list_contents>
Returns a list of all items in the inventory.
properties
ListTag(ItemTag)
InventoryTag.contents
Maybe is_full checks armor slots too?
Try
this is not
for first image script works fine
for second it doesn't
!t inventorytag.is_full
Returns whether the inventory is completely full.
ElementTag(Boolean)
yea that returns true only if it is completely full
could check with
!t <InventoryTag.empty_slots>
Returns the number of empty slots in an inventory.
ElementTag(Number)
Returns whether the inventory can fit an item.
ElementTag(Boolean)
- if !<player.inventory.can_fit[clastick]> && !<player.inventory.can_fit[feather]>
is this right if i want to check if inv can't fit this 2 items?
can check multiple at a time
works just for first item
if i empty one slot script goes
!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!
Content of Server Log Paste #129846: Denizen Debug Logs From A Minecraft Server... pasted 2025/01/10 11:27:24 UTC-08:00, Paste length: 3370 characters across 36 lines, Content: Java Version: 21.0.4 Up-time: 25m Denizen Version: Core: 1.91.0-SNAPSHOT (Build 1390), Spigot: 1.3.1-SNAPSHOT (build 7103-DEV) Script Containers: 21, Events: 2
!checklog
Content of Server Log Paste #129846: Denizen Debug Logs From A Minecraft Server... pasted 2025/01/10 11:27:24 UTC-08:00, Paste length: 3370 characters across 36 lines, Content: Java Version: 21.0.4 Up-time: 25m Denizen Version: Core: 1.91.0-SNAPSHOT (Build 1390), Spigot: 1.3.1-SNAPSHOT (build 7103-DEV) Script Containers: 21, Events: 2
Paper version 1.21.3-80-c2294d7 (MC: 1.21.3)
Denizen: 1.3.1-SNAPSHOT (build 7103-DEV) -- (:warning:Outdated build, behind by 22)
@shell sapphire
3 (:triangular_flag_on_post: Offline)
21.0.4 :white_check_mark:
Multiverse-Core: 4.3.14 - Multi-world configuration plugins may affect NPCs in unexpected ways.
FastAsyncWorldEdit: 2.12.2-SNAPSHOT-973;308e909 - This plugin has been known to break the plugin load order on many servers, due to usage of the 'loadbefore' directive in its 'plugin.yml'.
Users who did not have a license accessed the server.
@low igloo cracked @white vapor
Role applied.
Thread created: #1327359334497124353
😦
hey
Content of Server Log Paste #129848: Denizen Debug Logs From A Minecraft Server... pasted 2025/01/10 11:40:44 UTC-08:00, Paste length: 3308 characters across 36 lines, Content: Java Version: 21.0.4 Up-time: 55s Denizen Version: Core: 1.91.0-SNAPSHOT (Build 1390), Spigot: 1.3.1-SNAPSHOT (build 7103-DEV) Script Containers: 21, Events: 2
here
you have a stray && in the wrong spot
but either way you want
!tag inventory.can_fit
Returns whether the inventory can fit an item.
ElementTag(Boolean)
^ note the |...
so, if <player.inventory.can_fit[clastick|feather_stick]>