Inactive [FUN] Tetris v0.5 - Perfect game when bored [1337]

Discussion in 'Inactive/Unsupported Plugins' started by Streammz, May 23, 2011.

  1. Tetris
    Version: 0.5

    How do you mean addicted? I just play tetris in minecraft!
    With this plugin, you can play Tetris in-game!
    Also, It has permission support, visual effects etc.

    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
    Download:

    v0.5 - Download here
    [​IMG]
    If you really appreciate my work, please support me so I can create plugins faster in the future.
    Frequently Asked Questions (open)

    Does it lag the server?
    I've got an public Tetris server which has been tested with 5 players playing at the same time on an 1gb server, and it was lag-free.

    How do I make predefined Tetris locations
    In the settings file, change "canUseTetrisEverywhere" to false and "MustStandOnBlockType" to an uncommon block id (sponge/jack`o lantern etc)

    Will this break any terrain?
    I've made the Field.Restore() in the script so it supports any block (chest/sign etc) and prevent any dupes thats caused with that.

    I've got an error in the console
    Please post it on the topic and include your settings.txt with it too.

    How to reset the field?
    type /tetris again and it will go away

    What is the permission node for /tetris ?
    Its 'tetris.use'

    How to I rotate / move the blocks?
    After the game starts you'll see gold/iron/diamond blocks on the side of your screen, if you 'press' them (left/right click), you'll move them
    Currently gold is left/right, iron is rotate and diamond is down.

    How do I spectate tetris players?
    /tspec <playername>

    How do I make admin-defined tetris area's?
    With 0.4+, you can change the settings to use ONLY admin-defined areas, thats useful for tetris arena's.
    So here's how you make them
    - In the settings.txt, change "CanUseTetrisEverywhere" to false, and "UseAdminLocation" to true
    - Reload the server
    - In-game, people which are OP or have 'tetris.create' permission, can now use /tbuild (short for TetrisBuild to place blocks where tetris can be played on.

    Heres a graphical example:
    */tbuild*
    [grass][grass][grass][grass] -> [grass][wheatsprout][wheatsprout][grass] -> [grass][wood][wood][grass]
    [dirt][dirt][dirt][dirt] -> [dirt][grass][grass][dirt] -> [dirt][dirt][dirt][dirt]
    */tbuild* again
    Now people can play tetris when they stand on the wood

    How do I change my button binding?
    In the settings.txt when updated to 0.4, there should be a part with Button Binding and several shortcuts, Its all explained there what all means.



    Video:

    Review by @jamescosten



    Changelog:
    Planned for 0.6:
    V0.5 (12 Nov):
    • Updated for RB #1337
    • Added light @ night/dark area's when playing
    • Removed PermissionsPlugin depency (built-in permissions now)
    • Classic mode support (doesn't spam messages in chat in classic mode)
    Older versions (open)
    V0.4 (27 May):
    • Fixed restoring the field when old data contained wallsigns
    • Tbuild mode to make admin-only areas (see FAQ)
    • You can now change button binding to your own liking (I got too much complaints about this), see settings.txt / FAQ
    V0.3 (25 May):
    • You can now spectate tetris players using /tspec <player> (short for TetrisSpec <player>)
    • The game will anounce (if configured) whenever an player beat somebody's highscore
    • Music goes faster when the blocks go faster
    • You can "scroll blocks down", if you scroll with your mouse, the block will go 1 space down so you can make it go faster down if you want.
    Oh and the version number will show the 0.3 now too, instead of 1.0.0

    V0.2 (24 May):

    • Fixed 5th highscore not saving
    • Added /highscore so you can check highscores (not sure if this conflicts with other plugins)
    • Added music boxes that play the tetris theme
    v0.1 (23 May):
    • Initial release with all the main functions
     
    Undrtakr, NEO, fugue2005 and 10 others like this.
  2. I tried that first, but I changed it to down becouse it felt to be way more useful, also becouse somehow some type of the blocks magically rotate down (even square rotates down, while that shouldn't be able to rotate)
     
  3. Offline

    heroanth2345

    Could you a way to rotate with something else than the iron block then?
    Like right clicking in the air or only a right click (no blocks) would do rotate
    And left click on block for moving left/right
    Then scrolling for down
     
  4. Offline

    WaterFalcon

    this is amazing.
    This is OUTSTANDING!
    there is no way to describe this.

    where can i find all the permission nodes?
     
  5. Offline

    sweetswear4665

    How do you connect to your server to test tetris? It just says "connecting to server..." and times out. How do I enter the username/password to login? Otherwise I think I'll put this on my server when I update for 1.6, as it seems extremely fun!
     
  6. Offline

    Quazi

    I loaded this on my server. Played Tetris... typed /tetris when I was done and it completely ruined the building I was standing in. This is a dangerous plugin....
    2011-05-26 10:13:49:20 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'tetris' in plugin Tetris v0$
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:127)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:279)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:699)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:666)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:660)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:377)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:292)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.block.CraftBlockState cannot be cast to$
    at net.gamesketch.bukkit.tetris.FIELD.Oldblock.restore(Oldblock.java:68)
    at net.gamesketch.bukkit.tetris.FIELD.OldTerrainData.restore(OldTerrainData.java:39)
    at net.gamesketch.bukkit.tetris.FIELD.Field.restore(Field.java:19)
    at net.gamesketch.bukkit.tetris.GAME.Game.restore(Game.java:52)
    at net.gamesketch.bukkit.tetris.PLAYER.LocalPlayer.setGame(LocalPlayer.java:23)
    at net.gamesketch.bukkit.tetris.Core.onCommand(Core.java:61)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more
     
  7. I can see why it happens, it tried to restore a sign but it couldn't write a new line to it, I guess the sign fell off the block instantly after placing
    I'll change the ordering etc
     
  8. Offline

    Quazi

    thanks streammz for fixing the land on my server. Tetris works perfectly fine if you use it in an area that doesn't have wall signs. :)
     
  9. Offline

    fatmarley

    Thanks GmK, you are more articulate than I.
     
  10. Offline

    columb

    Works fine with buckit 740 ^_^
     
  11. Offline

    lucky456

    Holy cow!! You are crazy. lol
    But really awesome!!
     
  12. it works with any 1.5 build, but the moderators wanted me to only put the latest tested version in the title ;)

    Good news for the lovers:
    I got the admin-defined areas working, so you can make tetris arena's now without the use of sponges/gold blocks etc.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  13. Offline

    Jany95

    OH MY F*CKING GOD!!! :eek: i will goddamn try it i love tetris!
     
  14. Don't use this yet with 1.6 until its in the topic title, also you shouldn't use 1.6 servers yet anyhow.
    currently the scheduler is broke (the one that retrieves the server ticks)
     
  15. Offline

    EnlightendDead

    1.6 is up just not a recommended build, anyway if you start Tetris it just doesnt start, you can enter and leave the area anytime.
     
  16. Tested with #813, works.. but just FYI;
    This CB build is not stable yet, and could really lag your server inclusive tetris.
     
  17. Offline

    NemTheking

    AWWWWW YEEEAAA! Not exactly fitting for my PortalCraft server, but this is still amazing.
     
  18. Offline

    desht

    Amazing plugin!

    How about binding LEFT_CLICK_AIR to move blocks left, RIGHT_CLICK_AIR to move them right, mouse wheel up to rotate, mouse wheel down to drop?

    Being able to configure input->action bindings in the config would be nice too...
     
  19. Included that for 0.4, thanks for the suggestion ^^
     
  20. Offline

    Lolmewn

    TETRIS! <3
     
  21. Offline

    osktheblack

    I love tetris this is awsome!!!!!!!!!!
     
  22. Version 0.4 out!
    • Fixed restoring the field when old data contained wallsigns
    • Tbuild mode to make admin-only areas (see FAQ)
    • You can now change button binding to your own liking (I got too much complaints about this), see settings.txt / FAQ
     
  23. Offline

    Pinkpixels

    Loving the sound of the 0.4 changes! Will update it on my server once notch sorts out this 1.6 mess!
     
  24. Offline

    aed8494

    lights for night time?
     
    Reterg likes this.
  25. Offline

    19jojo93

    ^ Agree, could you please turn the white border around the game board to lightstone? This game is impossible to play at night time :)
     
  26. Offline

    jonassm

    Build 813? What's that? The un-stable build for 1.6?
     
  27. Lights added for 0.5!
    They will automaticly turn on/off if it becomes dark/light

    @jonassm yes
     
  28. Offline

    jonassm

    What about redstone torches there blinks when you lose?
    :p
     
  29. Offline

    robbert777

    problem: i cant make custom controls whenever i start my server it goes back to default :/
     
  30. then you didn't input the right ones, you should use exactly "ri" "le" "do" "id" "ro" etc
     

Share This Page