Solved Cobblestone slabs

Discussion in 'Plugin Development' started by DitIsEenNaam, Aug 8, 2017.

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

    DitIsEenNaam

    I can't give a player a cobblestone slab.

    I do this:

    .addItem(new ItemStack(Material.STONE_SLAB2, 64, (short) 3));
    player.getInventory()

    And the plugin give the player an non-texture Red Sandstone slab

    How can I fix this?
     
  2. Offline

    timtower Administrator Administrator Moderator

  3. Offline

    DitIsEenNaam

    If I do this:

    .addItem(new ItemStack(Material.STONE_SLAB2, 64));
    player.getInventory()

    Get the player a stone slab, but not a Cobblestone slab.
     
  4. Offline

    AdamDev

    I think your looking for
    player.getInventory().addItem(new ItemStack(Material.STEP,1,(short)3));
     
  5. Offline

    DitIsEenNaam

    Thanks! it works! :D
     
  6. Offline

    Zombie_Striker

    @DitIsEenNaam
    If your problem has been solved, mark this thread as solved.
     
Thread Status:
Not open for further replies.

Share This Page