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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

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

Solved how to parsed as item

Discussion in 'Skript' started by Choong Yun Chean, Nov 1, 2018.

Thread Status:
Not open for further replies.
  1. Choong Yun Chean

    Joined:
    Jul 9, 2017
    Messages:
    34
    Likes Received:
    0
    in command
    how to parsed a text to a item??
    parsed text is a raw name of item

    like minecraft:stone / minecraft:dirt
    question agian:
    how to use
    set {_item} to "minecraft:dirt" parsed as item??
    :emoji_sweat_smile::emoji_sweat_smile:
     
  2. XanderWander

    XanderWander Member

    Joined:
    Jan 27, 2017
    Messages:
    71
    Likes Received:
    5
    Code (Skript):
    1. set {_item} to "dirt" parsed as an item type
     
  3. Choong Yun Chean

    Joined:
    Jul 9, 2017
    Messages:
    34
    Likes Received:
    0
    cant use raw name?????
    like dirt is minecraft:dirt
    upload_2018-11-1_21-31-40.png
     
  4. XanderWander

    XanderWander Member

    Joined:
    Jan 27, 2017
    Messages:
    71
    Likes Received:
    5
    Code (Skript):
    1. replace every "minecraft:" in {_text} with ""
    2. set {_item} to "%{_text}%" parsed as an item type
     
  5. Choong Yun Chean

    Joined:
    Jul 9, 2017
    Messages:
    34
    Likes Received:
    0
    ok ~:emoji_worried:so ....
    now is fixed ~ thank you....
     
Thread Status:
Not open for further replies.

Share This Page

Loading...