I got tired of waiting for a decent gens plugin, or even a script, so I made my own!
Dependencies
- Skript
- There are no plugins or additional scripts required for this to work, but I suggest using PlotsSquared, as that's what I use for the player plots! (There is also a small section in the script for PlotsSquared, It's not necessary at all, but it's a fun thing to have!)
Features
- Includes 8 generators
- Fully Customizable Shop, Drop Costs, Messages, Sellwands, Gens, and Boosters
- 14 Commands (5 Player, 9 Admin)
- 4 Sellwands
- Shop
- Currency (Custom; Called 'Fragments')
- Gens Cap
- Lets you specify a Gens World (Most of the script will not work if this is not set; Default is set to "gens")
- User-Specific Gens (Only the player who placed it can get it back!)
- Gens will only spawn items when the player who owns them is online!
- User-Specific Chests (Only those who placed the chest can access it!) (Only works in the specified gens world)
- Gens are only active when the gens owner (the player who placed it) is online!
Generators
- Cobble
- Iron
- Gold
- Diamond
- Redstone
- Emerald
- Obsidian
- Beam
Commands
NOTE: You MUST execute /Startgens! If you do not, many of the Gens Functions will not work!
Player Commands
/fragmentbalance
(Aliases: /fragbal; /fragbalance) (Shows your Fragments Balance)
/sell
(Sells all gen-drops in the player's inventory)
/genshop
(Opens a customizable GUI with buyable items, including sellwands, blocks, Gens, Tools, and MISC items)
/givefrags (player) (amount)
(Transfers credits from one player to another; essentially /pay for the custom economy!)
/genlist
(Sends a message to the player including each Generator and the cost to upgrade each one!)
Admin Commands
(Permissions included)
/Startgens
(You MUST run this command as functions like /sell and the global boosters will not work unless you execute it!)
Permission: Gens.start
/Genscap (player) (amount)
(Sets the amount of generators a player can have placed at a time) (Default is 25)
Permission: Gens.setcap
/Addgenscap (player) (amount)
(Adds the specified amount to a player's max generators (amount that can be placed at a time))
Permission: Gens.addcap
/Delgenscap (player) (amount)
(Removes the specified amount from a player's max generators cap)
Permission: Gens.delcap
/Setfragbal (player) (amount)
(Sets a player's custom balance (Fragments) to the specified amount)
Permission: Gens.setbal
/Getgen (gentype) (player)
(Replace gentype with one of the Generator names) (Gives the player the specified gen)
Permission: Gens.get
/Boostergive (player)
(Gives the specified player a 30-minute Global Booster, which doubles the drops sell amount) (The time length is changeable)
Permission: Gens.boostergive
/Sellwand (player) (0.5, 1, 2)
(Gives the player a specified sellwand, x0.5, x1, or x2, which cuts the drop-sell-value in half, sells it at the normal set price, or sells the items for double) (Wands only work on chests)
Permission: Gens.sellwand
/Resetgens (player) (Gentype)
(Resets the placed gens of a player, so those gens will not produce any longer)
Permission: Gens.resetplaced
Functions
When you place the Gens, it adds the gen to your cap and sends you a message saying so. To pick up your gen, you need to left-click it once. The best thing about this is that gens are user-specific! (So claiming the gens area in any way is not necessary!)
When the Global Booster is enabled, it sends a message about it to all players in the Gens-Specified world, and all drops sold are doubled until the end of the cooldown!
To upgrade your generators, you can shift+right-click them, and assuming you have enough Fragments, it will be upgraded to the next Generator (It also plays a sound effect for fun)!
Gens Upgrade Cost
Cobble --> Iron: 10,000 Fragments
Iron --> Gold: 25,000 Fragments
Gold --> Diamond: 50,000 Fragments
Diamond --> Redstone: 75,000 Fragments
Redstone --> Emerald: 100,000 Fragments
Emerald --> Obsidian: 200,000 Fragments
Obsidian --> Beam: 500,000 Fragments
Installation
Go to your 'Plugins' folder in the files of your server.
Go through your plugins until you find 'Skript'.
Enter the Skript folder and click on the 'Skripts' file. You should now see around 10 disabled Skript files. (If you are using the newer version of Skript)
Now drag and drop the 'GenSkript.sk' file into the 'Skripts' file.
Go to minecraft and run the command "/sk reload GenSkript.sk"
Now run /startgens and you're ready to use the script! (/togglegens to enable gens!!)
Support
Before you DM me, or leave a review saying it doesn't work, PLEASE run the command /startgens! If it says it is already set, please reach out to me on discord! (Or leave a review; discord is easier for me)
I will be making updates to the script (More Gens, Bigger Shop, More Sellwands, etc) monthly, if not weekly, so make sure you watch for those updates!
I have sectioned everything in the script off, so it should be easier to navigate! (I also added lots of notes, so you shouldn't get confused!)
I hope you like the script!
If you want to see more things like this, hit me up on discord at LunarBurn#8695 with ideas!
(I will answer any and all questions!)