check if a block is cake

Discussion in 'Plugin Development' started by AlexLee1235, Jan 1, 2022.

  1. Offline

    AlexLee1235

    I am makeing a plugin when player left click a cake with a spider eye the cake will be "poisoned"
    I tried this but check if a block is cake doesn't work
    [​IMG]
    [​IMG]
     
  2. Offline

    KarimAKL

    @AlexLee1235 I believe the CAKE material is for the item. Try CAKE_BLOCK instead. If that doesn't work, print the material name.
     

Share This Page