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 minigame.

Comments in 'Plugin Development' started by 0neGam3r, Oct 12, 2015.

  1. 0neGam3r
    Offline

    0neGam3r New Member

    Joined:
    Aug 26, 2015
    Posts:
    23
    Minecraft User:
    0NEGAM3R
    With the following characteristics:
    1. Time:
    • waiting time and playing time.
    1. Min/Max Players
    • minimum and maximum per game players for the game to Start.
    1. Award winning
    • The last player standing wins a prize at the end of the game.

    [Thanks for read this thread
    And thanks for your help.]
  2. CavinMiana
    Offline

    CavinMiana Active Member

    Joined:
    Aug 26, 2015
    Posts:
    101
    Minecraft User:
    CavinMiana
    Umm maybe learning some PHP will help and the pocketmine api and your good :p.
    Creeperface and Taha_The_Hacker like this.
  3. CraftYourBukkit
    Offline

    CraftYourBukkit Notable Member Plugin Developer

    Joined:
    Jan 20, 2015
    Posts:
    1,022
    Plugins:
    2
    Minecraft User:
    CraftYourBukkit
    That's basically a Plugin Request. If you want to code it by yourself, then learn PHP and the PocketMine API.
    Taha_The_Hacker likes this.
  4. 0neGam3r
    Offline

    0neGam3r New Member

    Joined:
    Aug 26, 2015
    Posts:
    23
    Minecraft User:
    0NEGAM3R
    I am learning php recently but I just wanted references ...but thx also o_O
  5. TryoneLegendZzz
    Offline

    TryoneLegendZzz Active Member

    Joined:
    May 31, 2015
    Posts:
    201
    Minecraft User:
    SavionLegendZzz
    i suggest arrays, a timer(s), if/else statements, and position setting :D
    0neGam3r likes this.
  6. 0neGam3r
    Offline

    0neGam3r New Member

    Joined:
    Aug 26, 2015
    Posts:
    23
    Minecraft User:
    0NEGAM3R
    thanks for the suggestion +1 :)
  7. PocketKiller
    Offline

    PocketKiller Notable Member

    Joined:
    Jul 20, 2015
    Posts:
    741
  8. 0neGam3r
    Offline

    0neGam3r New Member

    Joined:
    Aug 26, 2015
    Posts:
    23
    Minecraft User:
    0NEGAM3R
  9. FlamingGenius
    Offline

    FlamingGenius Active Member

    Joined:
    Sep 23, 2015
    Posts:
    173
    Minecraft User:
    FlamingGenius
    "Solve the problem,then wrote the code"-john johnson
  10. zombie_Power
    Offline

    zombie_Power Active Member

    Joined:
    Sep 7, 2015
    Posts:
    239
    Minecraft User:
    Zombie_Power
    Your award winning depends on what sort of minigame it is. So lets say it was KitPVP and you want the players to drop items when they die (like when you kill Zombies, they drop a feather). You can check out PlayerDropItemEvent the docs on
    http://jenkins.pocketmine.net/job/PocketMine-MP-doc/doxygen/
    0neGam3r likes this.
  11. FlamingGenius
    Offline

    FlamingGenius Active Member

    Joined:
    Sep 23, 2015
    Posts:
    173
    Minecraft User:
    FlamingGenius
    You can check out my minigame project SandRun on github it can show you the basics of lobbys,timers,ect
    0neGam3r likes this.
  12. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    Use classes instead of arrays.
  13. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    class and array are absolutely different :D
  14. AndrewBit
    Offline

    AndrewBit Notable Member

    Joined:
    Jun 18, 2015
    Posts:
    435
    Minecraft User:
    AndrewBit4
    Time:

    Use tasks.

    Min/Max players:

    PHP:
    if(count($this->getServer()->getLevelByName($map)->getPlayers()) >= $minplayers){

    $this->gameStart(true); #You have to create a public function. And define all stuff, I'm online giving you the bases.
    }
    Award Winning:

    PHP:
    if(count($this->getServer()->getLevelByName($map)->getPlayers()) == and $this->gameStart(true)){

    $this->getServer()->getPlayer()->teleport(new Position($x$y$z$map));

    $this->gameStart(false);

    }

    Create a minigame is really easy (if it's not a difficult minigame) when you have PocketMine forums here for help you :) if you need anything else, do not doubt in call us!
    Last edited: Oct 13, 2015
    0neGam3r likes this.
  15. 0neGam3r
    Offline

    0neGam3r New Member

    Joined:
    Aug 26, 2015
    Posts:
    23
    Minecraft User:
    0NEGAM3R
    Thanks to all for your help I sought help and I found Thanks really are really cool :D:D:D
    Taha_The_Hacker likes this.

Share This Page

Advertisement