Help with Coloured wool (additional block data)

Discussion in 'Plugin Development' started by eagledude4, Mar 17, 2011.

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

    eagledude4

    Lock this plz.
     
  2. Offline

    Edward Hand

  3. Offline

    eagledude4

    I should of been more thorough, how do I do this for item stacks?

    Something along the lines of:

    Code:
    } else if (commandName.equals("getwool")) {
                    if (split.length == 1) {
                        if ((args.length == 1) && (args[0].equalsIgnoreCase("black")));
                            player.getInventory().addItem(new ItemStack(Material.WOOL).setData(DyeColor.BLACK.getData()));
     
  4. Offline

    Plague

    ItemStack() has a variant where you set it directly
     
  5. Offline

    eagledude4

    I don't quite understand?
     
  6. Offline

    Plague

  7. Offline

    eagledude4

    All this extra data is too much for me right now, I may come back to this when I understand it a little better.
     
Thread Status:
Not open for further replies.

Share This Page