block data

Discussion in 'Plugin Development' started by Arangaduy, Dec 30, 2020.

  1. Offline

    Arangaduy

    Hello everyone I need help I need to set a date to the block my code:
    ItemStack item1 = new ItemStack (Material.CONCRETE);
    item1.setData (what to write here);
     
  2. Offline

    timtower Administrator Administrator Moderator

    @Arangaduy Tried getData() and changing that?
     
  3. Offline

    Arangaduy

    I tried getData () but I don't know what to write in brackets, how the date should be written there, but I don't know how to write it there)
     
  4. Offline

    timtower Administrator Administrator Moderator

    @Arangaduy What is your end goal? Lets start with that.
     

Share This Page