aabss Posted April 14, 2023 Share Posted April 14, 2023 (edited) tell me if there are problems options: messages: true #set to false if you don't want a message to send when command is executed command offhand: trigger: if player's offhand is air: if player's tool is air: if {@messages} is true: send "&cPlease hold something!" to player else: set player's offhand tool to player's tool clear player's tool if {@messages} is true: send "&aSuccessfully set your offhand to &e%player's offhand tool%&a!" to player else: if player's tool is air: set {offhand::%player's uuid%} to player's offhand tool set player's offhand tool to player's tool set player's tool to {offhand::%player's uuid%} if {@messages} is true: send "&aSuccessfully removed &e%{offhand::%player's uuid%}% &afrom your offhand!" to player delete {offhand::%player's uuid%} else: set {offhand::%player's uuid%} to player's offhand tool if {@messages} is true: send "&aSuccessfully replaced &e%{offhand::%player's uuid%}% &awith &e%player's tool%&a!" to player set player's offhand tool to player's tool set player's tool to {offhand::%player's uuid%} delete {offhand::%player's uuid%} no addons needed just skript offhand.sk Edited April 14, 2023 by aabss 1 Link to comment Share on other sites More sharing options...
NotToxic___ Posted April 15, 2023 Share Posted April 15, 2023 Very good skript, very helpful for owning a smp like server that uses java and bedrock crossplay 10/10 Link to comment Share on other sites More sharing options...
ZeroGaming0101 Posted August 26, 2023 Share Posted August 26, 2023 i found a bug in the 6th line it says "if player's offhand is air:" you missed tool... soo... here is the fix "if player's offhand tool is air:" Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now