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

Solved Set block

Discussion in 'Plugin Help' started by NatanM, Nov 21, 2018.

  1. NatanM

    NatanM Spider

    Messages:
    10
    how can I set a block ?

    Code:
    $myBlock = ??
    
    (sorry for so many posts)
     
  2. HeyDeniis_

    HeyDeniis_ Baby Zombie

    Messages:
    137
    set block in World? Or Ger Block ?
     
  3. HeyDeniis_

    HeyDeniis_ Baby Zombie

    Messages:
    137
    <php
    $pos = //New Vector3 or Position Of the Entities Ou Blocks....
    $world->setBlock($pos, Block::get(block::AIR));
    ?>
     
  4. NatanM

    NatanM Spider

    Messages:
    10
    Worked, thanks !
     
  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.