(Quick Doubt) about block and identification

Discussion in 'Plugin Development' started by Dyoniso, Mar 3, 2022.

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

    Dyoniso

    I need to identify a set of blocks using a specific String or Id.
    ex:

    //instead of
    if (block.getType() == Material.REDSTONE_BLOCK)
    if (block == "My-ID")

    How do I do that?
     
  2. Online

    timtower Administrator Administrator Moderator

    @Dyoniso Where does the id come from?
    Minecraft has only a fixed set.
     
Thread Status:
Not open for further replies.

Share This Page