[FUN] Minesweeper v0.4 - Create a Minesweeper Game/Arena [1060]

Discussion in 'Inactive/Unsupported Plugins' started by covertbagel, Jul 11, 2011.

  1. Offline

    covertbagel

    Minesweeper - Create a Minesweeper Game or Arena:
    Version: v0.4

    This is my first plugin and it started out as being pretty simple but has grown up a lot. It's fun to play with on throwaway maps or now you can create an arena which won't damage the world and 'normal' players can reset. Arenas are encased in obsidian to contain possible explosions. I don't have any experience with other play systems but I think this one should mostly work?

    The game is played by placing a redstone torch on the sand block you want to break. It will break automatically and then you will either get exploded or see what color wool is underneath. On each corner of the map there is a column of the wool colors used. The bottom-most color means zero mines and the top-most color means eight mines. Place normal torches on blocks you think are mines or anywhere else you like.

    This plugin will create and explode lots of TNT!
    This plugin could create lots of Obsidian!

    Videos
    Commands
    • /minesweeper - This is now a 'help' command which just tells you what other commands are available
    • /ms-arena-create name (small|medium|large) - This will create a small (8x8 w/ 10 mines), medium (16x16 w/ 4o mines), or large (24x24 w/ 90 mines) arena. You must supply a unique arena name. Requires minesweeper.arena.create permission.
    • /ms-arena-reset name - This will reset an existing arena. You must supply a unique arena name. Requires minesweeper.arena.reset permission.
    • /ms-arena-vitrify name - This will vitrify an existing arena. It will still be playable but will not be available to reset or teleport to anymore. Requires minesweeper.arena.vitrify permission
    • /ms-arena-tp name - This will teleport you to an existing arena. Requires minesweeper.arena.teleport permission.
    • /ms-game-create (small|medium|large) - This is the same as the old /minesweeper command. It will create a one-time unprotected game. Only use it on throwaway maps. Requires minesweeper.game.create permission.
    • /ms-items - This gives you 64 torches and 64 redstone torches to play the game. Most other commands call this automatically but it's good for people randomly joining a game. Requires minesweeper.items permission.
    Permissions
    • minesweeper.* - Allows all commands.
    • minesweeper.arena.* - Allows all arena commands.
    • minesweeper.game.* - Allows all game commands.
    • minesweeper.play - Allows actually playing Minesweeper. Default true.
    • minesweeper.items - Allows giving items to players. Default true.
    • minesweeper.arena.create - Allows creating arenas. Default op.
    • minesweeper.arena.reset - Allows resetting arenas. Default true.
    • minesweeper.arena.vitrify - Allows vitrifying arenas. Default op.
    • minesweeper.arena.teleport - Allows teleporting to arenas. Default true.
    • minesweeper.game.create - Allows creating normal games. Default op.
    Downloads [Source Code now on GitHub]
    What's Next?
    • Add a permission for actually interacting with games.
    • Detect win/loss. Broadcast message on win. Automatically reset on loss.
    • Clear adjacent cells when a redstone torch is placed on a wool block.
    • Don't allow players to remove obsidian or TNT from game areas.
    Changes
    • v0.4 - Added a permission for actually interacting with games. Detection of win/loss is now done. Arenas are automatically reset on loss. Adjacent cells are cleared when a redstone torch is placed on an uncovered wool block unless cell is marked with regular torch. Built-in block protection keeps players from taking TNT/Obsidian. Source is now on GitHub.
    • v0.3 - Added permissions and all the arena stuff. Torches are now placed around the outside of game areas.
    • v0.2 - Added a block listener to automatically break sand. Force detonation of TNT if a mine is found. If a group of white wool is found then all adjacent blocks are automatically cleared as well (very similar to the actual game). Thanks to everyone for their feedback!
    • v0.1 - First version. Only builds the minesweeper game. Didn't automate breaking sand. TNT didn't explode due to redstone torches.
     
  2. Offline

    captainawesome7

    Sounds good, but I suck at minesweeper :p
     
  3. Offline

    Sh00ck

    Did not Work ;)
     
  4. Offline

    Flamers

    @Sh00ck giving him more info (errors) might help
    @captainawesome7 it's easy, its just clicking and logic (Y)

    @covertbagel would it be possible for once you get a none mine block for it to change depending on how many mines are around it?
     
  5. Offline

    covertbagel

    @Sh00ck Yes any more information you could provide would be great

    @Flamers Wow you can tell that this really is my first Bukkit plugin because I never thought to use Bukkit during gameplay. I've only used it to automate the map creation so far but I think I will make it more interactive to where you don't need to break the sand
     
  6. Offline

    Sh00ck

    The more informations :
    When i place the Redstonetorch there it won't explode :p

    Yes a TNT is under the Sand ;)
     
  7. Offline

    Flamers

    @covertbagel don't worry it's one more than me :p I suck at java, I do web based coding and some basic lua and XML, nothing more :p
     
  8. Offline

    covertbagel

    @Sh00ck I noticed this happening today but not earlier so it's really strange. I thought TNT could be activated in that manner? In any case once I update the plugin to automatically break sand after a redstone torch is placed on top I can make sure that the TNT below is activated for sure.

    Thanks everyone for your feedback! I'll be working on the updated version over the next few days.
     
  9. Offline

    yakasuki

    mabey if we used presure pads the tnt would actully expload XD like wooden and stone(yes redstone torches put above the tnt 1 block above should activate it but a update took it out i guess)also can you classafy the colerd wool i have a hard time finding my way around XD
     
  10. Offline

    covertbagel

    I've just modified the first post to publish v0.2 of the Minesweeper plugin. Breaking sand is now done automatically! TNT will detonate now!

    @yakasuki - I considered using pressure plates for the game but decided against it because it would be possible for mobs or other players to wander around on the map and explode it. I've clarified how the colored wool blocks work in the updated top post
     
  11. Offline

    yakasuki

    thanks XD now my freinds are more :D
     
  12. Offline

    covertbagel

    Just added a Minesweeper v0.2 build for CraftBukkit build 1000
     
  13. Offline

    TruffleDucks

    Video please? :D
     
  14. Offline

    SilencShadoW

    Can u implement to autorebuild the Arena and a Play system? So i can put it onto a area and let the people play there way .. with permissions would be nice .. :=
     
  15. Offline

    covertbagel

    @TruffleDucks - I've added a mostly informal video to the top post.

    @SilencShadoW - I'm not super-familiar with play systems since I don't do multiplayer much but that would be a pretty cool addition! I will be looking into this for the next version
     
  16. Offline

    covertbagel

    I just updated the OP for version 0.3! It adds arenas to allow playing on non-throwaway maps. Please let me know if the whole arena thing works well or if there is anything I could do to improve it. I've added a list of things I'll be working on for the next version as well. Be aware that there is nothing to stop players from removing obsidian or TNT at the moment - maybe try locking the arena with WorldGuard or something?
     
  17. Amazing! Maybe you could make it a spout plug-in add achivments. Then make a 2-player version? Have fun with the programing, you're a awesome.
     
  18. Offline

    SilencShadoW

    This works with noexplode? :eek:

    and thx to implement the "arena" :) Can you let them check if u near the arena and only start until you are xxx blocks near the arena?
     
  19. Offline

    covertbagel

    Just added a video for v0.3 changes!

    @SilencShadoW - I force the explosion to happen right away and then the rest is due to chain reaction. I guess that bypasses noexplode?

    @_GWG_SheepKiller - I'm thinking maybe add a timer so people can compete for fastest completion? You can already play with as many people as you want - just have other players use /ms-items to get stuff.
     
  20. Offline

    SilencShadoW

    ill hope =D thank you ill test it today
     
  21. Offline

    number1_Master

    it seems like a good griefer tool in the video but i want it ! :p
     
  22. Offline

    Exxter

    Hello,
    nice idea! But is there no "You win!"-Message or else?
     
  23. Offline

    covertbagel

    Classes for my masters degree have started so I won't have nearly as much time to devote to this plugin but I've decided to add a few more features today and try to get it published tonite or tomorrow? Mostly I want to add a 'can play' permission so random people don't start placing torches all over your map and win/loss detection to do messages and automatically reset an arena. If I have time I'll also add simple block protection so games/arenas can't be disassembled

    Any feedback from server admins would be very appreciated seeing as I don't know what sort of things you like/dislike about this plugin in its current state. Please post or PM me if you have time.

    @nunber1_Master - Yes it's pretty easy for players to mine TNT/Obsidian from arenas right now so please use this plugin with *lots* of caution! I plan to add more permissions and some built-in defenses soon.

    @Exxter - No "You win/lose" messages yet but this is another feature (along with automatically resetting arenas) I want to add soon.
     
  24. Offline

    number1_Master

  25. Offline

    covertbagel

    I've just updated the top post for Version 0.4! I managed to add everything I wanted to add. The whole 'clearing adjacent blocks' thing is a little confusing for people who haven't played a lot of real Minesweeper so that's mostly what I'll be demonstrating when I get around to making another video. Enjoy!
     
  26. Offline

    Jaminb2030

    Are the arena's persistent thro a server reboot yet?
     
  27. Offline

    covertbagel

    @Jaminb2030 - No that's one thing I've never got around to doing. Sounds like a feature for Version 0.5!? I'll see how things go tonite...
     
  28. Offline

    Jaminb2030

    That would be fantastic, i stopped using this plugin because of this, as i reload the plugins about 4 times a day.
     
  29. Offline

    ogr93

    can you win at minesweeper? if you win , you win a prize?
     

Share This Page