Solved Move item from slot to slot?

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
Try this

code_language.skript:
set {_item} to player's held item
set slot <slot> of player to {_item}
remove {_item} from player

or

code_language.skript:
set {_item} to slot <slot> of player
set slot <slot> of player to {_item}
remove {_item} from player
 
code_language.skript:
command /test:
    trigger:
        open chest with 3 rows named "bla" to player
        set {_s} to 0
        while {_s} is not 27:
            set slot {_s} of player's current inventory to green stained glass pane named "bla"
            wait a seconds
            set slot {_s} of player's current inventory to air
            add 1 to {_s}
1. example

there is a lot example

what do you want really?
 
code_language.skript:
command /test:
    trigger:
        open chest with 3 rows named "bla" to player
        set {_s} to 0
        while {_s} is not 27:
            set slot {_s} of player's current inventory to green stained glass pane named "bla"
            wait a seconds
            set slot {_s} of player's current inventory to air
            add 1 to {_s}
1. example

there is a lot example

what do you want really?
Like when a player rightclick on a block i codet the item they rightclicked with is going to a slot i put in
 
Like when a player rightclick on a block i codet the item they rightclicked with is going to a slot i put in
code_language.skript:
on rightlick:
    set {_i} to clicked item
    set slot 9 of player's current inventory to {_i}
    set clicked item to air
 
upload_2017-11-7_20-41-35.png

[doublepost=1510084600,1510083693][/doublepost]
code_language.skript:
on rightlick:
    set {_i} to clicked item
    set slot 9 of player's current inventory to {_i}
    set clicked item to air
set clicked item to air
will not work with or with not event-item
 
Do you have skellett? if not, please download it. if yes. maybe you need update your skellett, if it newste version, plese tell me the Skript version (/ver skript)
 
Status
Not open for further replies.