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

Virtual Workbench

Discussion in 'Development' started by Yexeed, Nov 15, 2017.

  1. Yexeed

    Yexeed Slime

    Messages:
    76
    I tried to use that code on alpha-9, but it didnt worked:
    PHP:
    $player->setCraftingGrid(new BigCraftingGrid($player));
    $player->craftingType 1;
    and i used this code, but it didnt worked too:
    PHP:
    //$s = Player
    $lvl $s->getLevel();
    $this->origblock[strtolower($s->getName())] = $lvl->getBlock(new Vector3($s->x$s->5$s->z));
    $lvl->setBlock(new Vector3($s->x$s->5$s->z), Block::get(Block::WORKBENCH));
    $block $lvl->getBlock(new Vector3($s->x$s->5$s->z));
    $this->getServer()->getPluginManager()->callEvent($ev = new PlayerInteractEvent($s$s->getInventory()->getItemInHand(), $block$s->getDirectionVector(), 0));
    $lvl->setBlock(new Vector3($s->x$s->5$s->z), $this->origblock[strtolower($s->getName())]);
    and for some reason, no any errors in logger.
     
  2. Az928

    Az928 Baby Zombie

    Messages:
    140
    GitHub:
    theaz928
    Try using FakeBlockMenu, for example click here
     
  3. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    It's purely client-sided, you can't force it to the client.
     
    jasonwynn10 likes this.
  4. Yexeed

    Yexeed Slime

    Messages:
    76
    very sad
     
  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.