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

Spawner IDs (With a entity in it)

Discussion in 'Development' started by Devin, Jun 16, 2019.

  1. Devin

    Devin Witch

    Messages:
    50
    So, basically, I want to make it so that when you buy a mob spawner, you can place it AND it will have a mob inside the spawner that it spawns. Also, it seems as when I buy it through /shop, I CANT place it.

    Plugins: (5) EconomyAPI, GuiShop (By VMPE Development Team), DevTools, TeaSpoon, PureEntitiesX

    Suggested solutions that DIDN'T work: Upgrade the Pocketmine-MP file, Remove PureEntitiesX, Enable "mobSpanwrs".

    PLEASE HELP MOI I NEED HELP THANKS!
     
  2. ElLazer

    ElLazer Silverfish

    Messages:
    21
    GitHub:
    lazerdev
    Well you'll need to add sum like

    public function onRun(int $tick){
    $tile = $this->block->getLevel()->getTile(new Vector3($this->block->getX(), $this->block->getY(), $this->block->getZ()));
    if($tile instanceof MobSpawner) {
    echo "Translating to {$this->type}...";
    switch($this->type){
    case "zombie":
    $tile->setEntityId(32);
    break;
     
  3. Devin

    Devin Witch

    Messages:
    50
    So this would be a zombie spawner. Right?

    I want it to be like I can buy the spawners in the shop that spawners different things like zombies, iron golems, skeletons, etc..
    Also, let me rephrase my problem. I CAN place normal mob spawners (ID=52). But, I can't place unnormal spawners (ID=52:32) (32 = zombie)
     
  4. Devin

    Devin Witch

    Messages:
    50
    Damn. It won't allow me to place my code. Too long
     
  5. Devin

    Devin Witch

    Messages:
    50


    uhhhh... Help?
     
  6. ElLazer

    ElLazer Silverfish

    Messages:
    21
    GitHub:
    lazerdev
    I said something like it not exactly.
     
  7. ElLazer

    ElLazer Silverfish

    Messages:
    21
    GitHub:
    lazerdev
    I think pure entity disabled mobs for now. I don't recomend spoons can break your server. When you get an egg and tap the spawner does it work or nothing happened if it activates wait if somthing spawns and if nothing spawns it's the mob plugin.
     
  8. Devin

    Devin Witch

    Messages:
    50
    Yes I can tap the spawner with a mob and then it appears and it spawns. I use teaspoon and PureEntitiesX
     
  9. Devin

    Devin Witch

    Messages:
    50
    Also, I understand that if I break a spawner with silk touch with a certain entity in it and place the spawner again, it still has the mob saved into it. Does this have to do with something?
     
  10. Devin

    Devin Witch

    Messages:
    50
    Also, sorry to dissapoint you but im not really a dev.
    So... haha
    fun
     
  11. Devin

    Devin Witch

    Messages:
    50
    Really need help with this stuff.
    I litterly have everything setup on my server. (Crates, perms, tebex, etc...)
    And im just trying to get spawners to work.
     
  12. ElLazer

    ElLazer Silverfish

    Messages:
    21
    GitHub:
    lazerdev
    Btw mob AI hasn't been added yet to pocketmine and pure entity disabled mobs and tea spoon could work it's just not stable. I'm not a pro developer.
     
  13. ElLazer

    ElLazer Silverfish

    Messages:
    21
    GitHub:
    lazerdev
    Well it works it's just glitchy, I see when you say it doesn't place. I'll try to fix it.
     
  14. Devin

    Devin Witch

    Messages:
    50
    Fix what?
     
  15. ElLazer

    ElLazer Silverfish

    Messages:
    21
    GitHub:
    lazerdev
    Olny people who has creative can place the spawner with the mob inside.
     
  16. Devin

    Devin Witch

    Messages:
    50
    Wait acually?
    But how doees other MCPE servers do it?
    Please... I really want to release my skyblock. Legit just waiting for spawners.
     
  17. Devin

    Devin Witch

    Messages:
    50
    Can you make a simple spawner plugin then?
    If so, how much and what are the included stuff
     
  18. KielKing

    KielKing Zombie

    Messages:
    245
    GitHub:
    kielking
  19. ElLazer

    ElLazer Silverfish

    Messages:
    21
    GitHub:
    lazerdev
    Okey I would not make a plugin lol but I would help you fix your spawner plugin.
     
  20. Devin

    Devin Witch

    Messages:
    50
    It's not my plugin.
    Also, I have tried teaspoon and no it doesn't work. I have enabled spawners aswell.
    Please help.

    SpawnerPE Link: https://github.com/thebigsmileXD/SimpleSpawner
     
  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.