belac136 Posted July 27, 2021 Share Posted July 27, 2021 Like before, this was JUST FINE, until the fact that if you spam click it decides it doesn't want to work anymore. Well, that's what I thought. Turns out that it was the fact that you can place the player heads. I have a skript that prevents people from placing, and when it runs "cancel event", at the same time as "on right click with player head:", it just messes up the entire thing and gives the player the wrong amount of rocks. Someone please help because I have tried everything I know but nothing will work. on right click with player head: if {cooldown} isn't 1.5: if name of player's held item is "&bSuspicious Bag": give 5 stone buttons named "&8Rock" to the player remove 1 of player's held item from player on right click with player head: if {cooldown} isn't 1.5: set {cooldown} to 1.5 wait 1.5 seconds set {cooldown} to 0 Link to comment Share on other sites More sharing options...
NotKaizo Posted July 28, 2021 Share Posted July 28, 2021 I wouldn't recommend using wait as I believe if the server closes, the Skript will just break. I make commands with cooldown and make it execute when an item is right click. Something like this: command /secret <string>: cooldown: 1 second trigger: if arg-1 is "21422": give 5 stone buttons named "&8Rock" to the player remove 1 of player's held item from player on right click with player head: if name of player's held item is "&bSuspicious Bag": execute player command "/secret 21422" on place: if event-block is player head: cancel event So what I basically did was convert the cooldown to a command and make it trigger when someone right clicks the head. I hope this helps you! Owner of play.hiveminez.net ⊱------------------------------⊰ Joined Minehut on 1/28/2021 (Same day I got Minecraft) [VIP] - 3/14/2021 [LEGEND] - 5/27/2021 ⊱------------------------------⊰ Discord - NotKaizo#0001 In-game name - iKaizo_ If you need any help, feel free to contact me. 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