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

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

  1. Offline

    Streammz

    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. Offline

    Streammz

    Yes, I've just tested it and it works great!
     
  3. Offline

    L3nnyBoss

    Does this work with Bukkit 953???? I hope so!!
     
  4. Offline

    Streammz

    Should work, 1.6->1.7 contains no API breaks
    tell me if it doesn't work and i'll fix it.
     
  5. Offline

    NEO

    Working fine on 953 :)
     
  6. Offline

    olimoli123

    Idk if this helps, but maybe rather than the holding shift thing make it pressure plates?
     
  7. Offline

    Chasingu

    953 Compatible?
     
  8. Offline

    Streammz

     
  9. Offline

    L3nnyBoss

    Yeha its working!!! THanks you so much for this great plugin!!!
    PS Do you are interested to import snake :D
     
  10. Offline

    coolio227

    10:11:47 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'tetris' in plugin Tetris v0.4
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:298)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:711)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:676)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:669)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
    at org.bukkit.craftbukkit.inventory.CraftInventory.setContents(CraftInventory.java:45)
    at net.gamesketch.bukkit.tetris.GAME.Game.restore(Game.java:52)
    at net.gamesketch.bukkit.tetris.PLAYER.LocalPlayer.setGame(LocalPlayer.java:25)
    at net.gamesketch.bukkit.tetris.Core.onCommand(Core.java:68)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more



    i got this error can anyone help?


    ps this happened just after typing /tetris
     
  11. Offline

    Streammz

    What build are you using?
     
  12. Offline

    coolio227

    nvrmnd i was just building to high up, but thanks any way
     
  13. Offline

    Sorienrot

    [​IMG]

    XD
     

    Attached Files:

  14. Offline

    Hakno

    OMG! Is this even possible?
     
  15. Offline

    Daniel Few

  16. Offline

    Jake Radcliff

    Whenever I type /tetris while standing on a gold block, it does nothing. In the server log, it gives me this.
    Code:
    2011-07-14 11:12:32 [INFO] player join, heres var s 1
    
    When I type /tetris AGAIN, it gives me this error in the server log. I am running CraftBukkit #953.
    Code:
    2011-07-14 11:12:45 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'tetris' in plugin Tetris v0.4
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:298)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:711)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:676)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:669)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
        at org.bukkit.craftbukkit.inventory.CraftInventory.setContents(CraftInventory.java:45)
        at net.gamesketch.bukkit.tetris.GAME.Game.restore(Game.java:52)
        at net.gamesketch.bukkit.tetris.PLAYER.LocalPlayer.setGame(LocalPlayer.java:25)
        at net.gamesketch.bukkit.tetris.Core.onCommand(Core.java:68)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    Could this error be from typing /tetris while too high in the world or too low?
     
  17. Offline

    Streammz

    yeah, thats likely related to it, I've had reports of that before, but it isn't too high priority
     
  18. Offline

    Jake Radcliff

    Can you add some sort of lighting to the glass box while playing tetris? I have some underground tetris games, and since there isn't any light underground, you cannot see the tetris board. At all. So, some sort of lighting in the tetris game would be nice. Maybe include some pieces that fall down that are made of glowstone?
     
  19. Offline

    Kilianx

    Oh, this is freaking awsome, i Love it :)))
    if u have a bit of time, u could improve the Music Track playing wit multiple note-blocks.
    More comfortable for my ears x3
     
  20. Offline

    coocoo617

    Can you make it so you can invite people to play against with /tetris invite and for playing singleplayer type /tetris play or something like that.
     
  21. Offline

    mineykong

    whats the nodes? please help
     
  22. Offline

    sfmplayer

    Yo dude !

    THANKS! for making this
     
  23. Offline

    Chasingu

    Does this work with 1000?
     
  24. Offline

    Streammz

    afaik, yes
     
  25. Offline

    19jojo93

    Could anyone help me please? :)

    I can't make the RightAir shortcut work!
    Everything else works, and I can even change what the buttons do, but RightAir just doesn't seem to work properly, for ANY of my players not just me.

    Here is my config:
    Code:
    ButtonLeft=le
    ButtonRight=ri
    ButtonUp=ro
    ButtonDown=id
    LeftAir=le
    RightAir=ri
    ScrollUp=ro
    ScrollDown=do
    SneakScrollUp=ro
    SneakScrollDown=do
    So if I'm reading it correctly it should work right?
    RightAir=ri

    No error messages with this plugin either afaik!
     
  26. Offline

    Streammz

    I had various reports of right-air not working, and after investigation it seems that bukkit causes this, sorry
     
  27. Offline

    19jojo93

    Ah right, can live without =)
     
  28. Offline

    Firehunter23

    @Streammz

    Hi!
    I got a problem on my server. A player started the game tetris on an "admin-only" created place.
    Then after the game was finished but not yet removed from the map one of my admins also started a game (on the same place).

    This caused that after the admin was done with his game (he stopped the game using /tetris) some of the game part left in the world, which we had to remove ourself.

    Suggestion: Would it be possible to prevent starting the game in the same place when some part of the new game collides with an existing one?
     
  29. Offline

    i_am_the_doctor

    would their be anyway to add a config file to change either the colors of the blocks or replace like the black ones with air? i was thinking about making a tetris like this game here :http://www.stickpage.com/tetrisdgameplay.shtml: fairly fun but glitchy, but like taking out the black wool blocks atleast would be kool.
     
  30. Offline

    Streammz

    currently not, but i might implent it later
    also note it won't work with other blocks then wool
     
  31. Offline

    volt123

    I get this error why trying to use tetris:
    Code:
    13:07:00 [WARNING] Task of 'Tetris' generated an exception
    java.lang.NoSuchMethodError: org.bukkit.block.NoteBlock.setNote(B)V
            at net.gamesketch.bukkit.tetris.GAME.GameLoop.PlayNote(GameLoop.java:219)
            at net.gamesketch.bukkit.tetris.GAME.GameLoop.run(GameLoop.java:40)
            at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:438)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    Everything sets up but the blocks are not falling down. Bukkit 1001 nothing chainged in settings.txt.
     

Share This Page