1. 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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

set slot flint and steel doesnt work

Discussion in 'Requests' started by RedEpic, May 12, 2020.

  1. RedEpic

    RedEpic Member

    Joined:
    May 12, 2020
    Messages:
    2
    Likes Received:
    0
    command /hiken3:
    permission: devil.fruit.hiken3
    trigger:
    if slot 8 of player's current inventory is not air:
    set slot 8 of player's inventory to flint and steel named "&6Hiken" with lore "Just need one hit to Kill em!"
    make console execute command "/hiken4"

    It works successfully in the console no errors
    but the slot doesnt changed into flint and steel ? is there any wrong format?
    --- Double Post Merged, May 12, 2020, Original Post Date: May 12, 2020 ---
    tab & spaces already set up
    --- Double Post Merged, May 12, 2020 ---
    Plugins/Addons:
    Skript
    Skellet
    skRayFall
    skQuery
    Every Addons is updated to latest (supported version)
    Minecraft Version 1.12.2 (PAPERSPIGOT)
     
  2. 10splaya

    10splaya Member

    Joined:
    Jun 13, 2017
    Messages:
    15
    Likes Received:
    0
    The if statement is wrong.
    Code (Text):
    1. command /hiken3:
    2.     permission: devil.fruit.hiken3
    3.     trigger:
    4.         if slot 8 of player's inventory is not air:
    5.               set slot 8 of player's inventory to flint and steel named "&6Hiken" with lore "Just need one hit to Kill em!"
    6.                make console execute command "/hiken4"
    7.  
    Make sure that the tabbing is correct. That should work though ^^^
     
Loading...