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 Demonstration Video for Version 0.4 Coming Soon!? Demonstration Video for Version 0.3 (arena stuff, new commands) Demonstration Video for Version 0.2 (gameplay stuff) 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] Minesweeper Plugin v0.4 [1060] Minesweeper Plugin and Source Code v0.3 [1060] Minesweeper Plugin and Source Code v0.2 [1000] Minesweeper Plugin and Source Code v0.2 [953] Minesweeper Plugin and Source Code v0.1 [953] 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.
@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?
@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
The more informations : When i place the Redstonetorch there it won't explode Yes a TNT is under the Sand
@covertbagel don't worry it's one more than me I suck at java, I do web based coding and some basic lua and XML, nothing more
@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.
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
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
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 .. :=
@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
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?
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.
This works with noexplode? 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?
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.
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.
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!
@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...
That would be fantastic, i stopped using this plugin because of this, as i reload the plugins about 4 times a day.