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

how to create a baby villager

Comments in 'Plugin Development' started by Driesboy1, Jul 31, 2016.

  1. Driesboy1
    Offline

    Driesboy1 Active Member

    Joined:
    Oct 28, 2015
    Posts:
    102
    Minecraft User:
    Driesboy
    how to create a baby villager
  2. rinkuno
    Offline

    rinkuno Active Member

    Joined:
    Oct 8, 2014
    Posts:
    59
    Minecraft User:
    rinku
    Wrong posting section
  3. Driesboy1
    Offline

    Driesboy1 Active Member

    Joined:
    Oct 28, 2015
    Posts:
    102
    Minecraft User:
    Driesboy
    no i want a code to create a baby villager!
  4. SOFe
    Offline

    SOFe Banned

    Joined:
    May 28, 2016
    Posts:
    386
    Minecraft User:
    Herobrine
    This thread is obviously in violation with the new posting guidelines, as no any attempts to answer your problem is shown. You don't even "show a basic understanding of the problem to get help from the community". This thread "should be and will be ignored and or locked".
  5. Driesboy1
    Offline

    Driesboy1 Active Member

    Joined:
    Oct 28, 2015
    Posts:
    102
    Minecraft User:
    Driesboy
    PHP:
    <?php
    namespace ServerLoveMCPE;
    class 
    BabyVillager extends Child{
        const 
    NETWORK_ID 15;
       
        public 
    $width 0.6;
        public 
    $length 0.6;
        public 
    $height 1.8;
       
           
        public function 
    getName() {
            return 
    "BabyVillager";
        }
           
        public function 
    getSpeed() {
            return 
    2.0;
        }
    }
  6. Driesboy1
    Offline

    Driesboy1 Active Member

    Joined:
    Oct 28, 2015
    Posts:
    102
    Minecraft User:
    Driesboy
    how i can create a baby villager?
    now i have a villager
  7. SOFe
    Offline

    SOFe Banned

    Joined:
    May 28, 2016
    Posts:
    386
    Minecraft User:
    Herobrine
    Baby villager has the same network ID as a villager. Doing it in this way will cause only either the baby villager or the normal villager class being registered as the class for all villagers.

    A baby villager is still a villager, with a smaller age.
    You should spawn a baby villager like spawning a villager, but with a smaller age.

    Refer to http://www.minecraftforum.net/forum...71784-how-do-i-summon-baby-villager?comment=2
    applqpak likes this.
  8. MCPEPIG
    Offline

    MCPEPIG Notable Member

    Joined:
    Jun 22, 2014
    Posts:
    349
    Minecraft User:
    MCPEPIG
    PHP:
    $villager->setDataProperty(14Entity::DATA_TYPE_BYTE1);
    AndrewBit and Survingo like this.
  9. Driesboy1
    Offline

    Driesboy1 Active Member

    Joined:
    Oct 28, 2015
    Posts:
    102
    Minecraft User:
    Driesboy
    thx mcpepig

Share This Page

Advertisement