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

Snow bug help

Discussion in 'Development' started by Emis02, Dec 19, 2019.

  1. Emis02

    Emis02 Spider Jockey

    Messages:
    34
    GitHub:
    RubyTemple
    PHP:
    public function onChunkLoadEvent(ChunkLoadEvent $event) {
            for(
    $x 0$x 20; ++ $x)
                for(
    $z 0$z 20; ++ $z)
                    
    $event->getChunk ()->setBiomeId $x$zBiome::ICE_PLAINS);
        }
    public function 
    onPlayerJoinEvent(PlayerJoinEvent $event) {
            
    $player $event->getPlayer ();
            
    $pk = new LevelEventPacket ();
            
    $pk->evid 3001;
            
    $pk->data 10000;
            
    $player->dataPacket $pk );
    in the server when it is low of coordinates it does not snow with this code...

    See this: https://drive.google.com/open?id=1AIFwE1mbX-cmGL-kXTKwMnNKXgy12lFK
     
  2. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    setting the biome only changes it on the server
    you have to resend the chunks to the client.
     
    HimbeersaftLP likes this.
  3. Emis02

    Emis02 Spider Jockey

    Messages:
    34
    GitHub:
    RubyTemple
    what is teh code for this?
     
  4. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    GamakCZ likes this.
  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.