Randomize color of floor (Working on a minigame)

Discussion in 'Plugin Development' started by Aljed_The_Legit, Jan 4, 2014.

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

    Aljed_The_Legit

    I need help, how do you change the color of the floor (which is white) the way minecraftparty.com did it? Please help!
     
  2. Offline

    messageofdeath

    wool.setColor(DyeColor.values()[new Random().nextInt(DyeColor.values().length)]);

    don't know how they did it but this should work with wool.
     
  3. Offline

    dillyg10

    Mind sharing a giff? Giving us more information? Showing us you at least attempted to solve the issue?
     
  4. Offline

    Aljed_The_Legit

    I'm trying to make a minigame like Code Red you can go try it out at minecraftparty.com
     
  5. Offline

    Jazed

    Get 2 positions, loops through every possible location between those 2 locations, get a random wool color, set the block to that color and update the block. Done.
     
  6. Offline

    Aljed_The_Legit

    That's what I'm working on, I only have the floor right now but I don't know how to randomly set the color of the wool.
     
  7. Offline

    Jazed

    @Aljed_The_Legit You can set the color of the wool using the parameter which accepts bytes, for example byte 0 is white wool. Random that byte between 0 and 15 and you have a random colored wool.
     
Thread Status:
Not open for further replies.

Share This Page