#On Inventory Full

1 messages · Page 1 of 1 (latest)

autumn parcel
#

thats a bummer

silent sphinx
lilac brook
#

max stack size of x > 1: ?

silent sphinx
#

I tried that and amount

#

Here's a example of it

on break:
    loop all items in player's inventory:
        set {_amount} to amount of loop-item
        if loop-item is a block:
            if {_amount} = 64:
                if {_amount} is not less than 64:
                    add 1 to {_fullcheck}    
        if {_amount} = 1:
            add 1 to {_fullcheck}                
                
    if {_fullcheck} = 36:
        message "&cYou don't have enough space."
lilac brook
silent sphinx
#

I was hoping that would allow stackable items to still stack up

lilac brook
#

second condition makes no sense

#

how could it be less than 64 if it is 64

silent sphinx
#

Oh I see what you mean

#
on break:
    loop all items in player's inventory:
        set {_amount} to amount of loop-item
        if {_amount} = 64:
            add 1 to {_fullcheck}    
        if {_amount} = 1:
            add 1 to {_fullcheck}                
                
        if {_fullcheck} = 36:
            message "&cYou don't have enough space."
silent sphinx