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.
I have request :)
Make sign with [highscore] and show the top 3 players with score on it.
Or something like that, so people don't have to type /highscore, which is a bit confusing anyways because they don't know which game's highscore it is because it's just "highscore" and not /tetris highscore or something. Sorry for confusing post.
@CubieX Confirmed. I should have a fix out for you soon.
Today I expierienced something weird: I used /tspec to spectate a game. And after the player used /tetris to end the game, I was stuck in the ground that had returned and would have died, if I were not an Admin, but a normal player.
Could you please try to confirm this and fix it if necessary? Spectators should be teleported back to their initial position before the field is reset.
We are using MC 1.2.5 R4.0
@xjonny84x
make sure you use the stop command to stop the server, and not forcing it to stop using the close button
@xjonny84x I can't reproduce this. I made 3 areas on my server using /tbuild and I've restarted about 4 times since then, and they continue to work.
Do you get any errors at the console? Is the file plugins/Tetris/locations being populated with a list of locations (just open in a text editor to see a list of coordinates and the words they're in)?
i have a problem everytime i reboot my server all my block of tetris disapear i need every time to do /tbuild then a place blocks and then /tbuild again
@Hadersjm I'll amend the description to make it more helpful. But, basically, the first time you use the "/tbuild" command, you enter into Tetris build mode. At this point, you'll want to go ahead and build the block (or blocks) you want Tetris to be able to be played on. These blocks can literally be any type of solid block, as MustStandOnBlockType is ignored if UseAdminLocation is turned on. Once you have finished placing Tetris blocks, simply switch build mode off by using "/tbuild" again. Those blocks will be indestructible by normal player means unless you're in build mode, so you'll have to switch back to build mode to remove them if you decide you don't want them there.
Could you explain the tbuild section better? I can't work out how to create an admin region :/
@julesm74 I don't entirely understand your post. Could you word it another way? If you're wanting an option to not store the user's inventory when he or she is playing Tetris, I could do that.
@Streammy
Oh I noticed it when I tested it yesterday, I used the plugin back in Beta 1.6 and couldn't remember it.
And it can supimmé orders at stake? / spawn etc. to avoid multi inventory bug world
ps: I am french
@Klausar
Hello Klausar,
When I created this plugin, I implemented the game speeding up slowly. It isn't really tweaked though (GamingG, todo? :D), so after about 75k points it suddenly gets INSANELY fast that you can't keep up anymore.
@GamingG
I get around 50000 points, and the speed doesn't increase
@etherz10 This command already exists. The command is "/highscore". This might be conflicting with other plugins, though, so I'll make sure to at least add some aliases for this command when I redo the highscore storage.
@weja93 No need to feel stupid. You can get the command list in-game by saying "/help Tetris", but I'll go ahead and add them to the page to clear things up a bit.
Uhh... Commands? Or should I figure them out somehow?
I feel stupid.
@GamingG
Any chance you can add a command so players can check highscores without having to play a tetris game
The next version should be out soon. In addition to various, tiny fixes, I'll be making the high scores only allow a user to be in them once by default, with a configuration option to change that behavior, since it's a bit annoying when one really good player likes to play Tetris a lot and ends up taking up all of the high score slots.
@Unpluggeddk Sorry I've taken so long to get this fix up, but I've been busy with other things. I found and fixed the problem, and it'll be in the next release. I'll have it up in the next 24 hours.
@Klausar On my server, the speed is increasing over time. How many lines are you getting and what is your score?
Can you make it getting harder after time? It seems to have the same speed all the time.
@GamingG
Plzz fix the bugs soooonish.. :D
Might get this for my server. Seriously debating it, gonna leave it to my forumites to decide.