MinigamesLib: Snake Challenge
MinigamesLib: Snake Challenge
Snake Challenge recoded with MGLib (now with blocks instead of sheep). Works just like the 90s game, you and a few fallingblock entities represent a snake which is not allowed to crash into walls/others. Eat slimes to grow bigger, last man standing wins.
Setup
You need to install MinigamesLib for the plugin to work
Also, you'll need Vault for economy rewards to work.
- /sc setmainlobby set the main lobby where all join signs will be
- /sc setlobby [arena] set the waiting lobby
- /sc setspawn [arena] sets the player spawn, repeat for multiple spawns (but keep them near the first one)
- /sc savearena [arena]
You can now set a join sign (optionally). Lines:
- Snake
- [arena]
Versions
Snake v1.1 = MinigamesLib 1.3 and lower
Snake v1.2 = MinigamesLib 1.4 and higher
Commands/Perms
| Command | Description | Permission |
|---|---|---|
| /sc | Shows all possible commands | |
| /sc setspawn <arena> | Sets the spawn point. | mgsnake.setup |
| /sc setlobby <arena> | Sets the lobby point. | mgsnake.setup |
| /sc setmainlobby | Sets the main lobby point. | mgsnake.setup |
| /sc savearena <arena> | Saves the arena. | mgsnake.setup |
| /sc setmaxplayers <arena> <count> | Sets the max players allowed to join to given count. | mgsnake.setup |
| /sc setminplayers <arena> <count> | Sets the min players needed to start to given count. | mgsnake.setup |
| /sc setarenavip <arena> <true/false> | Sets whether arena needs permission to join. | mgsnake.setup |
| /sc removearena <arena> | Deletes an arena from config. | mgsnake.setup |
| /sc removespawn <arena> <count> | Deletes a spawn from config. | mgsnake.setup |
| /sc join <arena> | Joins the arena. | |
| /sc leave | Leaves the arena. | |
| /sc start <arena> | Force-starts the arena. | mgsnake.start |
| /sc stop <arena> | Force-stops the arena. | mgsnake.stop |
| /sc list | Lists all arenas. | |
| /sc reload | Reloads the config. |
Config
There are a few config files (config.yml, classes.yml, arenas.yml, messages.yml, stats.yml) which are mostly self explanatory. Be aware that guns.yml is not used in this minigame!
config: default_max_players: 4 # default amount of maximum players that are allowed to join an arena default_min_players: 2 # default amount of minimum players that can join an arena lobby_countdown: 30 # amount of time in seconds to countdown in lobby ingame_countdown: 10 # amount of time in seconds to countdown ingame before the final start rewards: economy: true economy_reward: 10 # You'll need Vault for economy to work item_reward: false item_reward_ids: 264*1;11*1 # 264 being the id, you can specify an amount (the '*1') and enchantments (e.g. 264#DAMAGE_ALL:2*64 would be sharpness 2 on a stack of diamonds) command_reward: false command: pex user <player> add SKILLZ.* global_arenas_size: 30 # not used in this minigame
You can also specify data on an item reward. If you would want 32 enchanted red wool blocks, you'd adjust the config to: 35:14#DAMAGE_ALL:1*32, where :14 is the data for red, 35 the id for wool, and the rest as explained above.
Kits/Classes
There are 2 classes, a speed and a jump class. As always, you can adjust them in classes.yml.
Preview

Youtube
[English] Plugin tutorial by sup3rwheelz https://www.youtube.com/watch?v=Nqlg1UaF7Kk
[English] Plugin tutorial by Craft King: https://www.youtube.com/watch?v=86Wl4JhVQHE
[Portuguese] Tutorial by TuffaoGamer: https://www.youtube.com/watch?v=r4_980-lSxY
TODO
- Suggestions are welcome. :)
Additional Information
Have fun :)
BUGS?
Submit them here: http://dev.bukkit.org/bukkit-plugins/instances-minigamesapi/forum/ and NOT in the comments!
-
View User Profile
-
Send Message
Posted Sep 22, 2014@potre
So everything fine? You should've written just "snake1" without the brackets on the sign ;)
-
View User Profile
-
Send Message
Posted Sep 19, 2014@instancelabs
Yes, thank you / snake works perfect
Sign line 1 Snake line 2 [arena]
Server say: [snake1] appears to be invalid The arena appears to be not initialized, did you save the arena?
Yes i ejecute /snake savearena [name]
I will create another arena to see if this error continues.
o.o line 2 name no [name] ok all solution thx.
-
View User Profile
-
Send Message
Posted Sep 18, 2014@DuskFireHD
@Vinigamer17
I changed it back to sheep again a while ago, just use the latest version.
@potre
Does /snake work? If not I'll add another command, sure.
-
View User Profile
-
Send Message
Posted Sep 17, 2014Please another abbreviation for the command. is identical to SmileyChat creates conflict
skype potre32 pls send me info
-
View User Profile
-
Send Message
Posted Sep 14, 2014@Vinigamer17
You cant you need the old one.
@DuskFireHD
Does the point show each time you get slime ?
-
View User Profile
-
Send Message
Posted Sep 14, 2014Because instead of adding wool sheep
-
View User Profile
-
Send Message
Posted Sep 13, 2014how can I make it sheep again
-
View User Profile
-
Send Message
Posted Sep 13, 2014anyone ? help ?
-
View User Profile
-
Send Message
Posted Sep 11, 2014How come whenever i i get a slime block i dont get any points. Is this a glitch ?
-
View User Profile
-
Send Message
Posted Sep 6, 2014Also just an Idea can you make the slime's small and have no movement because I had a few big slime's in the arena it got very annoying.
Also if it is possible to add a option to change the mob eg mob: sheep or mob: wolf
-
View User Profile
-
Send Message
Posted Sep 5, 2014@mr111111
It's fine, I reverted back to sheep again (which shouldn't bug around) and added powerups, I'll upload the new versions of all minigames the next days. :)
-
View User Profile
-
Send Message
Posted Sep 2, 2014@instancelabs
sorry ya its running fine its just that the blocks bug out and when someone turns the block bugs out and some how jumps infront of them and like knock them out because they supposedly hit their own tail xD
-
View User Profile
-
Send Message
Posted Aug 23, 2014@momzlilmonsters
Alright, this bug is pretty interesting and kinda unfixable right now, as I haven't been able to reproduce it on any servers. But still, I'll try my best to find a way to fix it for you. A video would probably help out, yeah, if that's possible to do.
The vanish is intended btw for snake, people shouldn't see it each other. Or do you mean the bug where you don't see players when you all get teleported to the arena (for all other minigames)? Because that's a minecraft/bukkit bug I'm not able to fix, and you only need to move out of the current chunk to see each other again.
-
View User Profile
-
Send Message
Posted Aug 22, 2014@instancelabs
spigot-1.7.10 build 1570 - with 2 players it shows one red one black - haven't tested on past 2 players yet. those pictures were of just one player. and the blocks are chasing after the player then warping back and getting stuck in a loop, but if the player runs into them it calls a loss. consol showed no errors. and there was no drop in tps on the server, but my tester did mention some client side lag, but not much. i will try to get a video recording in game of the actual block movement. Also i have notice that the actual players do not show up, their stuck in a vanish packet. this vanish happens with a couple of the lib games. still testing them out further
As for a suggestion for the game, it would be nice to do say a pos1 pos2 when defining the exact boundary's of the arena instead of just high low
-
View User Profile
-
Send Message
Posted Aug 22, 2014@momzlilmonsters
Thanks for the bugreport! Do the blocks stay at that positions or just get bugged back? Also, any errors in console? And are both players red team here? o.o
Which bukkit/spigot version are you running? It has only been tested (and confirmed working) on craftbukkit 1.7.9-R0.1 and spigot 1.7.10-R0.1.
-
View User Profile
-
Send Message
Posted Aug 21, 2014We ran a test of this on, running 1.1 snake and 1.3 lib. This is what it does to players in game http://imgur.com/a/PLJOM then it will say after a while that both players lost
-
View User Profile
-
Send Message
Posted Aug 20, 2014@mr111111
MinigamesLib 1.3 and Snake 1.1? Then I'll need to look into that. How is your server tps going while a game is running?
-
View User Profile
-
Send Message
Posted Aug 19, 2014@instancelabs
Im Using the latest updated version
-
View User Profile
-
Send Message
Posted Aug 19, 2014@mr111111
What MinigamesLib and Snake version are you on?
-
View User Profile
-
Send Message
Posted Aug 18, 2014@instancelabs
ya like the block would glitch a lot and what it would do is it would "Teleport" under map or around me and when i get a slime the tail stays the same for me and stuff like that