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

Solved set Block to 0

Discussion in 'Development' started by KittyDev, Sep 25, 2017.

  1. KittyDev

    KittyDev Slime

    Messages:
    96
    GitHub:
    FreakingDev
    Hey guys! In the old version this is working. Im currently using 1.1.5 now and it does'nt work. Is there any changes or something?

    This is my code
    PHP:

                    
    // setblock bug in pmmp ?
                    
    $level->setBlock(new Vector3($p->x$p->y$p->z), Block::get(Block::AIR));

        
     
    Last edited: Sep 25, 2017
  2. Levi

    Levi Skeleton

    Messages:
    955
    GitHub:
    captainleviftw
     
  3. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Don't you think your question is too ambiguous?
    How does it "not work"?
    What's that?
    Checked to be valid?
     
  4. KittyDev

    KittyDev Slime

    Messages:
    96
    GitHub:
    FreakingDev

    Don't mind it. I edited my question
     
    Levi likes this.
  5. Sandertv

    Sandertv Zombie Pigman Poggit Reviewer

    Messages:
    786
    GitHub:
    Sandertv
    What even do you expect it to do? Maybe it does what we expect it to do, but you expect different behaviour.
     
  6. KittyDev

    KittyDev Slime

    Messages:
    96
    GitHub:
    FreakingDev
    Im just asking for the code
     
  7. Sandertv

    Sandertv Zombie Pigman Poggit Reviewer

    Messages:
    786
    GitHub:
    Sandertv
    That is 'correct code' in my eyes. Only if you tell us what you expect it to do, we can help you.
     
  8. KittyDev

    KittyDev Slime

    Messages:
    96
    GitHub:
    FreakingDev
    i want to set the block under the player to 0 when playermove
     
  9. Thouv

    Thouv Slime

    Messages:
    84
    GitHub:
    adeynes
    What. Doesn't. Work? Is it not setting the block at all, is it delaying the setting of the block, is it setting a different block, what? Also, give us your full code, bc just showing one line won't help at all in most situations
     
  10. Sandertv

    Sandertv Zombie Pigman Poggit Reviewer

    Messages:
    786
    GitHub:
    Sandertv
    You're currently setting the block inside of the player to air.
     
  11. KittyDev

    KittyDev Slime

    Messages:
    96
    GitHub:
    FreakingDev
    Ohh i see
     
  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.