Give player a item only if they have a certain item in their inv

  • Welcome to skUnity!

    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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Peanuttable

Member
Aug 21, 2022
2
0
1
23
every 5 seconds:
loop all players:
if loop-player is in world "world":
console command "give * diamond_sword 1"

i am wondering how do i make it so the player will get the diamond sword only if they have a iron block named &bFactory in their inv
 
every 5 seconds:
loop all players:
if loop-player is in world "world":
console command "give * diamond_sword 1"

i am wondering how do i make it so the player will get the diamond sword only if they have a iron block named &bFactory in their inv


Code:
every 5 seconds:
  loop all players:
    if loop-player has iron block named "&bFactory":
      give loop-player diamond sword
 
Status
Not open for further replies.