Graphick2 Posted November 17, 2019 Share Posted November 17, 2019 (edited) While I was working on a custom item I was using if click type is right mouse button however it seems to be returning an error anytime I try it. I just wanted to know if this was just an issue with my server or if anyone else is having this issue. Example Code command /testytest: trigger: open virtual chest inventory with size 1 named "" to player wait 2 tick format gui slot 1 of player with diamond named "Left Click" to run: if click type is left mouse button: send "Left Clicked" close player's inventory format gui slot 3 of player with emerald named "Right Click" to run: if click type is right mouse button: send "Right Clicked" close player's inventory format gui slot 5 of player with iron ingot named "Middle Click" to run: if click type is middle mouse button: send "Middle Clicked" close player's inventory Edited November 17, 2019 by Graphick2 Link to comment Share on other sites More sharing options...
AWorthySon Posted November 17, 2019 Share Posted November 17, 2019 Heyo! Please correct it to "Click Type". You typed "Clicked type" Link to comment Share on other sites More sharing options...
Graphick2 Posted November 17, 2019 Author Share Posted November 17, 2019 1 minute ago, Creeper1841 said: Heyo! Please correct it to "Click Type". You typed "Clicked type" anyways still doesn't work both ways Link to comment Share on other sites More sharing options...
Creepers_ Posted November 24, 2019 Share Posted November 24, 2019 Use set slot instead of format slot Link to comment Share on other sites More sharing options...
Stargazers Posted November 26, 2019 Share Posted November 26, 2019 (edited) The click(ed) type expression is only available in an inventory click event. You can use this instead: format gui slot (slot) of (player) to run with left click: Edited November 26, 2019 by Star [VIP] 2019 [JR.MOD] 10/29/2019 [MOD] 12/30/2019 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