Snake Minigame
Snake Minigame
The 90s Game recreated in Minecraft with a growing line of Sheep visualizing the snake. Slimes are the points you need to eat in order to grow, if you run into a wall or another snake, you die. Each player gets his own color, thus only a maximum of 16 players can play this minigame.
New Version using MinigamesLib (and supporting 1.7.X): http://dev.bukkit.org/bukkit-plugins/mglib-snake-challenge/
Setup
Pex doesn't care about OP, you need to give yourself the permissions!
- Set the main lobby where all join signs will be: /sc setmainlobby
For each new arena:
- /sc createarena [name]
- Set the waiting lobby (different than the main lobby!): /sc setlobby [name]
- Set as much spawns as your min-players setting: (just repeat the following command) /sc setspawn [name]
To create a join sign:
1st line: snake; 3rd line: arenaname
Creating a join sign requires the permission snake.sign.
Dependencies
- LibsDisguises
- ProtocolLib
Commands/Permissions
Command | Description | Permission |
---|---|---|
/sc createarena [name] | creates a new arena | snake.setup |
/sc setlobby [name] | sets the waiting lobby for a new arena | snake.setup |
/sc setspawn [name] | sets the spawn for each color (team) | snake.setup |
/sc setmainlobby | sets the main lobby | snake.setup |
/sc removearena [name] | removes a arena | snake.setup |
/sc join [name] | joins a game per command | |
/sc leave | leaves the game | |
/sc start [name] | forces an arena to start | snake.start |
/sc reload | reloads the config | snake.reload |
/sc list | lists all arenas | snake.list |
/sc setmaxplayers [arena] [count] | sets max players of an arena | snake.setup |
/sc setminplayers [arena] [count] | sets min players of an arena | snake.setup |
Creating a join sign requires the permission or snake.sign.
Config
config: auto_updating: true # I recommend you to set that to true for bugfix releases etc. default_max_players: 4 # max amount of players that can join and will be used as a default default_min_players: 3 # amount of players required to start a game and min amount of players that will be used as a default use_economy_reward: true # if set to true, the winner get the money reward, if false, the item reward money_reward_per_game: 30 itemid: 264 itemamount: 1 use_command_reward: false # will execute the following command as a reward, if set to true command_reward: eco give <player> 100 start_anouncement: true # enables server broadcasts strings: saved: arena: '&aSuccessfully saved arena.' lobby: '&aSuccessfully saved lobby.' setup: '&6Successfully saved spawn. Now setting up, might &2lag&6 a little bit.' not_in_arena: '&cYou don''t seem to be in an arena right now.' config_reloaded: '&6Successfully reloaded config.' arena_is_ingame: '&cThe arena appears to be ingame.' arena_invalid: '&cThe arena appears to be invalid.' arena_invalid_sign: '&cThe arena appears to be invalid, because a join sign is missing.' arena_invalid_component: '&2The arena appears to be invalid (missing components or misstyped arena)!' you_fell: '&3You fell! Type &6/sc leave &3to leave.' you_won: '&aYou won this round, awesome man! Here, enjoy your reward.' starting_in: '&aStarting in &6' starting_in2: '&a seconds.' arena_full: '&cThis arena is full!' starting_anouncement: '&aStarting a new snake Game in &6' started_anouncement: '&aA new snake Round has started!'
Preview
Youtube
More videos:
[SPANISH] Good spanish plugin tutorial by YanPerez: link
[RUSSIAN] Russian plugin tutorial: link
TODO
- add scoreboard
- add 1.6.4 support
- add more sign editing options
- change ProtocolLib and LibsDisguises dependencies to be optional.
- add multiple command rewards
- more ideas:
Quote from ZeaLBG:Can you make slimes to be 1 size or smaller give - 1 sheep, medium - 2 sheeps, bigest - 3? And add a auto add 1 sheep evere x seconds? Configurable. Kits: Mamba - Speed 1 - unlimited use every 6 seconds Anakond - Can be invisible for 3 seconds. All of his tail get invisible and can move trought other snakes - 1 use Add here and in mob escape: When you win u can get coins with which you can get your kit (configurable) -
Additional Information
This plugin uses the Metrics system by hidendra and sends some server information like Java/Server version, Player count and OS Information to the official MCStats servers.
The plugin also has an autoupdater included, which can be turned off in the config by disabling "auto_updating".
You can find the source code here. Have fun :)
PLEASE UPDATE IT TOO 1.8 PLEASE OR CAN I PLAY IT IN 1.8?
please can you give the the source code?
Good plugin
I can't find LibsDisguises! Can u PM me the correct link to find this plugin, please?
@infinitylimit
Correct, the link you provided is the new version.
This version here only supports 1.7.2 as far as I remember, but the new version all 1.7 versions, also uses blocks now and not sheep which doesn't look that crowded.
Btw you asked for the source, look at the end of the description, I always link the source code there.
@JoDi98 Update: Looks like the author abandoned this standalone look up this http://dev.bukkit.org/bukkit-plugins/mglib-snake-challenge/
Mine has the same problem, timer just runs and runs. Console error is WARN org.apache.commons.lang.UnhandledException: Plugin SnakeChallenge v1.0 generated an exception while executing task 144
When it's trying to grab a class of entity sheep out of a 1.7.1 release file. I could easily fix this as it's just a version issue but where do I get the source?
@efgh58
bump
2nd non op player Can Not Move ! Please Fix That Bug
can you please do 1.7.9 version
Please ! make it for 1.6 version ! It's may be awsome !
On my server the game doesn't start. When the timer stands on 0 it begins at 5 again and the games never starts.
Please Help, 1.When you play you can not see yourself only the sheep behind you. 2.You can run into your own sheep without dying. 3.When two people play, the sheep glitch out and start flying into others from across the arena. 4. /sc does not work, I have to do /snake instead.
What could be wrong with it? I have both the dependencies on their latest versions and my server is running minecraft 1.7.2.
Any help would be appreciated. Thanks, PDawgWoolf
Bonjour, j'ai un gros bug, quand une personne touche un slime, la partie s'arrete et il gagne le jeu. Merci de votre aide :-)
-----Hello, I have a big bug, when a person touches a slime, the game stops and wins the game Thanks for your help :-)
This has got to be cool :)
And the snake don't remove on dead.
And you should not be able to break blocks in waiting Lobby and inGame.
Hi.
Your plugin is awesome. Please add a Command where we can set the Area, where can spawn slimes and make, that players don't die on crashing in grass or flowers.
Thanks. :D
McPlayHD
Not work 1.7.9 ! give this eror :::
[22:21:08 WARN]: Exception in thread "pool-3-thread-81" [22:21:08 WARN]: org.apache.commons.lang.UnhandledException: Plugin SnakeChallenge v1.0 generated an exception while executing task 1233 at org.bukkit.craftbukkit.v1_7_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: java.lang.NoClassDefFoundError: com/comze_instancelabs/snakechallenge/v1_7_2/MESheep1_7_2 at com.comze_instancelabs.snakechallenge.Main.initPlayerMovements(Main.java:1099) at com.comze_instancelabs.snakechallenge.Main.access$0(Main.java:1080) at com.comze_instancelabs.snakechallenge.Main$15.run(Main.java:1066) at org.bukkit.craftbukkit.v1_7_R3.scheduler.CraftTask.run(CraftTask.java:53) at org.bukkit.craftbukkit.v1_7_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53) ... 3 more
[22:21:14 WARN]: Exception in thread "pool-3-thread-82" [22:21:14 WARN]: org.apache.commons.lang.UnhandledException: Plugin SnakeChallenge v1.0 generated an exception while executing task 1233 at org.bukkit.craftbukkit.v1_7_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: java.lang.NoClassDefFoundError: com/comze_instancelabs/snakechallenge/v1_7_2/MESheep1_7_2 at com.comze_instancelabs.snakechallenge.Main.initPlayerMovements(Main.java:1099) at com.comze_instancelabs.snakechallenge.Main.access$0(Main.java:1080) at com.comze_instancelabs.snakechallenge.Main$15.run(Main.java:1066) at org.bukkit.craftbukkit.v1_7_R3.scheduler.CraftTask.run(CraftTask.java:53) at org.bukkit.craftbukkit.v1_7_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53) ... 3 more
@Baybren
Thank you for bringing this up! Also, do you see any errors in your console when this happens or when you launch the plugin? If so, post it in the comments, thank you. :)
The only problem I'm having with this plugin is that once the game ends players aren't teleported back to the lobby, and since they're in survival mode the slimes start attacking them. Otherwise it seems to work perfectly for me, and I'd really like to use this on our server!