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!
You can always check out skUnity Downloads for downloads and any other information about Skript!
set {_item} to player's held item
set slot <slot> of player to {_item}
remove {_item} from player
set {_item} to slot <slot> of player
set slot <slot> of player to {_item}
remove {_item} from player
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}
Like when a player rightclick on a block i codet the item they rightclicked with is going to a slot i put in1. examplecode_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}
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
on rightlick:
set {_i} to clicked item
set slot 9 of player's current inventory to {_i}
set clicked item to air
well set {_i} to clicked itemmark as solved if it helped
set clicked item to aircode_language.skript:on rightlick: set {_i} to clicked item set slot 9 of player's current inventory to {_i} set clicked item to air
Yeah my bad, I worked on my project. and i my brain was told me: Clicked item...Obviously theres no clicked item in a right click event