Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Chest - stone

Comments in 'Plugin Development' started by Barrington, Sep 12, 2015.

  1. Barrington
    Offline

    Barrington New Member

    Joined:
    Jul 31, 2015
    Posts:
    41
    Minecraft User:
    Berrington
    I now would like to do if you have clicked on the cobblestone, then open the chest , which is based on three things , and when you press on the first thing is to write a message to the player 1 , then so is the rest of the objects .

    Here's an example of my code :

    public function PlayerInteractEvent(PlayerInteractEvent $event){
    $player = $event->getPlayer();
    if ($event->getBlock ()->getId () == Item::COBBLESTONE) {
    # What to write here ? Please help me
    }
    }
  2. Asidert
    Offline

    Asidert Active Member Plugin Developer

    Joined:
    Oct 21, 2014
    Posts:
    123
    Plugins:
    1
    Minecraft User:
    Asidert
    DON'T MAKE A LOT OF THREADS!!!
  3. Barrington
    Offline

    Barrington New Member

    Joined:
    Jul 31, 2015
    Posts:
    41
    Minecraft User:
    Berrington
    THEY OTHER TOPICS
  4. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Save the last block player clicked, so if last block is cobble and current block is chest, do something. (I don't understand what you write).
  5. Ishan
    Offline

    Ishan Active Member

    Joined:
    Apr 1, 2015
    Posts:
    99
    Minecraft User:
    Ishannaik



    Dont talk in caps!!!!!!!!!!!!!!!!:mad:
  6. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    I think he wants to use Cobblestone as Chest ($player->addWindow())
    Taha_The_Hacker likes this.
  7. CavinMiana
    Offline

    CavinMiana Active Member

    Joined:
    Aug 26, 2015
    Posts:
    101
    Minecraft User:
    CavinMiana
    First of all, why would you want to have a stone block be turned into a chest? That's a bit weird just saying.

Share This Page

Advertisement