Changing Wool color

CanaryMod related discussions

Changing Wool color

Postby big_red_frog » Tue Oct 06, 2015 3:23 am

Hi All,

So I found myself using Canarymod after picking up the book

Learn to program with Minecraft plugins. Edition 2 of which is based on canarymod

I am not a java programmer, but long time familiar with C and similar.

I cannot seem to get wool blocks to change color, if I take a BlockType of WoolRed or any other variant and attempt to use SetBlockAt( location, BlockType ) I only ever get white wool in the world, and the data field that I expect to carry the color number is always 0.

Is there a different way to set wool color, than trying the BlockType Data value?

I suspect this is not expected to work like this anymore, but can find no information or examples on how I should be doing it.

Any help appreciated!

Posts: 1
Joined: Tue Oct 06, 2015 3:11 am

Re: Changing Wool color

Postby goku » Wed Oct 07, 2015 1:54 am

use sponge or spigot instead
Posts: 6
Joined: Fri Aug 28, 2015 1:30 pm

Re: Changing Wool color

Postby Rash_SR » Wed Mar 09, 2016 7:05 pm

use instead of SetBlockAt

loc.getWorld().setBlockAt(loc, BlockType.WoolRed);

its a bug in the EZ plugin
Posts: 11
Joined: Mon Jan 18, 2016 5:58 pm

Return to Discussions

Who is online

Users browsing this forum: No registered users and 1 guest