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

Help with functions!!!

Comments in 'Plugin Development' started by kingbudderjr, Jun 7, 2014.

  1. kingbudderjr
    Offline

    kingbudderjr New Member

    Joined:
    Jun 4, 2014
    Posts:
    2
    Minecraft User:
    kingbudderjr
    Hello everyone im kingbudderjr and I come from mcpe mods!
    Ive created the crazycraft mod for mcpe!
    But now ive started making plugins!
    So ive got some questions for you!

    1st
    Since there is the possiblity to make a function when a player touch a block is there the possibility to set a certain ID for that bl8ck?
    Since when ive tried first everything I touch sended me the message ive configured!

    2nd
    For those one that know ModPe there is a function called "addItemInventory" but for plugins is there something like that? And how do you use it?

    If someone will help me I would be very thankful to him!
  2. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    addItemInventory:
    $player->addItem($id, $meta) (old API)
    $player->getInventory()->something() (new API)
    Player.getEntity:
    $this->api->player->get($name) (old API)
    $this->getServer()->getPlayer($name) (new API)
    LDX likes this.
  3. kingbudderjr
    Offline

    kingbudderjr New Member

    Joined:
    Jun 4, 2014
    Posts:
    2
    Minecraft User:
    kingbudderjr

Share This Page

Advertisement