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

Solved Block manipulation

Comments in 'Plugin Development' started by jojoe77777, Jun 27, 2015.

  1. jojoe77777
    Offline

    jojoe77777 Notable Member Plugin Developer

    Joined:
    May 28, 2015
    Posts:
    656
    Plugins:
    1
    Minecraft User:
    jojoe77777
    Is there a way to send custom block packets to the to the client? And by that, I mean that I want mushroom blocks on my server and they have been added to the client, but they haven't been added to PocketMine yet, and I don't wanna wait XD.
  2. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,710
    Plugins:
    22
    Minecraft User:
    Falkirknh
    Yeah, for sure.

    PHP:
    $pk = new UpdateBlockPacket;
    $pk->$x;
    $pk->$y;
    $pk->$z;
    $pk->block $blockId;
    $pk->meta $blockMeta;
    $player->dataPacket($pk);
    Last edited: Jun 27, 2015
    jojoe77777 likes this.
  3. jojoe77777
    Offline

    jojoe77777 Notable Member Plugin Developer

    Joined:
    May 28, 2015
    Posts:
    656
    Plugins:
    1
    Minecraft User:
    jojoe77777
    Thanks! I'll try it out.
  4. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Use Level->sendBlocks instead.
    Falk likes this.
  5. jojoe77777
    Offline

    jojoe77777 Notable Member Plugin Developer

    Joined:
    May 28, 2015
    Posts:
    656
    Plugins:
    1
    Minecraft User:
    jojoe77777
    How would I do that?
  6. jojoe77777
    Offline

    jojoe77777 Notable Member Plugin Developer

    Joined:
    May 28, 2015
    Posts:
    656
    Plugins:
    1
    Minecraft User:
    jojoe77777
    Uhh.. turns out WorldEditArt can do this! Somehow... Btw, awesome plugin @PEMapModder XD
  7. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    WorldEditArt needs to be updated to use Level::sendBlocks.

Share This Page

Advertisement