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

A Little Help - World Refresh

Comments in 'Plugin Development' started by yungtechboy1, Feb 20, 2015.

  1. yungtechboy1
    Offline

    yungtechboy1 Active Member Plugin Developer

    Joined:
    Dec 25, 2014
    Posts:
    57
    Plugins:
    1
    Minecraft User:
    yungt
    Hey Everyone!

    I have a problem...
    So I wanted to Set a single Block With Cords.
    Code:
     $this->getServer()->getLevelByName("world")->setBlockIdAt($x,$y,$z,5);
    
    The Problem I am Having Is that the Block dosent Show up after I run the Command.
    It will only show up after I relog (and I Get the New World Chunks, IG :/)...

    Im Not Sure How to Fix this any Suggestions??
  2. EvolSoft
    Offline

    EvolSoft Notable Member Plugin Developer

    Joined:
    Sep 10, 2014
    Posts:
    821
    Plugins:
    15
    Minecraft User:
    Flavius12
    Use setBlock instead of setBlockIdAt ;)
    iksaku, PEMapModder and Falk like this.
  3. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,306
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Supplementary information: setBlockIdAt() is for world generation.
    EvolSoft, yungtechboy1 and iksaku like this.
  4. yungtechboy1
    Offline

    yungtechboy1 Active Member Plugin Developer

    Joined:
    Dec 25, 2014
    Posts:
    57
    Plugins:
    1
    Minecraft User:
    yungt
    Thanks! Ill Try It Out!

Share This Page

Advertisement