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 get bed color?

Discussion in 'Skript' started by FUZIK, Oct 29, 2017.

Tags:
Thread Status:
Not open for further replies.
  1. FUZIK

    FUZIK Active Member

    Joined:
    Jan 26, 2017
    Messages:
    115
    Likes Received:
    10
    how to get bed color from block?

     
  2. Best Answer:
    Post #4 by Pikachu, Oct 29, 2017
  3. SeltixSub

    SeltixSub Member

    Joined:
    Jul 2, 2017
    Messages:
    15
    Likes Received:
    1
    What do you mean exactly?
     
  4. White

    White Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    445
    Likes Received:
    25
    Get ID value of it?
     
  5. Pikachu

    Supporter Addon Developer

    Joined:
    Jan 25, 2017
    Messages:
    871
    Likes Received:
    139
    Medals:
    Code (Skript):
    1. function setColour(blocks: blocks, colour: color):
    2.   set {_colour} to try {_colour}.getWoolColor()
    3.   loop {_blocks::*}:
    4.     set {_blockState} to try loop-value.getState()
    5.     {_blockState}.setColor({_colour});
    6.     {_blockState}.update();
    It would be somewhat like this
     
  6. FUZIK

    FUZIK Active Member

    Joined:
    Jan 26, 2017
    Messages:
    115
    Likes Received:
    10
    what addon?
     
  7. Snow-Pyon

    Snow-Pyon Well-Known Member

    Joined:
    Jan 25, 2017
    Messages:
    1,236
    Likes Received:
    176
    Medals:
    Just skript-mirror.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...