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 Can I change items in item frame?

Discussion in 'Skript' started by 7stage, Oct 21, 2021.

  1. 7stage

    7stage Member

    Joined:
    Oct 20, 2021
    Messages:
    4
    Likes Received:
    0
    I know the expression (Skellett Expression):
    Code (Text):
    1. [skellett] item (in|inside|within|of|from) item[ ]frame %entity%
    2. [skellett] %entity%'s item[ ]frame item
    3. [skellett] item[ ]frame %entity%'s item
    But, I don't know how to use it.
    Can you suggest an example or another code type?
     
  2. Best Answer:
    Post #2 by FlameikTV, Oct 21, 2021
  3. FlameikTV

    FlameikTV Member

    Joined:
    May 22, 2020
    Messages:
    19
    Likes Received:
    2
    Hi,
    try this one:

    Code (Text):
    1. on right click on item frame:
    2.    set item inside item frame %event-block% to stone
     
    • Agree Agree x 1
  4. 7stage

    7stage Member

    Joined:
    Oct 20, 2021
    Messages:
    4
    Likes Received:
    0
    It works, but I want to set the item of item frame which is in a certain coordinate. How can I do that?
     
  5. FlameikTV

    FlameikTV Member

    Joined:
    May 22, 2020
    Messages:
    19
    Likes Received:
    2
    Try this instead of %event-block%:
    (You need to replace x,y,z, and yourWorldName with your data.)

    Code (Text):
    1. location(x, y, z, world "yourWorldName")
     
    • Useful Useful x 1
  6. 7stage

    7stage Member

    Joined:
    Oct 20, 2021
    Messages:
    4
    Likes Received:
    0
    It returns "The returned value of the functin 'location', location, is not an entity.".
     
  7. Minecoll_YT

    Supporter Forums Helper

    Joined:
    Dec 2, 2018
    Messages:
    597
    Likes Received:
    37
    location at 1, 1, 1 in world "xxx"
     
    • Agree Agree x 1
  8. 7stage

    7stage Member

    Joined:
    Oct 20, 2021
    Messages:
    4
    Likes Received:
    0
    It worked! Thanks!
     

Share This Page

Loading...