1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Solved What is blockRuntimeId ?

Discussion in 'Development' started by Subbitx, Sep 3, 2019.

  1. Subbitx

    Subbitx Silverfish

    Messages:
    18
    At the moment I am spawning clientside blocks to a player and its working fine but I dont understand what the blockRuntimeid is. For example if I put blockRuntimeid to 0 it spawns a command block...

    $pk = new UpdateBlockPacket();
    $pk->x = (int)$player->getX();
    $pk>y = (int)$player->getY()+2;
    $pk->z = (int)$player->getZ();
    $pk->dataLayerId = 0;
    $pk->blockRuntimeId = 0;
    $pk>flags = 0b0000;
    $player->dataPacket($pk);

    Is there somewhere a list where all blockRuntimeids are listed ? Hope you can help me.

    Update: It spawns random blocks everytime!?!?
     
    Last edited: Sep 3, 2019
  2. Emirhan Akpınar

    Emirhan Akpınar Slime

    Messages:
    90
  3. Subbitx

    Subbitx Silverfish

    Messages:
    18
  4. Emirhan Akpınar

    Emirhan Akpınar Slime

    Messages:
    90
    You're welcome. Can you set solved tag?
     
    Subbitx likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.