Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SetBlock

Comments in 'Plugin Development' started by JackboyPlay, Mar 19, 2016.

  1. JackboyPlay
    Offline

    JackboyPlay Active Member

    Joined:
    Apr 25, 2015
    Posts:
    507
    Minecraft User:
    JackboyPlay
    How can I set a block at specified coordinates?
  2. Tim // robske Büba
    Offline

    Tim // robske Büba Notable Member

    Joined:
    Feb 26, 2014
    Posts:
    606
    Minecraft User:
    robske_110
    Use SearchBar or look in level.php

    And i think (I'm not sure)
    PHP:
    Level::setBlock(x,y,z)
  3. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    Almost right.
    PHP:
    pocketmine\level\Level::setBlock  Vector3  $pos,
      
    Block  $block,
      
    $direct false,
      
    $update true 
      
    )  
    PocketKiller and PEMapModder like this.
  4. Hotshot_9930
    Offline

    Hotshot_9930 Notable Member Plugin Developer

    Joined:
    May 26, 2014
    Posts:
    665
    Plugins:
    2
    Minecraft User:
    HotshotHD
    What's so hard about reading the source code, or even the docs? It will help u a lot faster for these simple things instead of waiting for replies here, js.
    Tim // robske Büba likes this.
  5. Thunder33345
    Offline

    Thunder33345 Notable Member

    Joined:
    Apr 3, 2014
    Posts:
    755
    Minecraft User:
    Thunder33345
    maybe if the docs have a docs that teach noob like me how to read the docs
  6. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    I wish there were such docs but for now you got us :D
    Survingo likes this.
  7. Thunder33345
    Offline

    Thunder33345 Notable Member

    Joined:
    Apr 3, 2014
    Posts:
    755
    Minecraft User:
    Thunder33345
    X D
  8. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Actually, if you understand object-oriented programming of any language to a certain degree, you automatically understand them.
    Thunder33345 likes this.
  9. Thunder33345
    Offline

    Thunder33345 Notable Member

    Joined:
    Apr 3, 2014
    Posts:
    755
    Minecraft User:
    Thunder33345
    i guess i will need to learn more OOP
    the PM community was a lie
    PEMapModder likes this.

Share This Page

Advertisement