Code:java Block block = /*Some Block*/;block.setData((byte) 2); ItemStack itemStack = /*Some ItemStack*/;itemStack.getData().setData((byte) 2); //The first getData() returns a MaterialData object//ORitemStack.setData(new MaterialData(Material.DIRT, (byte) 2));
ryr11 What do you mean? When you check if they walk on podzol, you check the block Material, so you would use it the same way as shown in this thread.