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

Mini-games

Comments in 'Plugin Development' started by picker118, May 28, 2015.

  1. picker118
    Offline

    picker118 New Member

    Joined:
    Nov 12, 2014
    Posts:
    10
    Minecraft User:
    picker118
    I'm guessing there are a lot of people who would like to know how to create a mini-game plugin. I myself is partially included in some of the people that would like to know how to. I look at some peoples source code and than I try to make my own but its like I have to copy their plugin than it feels like I just copied and pasted. Yeah, making plugins like auto-broadcasting messages when a player logs in or a combat logger are easy to make but for some reason mini-games are hard...
  2. BlubberBoy333
    Offline

    BlubberBoy333 Active Member

    Joined:
    Aug 31, 2014
    Posts:
    177
    Minecraft User:
    Blubberboy333
    Yeah they are...
  3. picker118
    Offline

    picker118 New Member

    Joined:
    Nov 12, 2014
    Posts:
    10
    Minecraft User:
    picker118
    So my question is: how do you make mini-game plugins. Don't just say: "Oh you just start typing" because that is just one step... I want the logic and maybe an example with some comments.
  4. picker118
    Offline

    picker118 New Member

    Joined:
    Nov 12, 2014
    Posts:
    10
    Minecraft User:
    picker118
    Plus anything that will help me understand :D
  5. BlubberBoy333
    Offline

    BlubberBoy333 Active Member

    Joined:
    Aug 31, 2014
    Posts:
    177
    Minecraft User:
    Blubberboy333
    I'm not the one you should be asking, I know nothing about making mini games
  6. picker118
    Offline

    picker118 New Member

    Joined:
    Nov 12, 2014
    Posts:
    10
    Minecraft User:
    picker118
    This is a public thread, you are just the only one that has been replying :p
  7. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    A mini-game? Well, it depends on how "good" you want it to be, but first of all you SHOULD learn how to code in PHP and then learn and understand PocketMine-MP API
    CrazedMiner and Jon like this.
  8. picker118
    Offline

    picker118 New Member

    Joined:
    Nov 12, 2014
    Posts:
    10
    Minecraft User:
    picker118
    Yeah I forgot to add that I have made PocketMine plugins before but something was different about mini-games. I undestand how to make them now though... mostly. How would I teleport each player to their individual spawn when they join the arena?
  9. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    Make a system that recognize all the "spawn points" or store them, then teleport a player to a random point, and remove that point from the list, so you don't have 2 players on the same position
  10. picker118
    Offline

    picker118 New Member

    Joined:
    Nov 12, 2014
    Posts:
    10
    Minecraft User:
    picker118
    Sounds easy but probably won't be.
  11. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    Figure it out by yourself ;) if you a already know PHP, then it will be easy :D
  12. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,306
    Plugins:
    11
    Minecraft User:
    PEMapModder
    It depends on your definition of "a minigame plugin". Different minigame plugins have different ways.

    But one common thing about minigame plugins is that, you need to:
    • Create accounts for each player to save statistics
    • Handle the player's session, i.e. which or what game he is in
    TigerHix and CrazedMiner like this.
  13. Xenturio
    Offline

    Xenturio Active Member

    Joined:
    Sep 19, 2014
    Posts:
    333
    Minecraft User:
    Xenturio
    if u do that - what happends if the list are empty because of to many players xD
    i search at the easiest way for fixed spawn position for each player.
    i think about your way but with the result that if more players online then spawn positions setted in fg that maybe it gives problems...
    so other idea to spawn players on different positions?

    - "don't have 2 players on the same position"

    this is not important for me if more players in minigame then setted spawnpositions in config....
    can anyone help?
  14. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    I do have an idea but you may not understand. Copy and pasting would not work. You know, once you have a Minigame working, it is pretty much copy and pasting. My SW, BW, and HG is all the same structure. :)
    MyNameIsTriXz likes this.
  15. Xenturio
    Offline

    Xenturio Active Member

    Joined:
    Sep 19, 2014
    Posts:
    333
    Minecraft User:
    Xenturio
    i can try
  16. Xenturio
    Offline

    Xenturio Active Member

    Joined:
    Sep 19, 2014
    Posts:
    333
    Minecraft User:
    Xenturio
    i only want a easy or other ways to spawn players on different positions ...not more
  17. Xenturio
    Offline

    Xenturio Active Member

    Joined:
    Sep 19, 2014
    Posts:
    333
    Minecraft User:
    Xenturio
    this is all fine but this infos are not helpfull... if u can help -> post, if u CANT help -> DONT POST
  18. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    lol. I am asking should I post directly? People just copy and paste and say: "Thanks!". I want people to LEARN.
    iksaku and PEMapModder like this.
  19. Xenturio
    Offline

    Xenturio Active Member

    Joined:
    Sep 19, 2014
    Posts:
    333
    Minecraft User:
    Xenturio
    o_O:confused: dude your anoying

    i dont say that u drop a code or something like that

    i only want a easy or other ways to spawn players on different positions... not more
    i dont need to learn, coding is not the problem :confused: i want a WAY - A IDEA how to realize it easily
  20. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    Not you :). Hint: Every time you call that function + 1 to a var and use that var as a index for an array.

Share This Page

Advertisement