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 I need minecraft name of a item in a variable

Discussion in 'Skript' started by XxMartuixX, Dec 6, 2017.

Thread Status:
Not open for further replies.
  1. XxMartuixX

    XxMartuixX Member

    Joined:
    Mar 15, 2017
    Messages:
    4
    Likes Received:
    0
    Hi, I have a big problem ...
    I have to add the nbt to an armor stand through an object list

    This is the code inside the function to add the nbt
    Code (Skript):
    1. add "{Invisible:1,Invulnerable:1,ShowArms:1,ArmorItems:[{},{},{},{id:minecraft:%{_i}%,Count:1}],Pose:{Head:[%{_p1}%f,%{_p2}%f,%{_p3}%f]},DisabledSlots:2039583,NoGravity:1,Small:1}" to nbt of {Summon.EntitySpawn-%{_n}%.%{_pname}%}
    This is the code to call the function
    Code (Skript):
    1. armorstand( player , 0 , 0 , 0 , random item out of {Summon.Lista::*} , loop-value )
    My problem is that when it looks like random item oak skript it reads it as any_oak_wooden_logs_item, how can I put it that reads it just like oak? Sorry for my bad english ...

    My server version is 1.10

    Thanks

     
  2. Best Answer:
    Post #4 by Pikachu, Dec 7, 2017
  3. Pikachu

    Supporter Addon Developer

    Joined:
    Jan 25, 2017
    Messages:
    871
    Likes Received:
    139
    Medals:
    bensku skript has an expression for this
     
  4. XxMartuixX

    XxMartuixX Member

    Joined:
    Mar 15, 2017
    Messages:
    4
    Likes Received:
    0
    Ok, I installed it ..

    I tried this but don't work
    Code (Skript):
    1. type of {_i}
    Implemented with this
    Code (Skript):
    1. add "{Invisible:1,Invulnerable:1,ShowArms:1,ArmorItems:[{},{},{},{id:minecraft:%type of {_i}%,Count:1}],Pose:{Head:[%{_p1}%f,%{_p2}%f,%{_p3}%f]},DisabledSlots:2039583,NoGravity:1,Small:1}" to nbt of {Summon.EntitySpawn-%{_n}%.%{_pname}%}
    You have a discord server or skype or anything to instantly chat?
     
    #3 XxMartuixX, Dec 7, 2017
    Last edited: Dec 7, 2017
  5. Pikachu

    Supporter Addon Developer

    Joined:
    Jan 25, 2017
    Messages:
    871
    Likes Received:
    139
    Medals:
    Im on the skunity discord. The expression is minecaft name of {_item} i think
     
  6. XxMartuixX

    XxMartuixX Member

    Joined:
    Mar 15, 2017
    Messages:
    4
    Likes Received:
    0
Thread Status:
Not open for further replies.

Share This Page

Loading...