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

[NEW API] How create and spawn WallSign

Comments in 'Plugin Development' started by EkiFoX, Jun 20, 2014.

  1. EkiFoX
    Offline

    EkiFoX Active Member Plugin Developer

    Joined:
    Feb 28, 2014
    Posts:
    94
    Plugins:
    2
    Minecraft User:
    ekifox
    Please help me, can i create and spawn WallSign block with text?
    On a new api.
  2. Killman2
    Offline

    Killman2 Active Member Plugin Developer

    Joined:
    May 5, 2014
    Posts:
    81
    Plugins:
    1
    Minecraft User:
    Killman2
    I suppose yes if you could do it in the old one.
  3. EkiFoX
    Offline

    EkiFoX Active Member Plugin Developer

    Joined:
    Feb 28, 2014
    Posts:
    94
    Plugins:
    2
    Minecraft User:
    ekifox
    Zenit - govno :3
    PEMapModder likes this.
  4. EkiFoX
    Offline

    EkiFoX Active Member Plugin Developer

    Joined:
    Feb 28, 2014
    Posts:
    94
    Plugins:
    2
    Minecraft User:
    ekifox
    I found an answer...
    PHP:
    $level Server::getInstance()->getLevelByName(($maps[$game]."_game"));
                
    $tile = new Sign($level->getChunkAt($pos->>> 4$pos->>> 4), new Compound(false, array(
                    new 
    String("k"Tile::SIGN),
                    new 
    Int("x"$pos->x),
                    new 
    Int("y"$pos->y),
                    new 
    Int("z"$pos->z),
                    new 
    String("Text1""[HG Room: {$k}]"),
                    new 
    String("Text2", ("Players: ".count($level->getPlayers())."/20") ),
                    new 
    String("Text3""Map: {$maps[$game]}"),
                    new 
    String("Text4"$signtext)
                )));
                
    $tile->namedtag->Creator = new String("Creator""System");
    $pos = new Vector3 (x,y,z);
    args and swagboy47 like this.
  5. swagboy47
    Offline

    swagboy47 Active Member

    Joined:
    Jun 10, 2014
    Posts:
    445
    Minecraft User:
    swagking
    nice code i like it
    Killman2 and EkiFoX like this.
  6. EkiFoX
    Offline

    EkiFoX Active Member Plugin Developer

    Joined:
    Feb 28, 2014
    Posts:
    94
    Plugins:
    2
    Minecraft User:
    ekifox
    :3
  7. swagboy47
    Offline

    swagboy47 Active Member

    Joined:
    Jun 10, 2014
    Posts:
    445
    Minecraft User:
    swagking
    but a small question what is $signtext equals to ?
  8. EkiFoX
    Offline

    EkiFoX Active Member Plugin Developer

    Joined:
    Feb 28, 2014
    Posts:
    94
    Plugins:
    2
    Minecraft User:
    ekifox
    This is a string for my plugin :D
    $signtext = "Game start!";
  9. swagboy47
    Offline

    swagboy47 Active Member

    Joined:
    Jun 10, 2014
    Posts:
    445
    Minecraft User:
    swagking
    oh . are you going to post it here or is it private ?
  10. EkiFoX
    Offline

    EkiFoX Active Member Plugin Developer

    Joined:
    Feb 28, 2014
    Posts:
    94
    Plugins:
    2
    Minecraft User:
    ekifox
    Private. It for my mini-games server.
  11. swagboy47
    Offline

    swagboy47 Active Member

    Joined:
    Jun 10, 2014
    Posts:
    445
    Minecraft User:
    swagking
    selfish! ( just kiding )
    EkiFoX likes this.
  12. swagboy47
    Offline

    swagboy47 Active Member

    Joined:
    Jun 10, 2014
    Posts:
    445
    Minecraft User:
    swagking
    can i have a copy just to look at. i don't have a server
  13. EkiFoX
    Offline

    EkiFoX Active Member Plugin Developer

    Joined:
    Feb 28, 2014
    Posts:
    94
    Plugins:
    2
    Minecraft User:
    ekifox
    Noup :3
    Comedyman937 likes this.
  14. swagboy47
    Offline

    swagboy47 Active Member

    Joined:
    Jun 10, 2014
    Posts:
    445
    Minecraft User:
    swagking
    :(
  15. Killman2
    Offline

    Killman2 Active Member Plugin Developer

    Joined:
    May 5, 2014
    Posts:
    81
    Plugins:
    1
    Minecraft User:
    Killman2
    Можно узнать название сервера? Просто я имею тоже один, онлайн большой, может я Вас узнаю)
  16. EkiFoX
    Offline

    EkiFoX Active Member Plugin Developer

    Joined:
    Feb 28, 2014
    Posts:
    94
    Plugins:
    2
    Minecraft User:
    ekifox
    Experiense.RU/Ender-Craft.RU/MC-PE.RU
    Last edited: Jun 21, 2014
  17. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,306
    Plugins:
    11
    Minecraft User:
    PEMapModder
    That only creates the instance. I don't think it registers to the world and be saved.

Share This Page

Advertisement