Jump to content

/stack


Jessica907432
 Share

Recommended Posts

I don't know if this is what you need but this is what I made

options:
    prefix: &6Stack &7>>

command /stack:
    permission: stack.use
    permission message: {@prefix} &cNo Permission
    trigger:
        if tool of player is air:
            send "{@prefix} &7&lNo Item Named"
        else:
            set {_g} to 64
            set {_i} to held item of player
            set {_a} to amount of {_i} in player's inventory
            if {_a} is more than or equal to 64:
                send "{@prefix} You already Have 64 Of This Item"
            else:
                remove {_a} from {_g}
                wait 5 ticks
                give player {_g} of {_i} 
                send "{@prefix} Stacked Your Item"

 

 

                                                                           Discord ----- Boxmonk#7877

Link to comment
Share on other sites

2 hours ago, Boxmonkey said:

I don't know if this is what you need but this is what I made


options:
    prefix: &6Stack &7>>

command /stack:
    permission: stack.use
    permission message: {@prefix} &cNo Permission
    trigger:
        if tool of player is air:
            send "{@prefix} &7&lNo Item Named"
        else:
            set {_g} to 64
            set {_i} to held item of player
            set {_a} to amount of {_i} in player's inventory
            if {_a} is more than or equal to 64:
                send "{@prefix} You already Have 64 Of This Item"
            else:
                remove {_a} from {_g}
                wait 5 ticks
                give player {_g} of {_i} 
                send "{@prefix} Stacked Your Item"

 

 

                                                                           Discord ----- Boxmonk#7877

This is what i needed tysm

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share



×
×
  • Create New...