Jump to content

Help Me With Skript || Not Giving Rewards


belac136

Recommended Posts

So on my server I have this:

on right click with player head:
    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
    stop

This works exactly how I want it except for the fact that if people spam it, you dont get the number of rocks you should...

Does anybody know how to fix this?

Link to comment
Share on other sites

2 hours ago, Dragon-Master said:

So on my server I have this:

on right click with player head:
    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
    stop

This works exactly how I want it except for the fact that if people spam it, you dont get the number of rocks you should...

Does anybody know how to fix this?

So that Skript in any way won't actually work. They can click on any head even if it's not named &bSuspicious Bag and still get the 5 buttons. Here I don't know if this fixes your problem but it sure do make it work.

on right click with player head:
    if name of player's held item is "&bSuspicious Bag":
    	give 5 stone buttons named "&8Rock" to player
    	remove 1 of player's held item from player

 

 

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

Not sure what you mean but..

 

on rightclick with player head:

    if player's tool is a player head named "&bSuspicious bag":

        give 5 stone buttons named "&8Rock" to player

        remove 1 of player's held item from player

Edited by LapEvents

 

imgonline-com-ua-resize-CNNkL1drx5M-removebg-preview.png.d6a8ae8b5eb862005fb056c21f934200.png

Link to comment
Share on other sites

17 hours ago, NotKaizo said:

So that Skript in any way won't actually work. They can click on any head even if it's not named &bSuspicious Bag and still get the 5 buttons. Here I don't know if this fixes your problem but it sure do make it work.

Didnt see your post but I think my one works better

 

imgonline-com-ua-resize-CNNkL1drx5M-removebg-preview.png.d6a8ae8b5eb862005fb056c21f934200.png

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...