can anyone make a skript that if a player right click using a sword, shield will comeout on off-hand
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!
on rightclick holding a sword:
if shield of player is empty:
set shield of player to shield
stop
if shield of player is a shield:
set shield of player to air
stop
on rightclick holding a sword:
if shield of player is empty:
set shield of player to shields named "&aSHIELD"
stop
if shield of player is a shields named "&aSHIELD":
set shield of player to air
stop
on hotbar switch:
if slot 40 of player is a shields named "&aSHIELD":
set slot 40 of player to air
on inventory click:
if clicked item is a shield named "&aSHIELD":
cancel event
wait 1 tick
close player's inventory
on rightclick holding a sword:
if shield of player is empty:
set shield of player to shields named "&aSHIELD"
stop
if player is sneaking:
if shield of player is a shields named "&aSHIELD":
set shield of player to air
stop
on hotbar switch:
if slot 40 of player is a shields named "&aSHIELD":
set slot 40 of player to air
on inventory click:
if clicked item is a shield named "&aSHIELD":
cancel event
wait 1 tick
close player's inventory