BuriedTreasure
Version: v1.0
Introduction
This plugin is an adaptation of the Mario Party mini game Buried Treasure
Gameplay
Players have to find the Treasure Chest buried somewhere in the dirt by digging around the layers of dirt.
To make the game a bit easier, the players can find power ups chests that are buried in the area. The player who finds the Treasure Chest first wins the game.
Set-up
Copy the BuriedTreasure.jar and BuriedTreasure Folder to the plugins directory on your server and start the server. Check that all your plugins are compatible with Buried Treasure look for any errors or for BuriedTreasure Enabled! It means a successful start.
To setup a game simply type /bt arena create <arenaName> note that the following commands are only allowed to OP’s. Example /bt arena create test . and you will enter into edit mode which adds you a shovel and a chest.
With the shovel you can set the 2 points of the cuboid, left click for point 1 and right click for point 2. After doing this you will see a preview of the affected area, don’t worry it’s just a client side change if something went wrong nothing will hurt the map.
Next you will need to set where the players will spawn. Stand on the location you want the players to spawn and type /bt setspawn <name>. Example /bt setspawn s1 , if you got a wrong location just get on the right location and then retype the same command and it will override the spawn with the same name. One rule of the game engine is that if you want to allow unlimited players you only set 1 spawn and all players will spawn in that location. If you set 2 or more spawns that quantity will be the slots avaible for that arena. Important note: don’t set spawns inside the cuboid.
Now that we have set the cuboid we will use the chest in your hand to set the ready chest. The ready chest it’s a toggle block which indicates on the arena, which player have been set as ready to play or not. When players join a game they will need to punch (left click) the chest in order to start match.
Finally stand on the lobby location, the games needs a lobby where the players will be sent to wait and start match, the ready chest has to be on the lobby so be sure the chest has been set there.
Type /bt arena save <pvp> <prize:quantity> <powerupsquantity> .
Example /bt arena save false 266:5 9. This will set the arena lobby where u where standing and set PvP to false, the prize is 5 gold ingots and there will be 9 power ups chest on the arena.
Now you are ready to play!
Type /bt join <arenaName> to join an arena, be sure to clear you inventory before joining.
See the table of commands in the first page for more details.
If you want to leave a game type /bt leave.
Structure of Code
PowerUps:
Commands:
Previews http://youtu.be/0L3RL9JFhfk - thanks to EMOberger
Changelog:
Version 1.0
Initial Release
Version 1.1
HotFix for Loading & Chests tweak
Version 1.2
No Longer needs to copy default files it will create them if none exist
Update for 1.3+ I miss this D:
@FenixAzulDev
Sometimes the chest in the lobby are invisible..
EDIT: only invisble for like 1 guy when every other players can see it.
If 3 players join lobby, and one of them leave the lobby.. it will say buried treasure had ended. and the to guys whos left have to rejoin the lobby to start...
EDIT 2nd:
New bug:
When game started and 1 guy finds a diamond shovel then everyone but him leaves the game, he'll win on forfeit and he keeps the diamond shovel too
@Liutenantpickle remove your config file make the arena setup again and see if that helps @EMOberger ill add min player next update
Sup dawg. The game isn't starting when were all toggled as ready, but the countdown shows up. I want to play the plugin so badly :( Help?
Can't add this to my server till there's a min player option :/ Can't have players milling the rewards.
@FenixAzulDev
Well i think it was a short bug.. it only did it once.. :)
@Unpluggeddk
Strange since I wipe all players items after game end lol
@FenixAzulDev
Okay ive found one!.. :D
Compass-buff hasnt any timer and keeps being in your inventory after game.. :)
@FenixAzulDev
Thats what i mean!.. :D
No bugs no errors!, Just pure Gaming fun.. works like a charm!
@Unpluggeddk
thanks, I'm glad you liked it. If u found any bug or error don't hesitate to report them =)
LOVE THISS PLUGIN ARRRRRRGH!!!! CRAZY
@Taeila_Fae
you have to manually remove the arena since bukkit Configuration class doesn't allow me to remove it. As for the error recheck my code and did not find the error maybe can u invite me to your server so I can see it?
After about 3-4 games we started not being able to ready check on the chest. Received the following error when trying to click the chest.
http://pastebin.com/2VYU0v1a
Also the /bt arena delete <arena name> command doesn't seem to be working. I use the command and it says it deletes but when I do /bt list. It's still there and in the config.
@MastaMilo lol im figuring out how to obfuscate chests but no success atm =/
^-^
Works wonderfully now, thanks :D
Here is the video, if you wanted it: http://youtu.be/0L3RL9JFhfk?hd=1
@FenixAzulDev
but if I have a diamond shovel and I find a chest thinking it's the winning chest and I open it then get a wooden sword >.> but then again it does kinda balance it out.
So yea I think you're right, ok current todo/buglist 1. add min players option 2. If multiple players open the winning chest at once they all get the rewards
@EMOberger
I might implement min players , but right now min players are 2. As for the upgrades i don't think power up stack will be fair for player since each power up have their qualities fir example if u got compass you know where the winning chest its so it will take u some time to dig to it meanwhile a player which does have a diamond shovel doesn't know where the winning chest is located are and he breaks blocks faster but he will need to search for it imagine a player that takes 1 diamond shovel and 1 compass it will definitely win.
@FenixAzulDev
Just helping out :3
also what do you think about my other suggestions? Could you implement them sometime?