Tetris
This plugin is a continuation of Streammy's Tetris plugin. Streammy has moved on to bigger and better things, so, with his permission, I've decided to take over development for now so that we can all continue to enjoy Streammy's plugin on our servers.
Features
- Load up tetris at any location (or change settings to limit it to locations)
- Original tetris, blocks are the same.
- Highscores + server-wide anouncements (if configured)
- Various graphical effects (Red-screen of death, startup counter, more are planned)
- Restore support after game-over that supports all blocks
- Permission support
- Plays the original Tetris theme (TM)
- Spectating
- Admin-only areas
Controls
When a player enters the Tetris field, the following blocks appear before him or her:
- Iron, which is used for rotating
- Gold, which is used for horizontal movement
- Diamond, which is used for instant drop Left clicking each of the blocks gives the listed effect.
If you'd like to change these controls, you can do so in the config.
Commands
- /tetris
- Creates a Tetris field the player that use it, or ends the current game immediately if the player is currently in one. Note that the player must be standing on the block MustStandOnBlockType from the config (default: gold block). If CanUseTetrisEverywhere (default: false) is enabled, this requirement is lifted, allowing a user to create a field anywhere. If UseAdminLocation (default: false) is enabled, then the user must be in an admin location created using /tbuild. The user must have the permission tetris.use (which defaults to true for OPs, false for everyone else) in order to use this command, unless the NoPermissions (default: false) configuration option is enabled.
- /highscore
- Lists the current top 5 highscores.
- /tspec
- If Spectate is enabled in the config (default: true), then users will be able to teleport to the lower part of the field in order to spectate a Tetris game in progress by using the command "/tspec PLAYER", where PLAYER is the username of any player who is playing Tetris.
- /tbuild
- If UseAdminLocation (default: false) is enabled, this is the command to be used to define admin locations in which Tetris is allowed to be played.
Donations
If you would like to support the future development of this plugin, a donation would be very much appreciated. If you can also specify a requested feature along with your donation, in which case I'll prioritize adding that feature for the next version.
Hey.. any updates?
The "locations" file resets every time the plugin reloads. Any fixes for this?
Whenever I restart/reload, the positions of my /tbuild spots reset
I'd love to see it for the craftbukkit 1.4.5 beta build. Because it goes completely weird if I decide to start it with the /tetris command. It kicks me out with end of stream and always does it again when I'm trying to join. No errors, but this weird disconnect.genericReason glitch.
Is this still being developed (for 1.4.4)?
Sorry that I haven't been around, lately. I've been a lot busier with other things and have had less time to develop this plugin and play Minecraft. That being said, I am currently testing a version that will work in 1.4.2 and will be uploading it shortly after the first recommended build. Additionally, v0.7.2 has been tested to work just fine on 1.3.1 and 1.3.2, and will likely work on 1.4.2, though it may potentially be unstable due to potential changes in the bukkit API. Feel free to test it and give feedback.
Everyone on my server really loved it as well! Is it in development for the next build? Please don't give up on this awesome plugin!
Ive been having some issues with this not working in a worldguard protected region, ive tried the build allow and the passthrough allow flags and it still does not make the field but if i try to break the gold block it says you cannot destroy this field created by (username) any other flags i should try?
Does this work with 1.3.1? i had it on 1.2.5 and everyone loved it (had a HUGE arcade for it) not i'm wondering if its lost to me.
perhaps make the highest score, or score based rewarding system ex. 4 line, $4 in iconomy
@GamingG
When I paste the arena, how is a new game started there?
I think when a player tries /tetris, a new arena is generated. So i think there is currently no way of setting up a really static arena?
@szoller For now, you could have one person play Tetris, then use WorldEdit to copy the arena, have the player end the game, then paste the arena where it was and modify it from there. It's a bit hackish, but it will work for now. In the future, I could add an option that would make it so the generated arena only affects the part of the board that is actually being played on, so you could customize the look of it, as right now, any changes you make would go away during a Tetris game, defeating the purpose.
Could you tell me how you done this?
Yes please add it to the plugin :)
Is there a way to modify the arena (visually), e.g. specatator area etc.?
@Unpluggeddk I've considered hooking Vault to allow things like this. Maybe I could add something like a configurable contest period with rewards to the winner during the period once I get to that. It might be a while, though, since I think other areas of the plugin need to be improved first.
@szoller That's actually how I have it set up on my server. There are three permanent Tetris fields set up permanently. I added them manually with WorldEdit, though. I could add this functionality to the plugin.
Is there a way to build the game in a static place? So there can be a kind of a tetris arena ;)
Will there ever be economy support to this?.. :) lets say highscore of the week gets certain amount :)
@ablac Those sound like very serious issues, and I'm very sorry that this is happened; however, I haven't been able to reproduce such a thing so far. Can you give me any more information regarding how to reproduce this? I'm especially interested in what items were in the players' inventories, especially those that are enchanted. I'm also willing to come to your server and watch if you're willing to set it back up the way it was. Again, I'm very sorry that this happened.
As far as using WASD for movement, it's something I've considered; of course, the player's character would appear to shake due to the fact that the client would assume the player is trying to move, but the server would cancel the event and put the player back in the proper position. Still, it's something I want to at least attempt before the major release.
Plugin's crashed a few times and wont let player leave and they lose there inventories. I have to completely disable the plugin and use WorldEdit to remove the arena.
Heres the Server Error Log http://pastie.org/4247210
Couldn't u set it up to use WASD as the keys by tracking player movement, but it would lock the player into place and when they press the key it tracks which direction they moved and moves the pice, If they press W it would increase drop speed slightly, if they press S it would insta drop and A and D are pretty straight forward.
@CubieX I'm testing this fix right now. I intended to have it up a few days ago, but I got very busy again. I'll upload it tonight.
@weja93 I'll add the sign sometime in the future. That's a good idea. For now, though, I made it so that "/tetris highscores" and "/tetris scores" show the highscores, too. When I'm done testing the above fix, I'll upload a version that contains it.