Solved What is blockRuntimeId ?

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

  1. Subbitx

    Subbitx Spider

    Messages:
    10
    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 Witch

    Messages:
    62
    GitHub:
    EmirhanWSD
  3. Subbitx

    Subbitx Spider

    Messages:
    10
  4. Emirhan Akpınar

    Emirhan Akpınar Witch

    Messages:
    62
    GitHub:
    EmirhanWSD
    You're welcome. Can you set solved tag?
     
    Subbitx likes this.

Share This Page

  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.