OreGenerator
Generate Ores Instead of Cobblestone
This plugin is a continuation of Tsters OreGen plugin
Source Code
Features
- Cobblestone generators have a chance to spawn ores instead of cobblestone
- Those chances are configurable
- Configurable worlds in which the plugin will work in (This was specifically made for Skyblock worlds)
Config
Configuration | Description |
Chances: | |
Stone: 20 | The percentage chance each ore can generate |
Coal: 24 | |
Iron: 13 | |
Gold: 10 | |
Redstone: 8 | |
Lapis: 5 | |
Emerald: 3 | |
Diamond: 0.01 | |
Worlds: | Worlds the generator can work in |
- world | |
- world_nether | |
- world_the_end |
Commands
Command | Decription |
/og reload | Reloads the config.yml |
Permissions
Permission | Decription |
- og.gen | Gives the permission to use the generator - players must be in the same chunk as the generator for it to work |
- og.reload | Gives the permission to use the /og reload command |
Bugs
Found a bug? Submit a Ticket!
Future Plans
Got an Idea? Submit a Ticket!
With this mod a normal Stone Generator (Stone not Cobblestone) doesnt work anymore. Is there a trick how it can work again
@limdingwen
Players with the permission can have the chance to generate ores if they are in the same chunk as the generator
How does the perms work? I mean, water and lava don't have owners specified to them, right?
@Riloze
Oh lol, I forgot to put the permission on this page xD
Hi there love the plugin but my players donĀ“t seem to get it to work. It works for me the OP but how are the permissions for this plugin?
@jdcvanderwal
I have skyblock and multiverse on my server and it works fine...
@pkt77
yes i see what i have post and think what did i say but i mean it only support my nether world and default world but if i add my SkyBlock world what in MULTIVERSE is the plugin deletes it!
@jdcvanderwal
I'm guessing you don't speak English, but yes this plugin can be used in any/all worlds
if i dd my skyblock word is goes away!!! Its probely because it not support MultiVerse
@pkt77
also that would be a good feature tho. or you could change it instead of a chunk to a worldgaurd region or something like that.
also, i did think about lets say a lapis block, u need to left click with water and lava on it and then its like a cobblegen (which generates ores) but spawns the block above it.
If u need a tester, i would like to become one. i can run it on my server with alot people to test it for bugs and stuff.
@calvinsnl
The feature was not as hard as I thought it would be... all I did was get the chunk the generator is in, check if a player in that chunk had permission, then generate ores, if not, generate cobble. I'm not going to release it yet, because I need to check for NullPointerExceptions (if there is no player in the chunk) and if it can be used with 2 players in the chunk at the same time. I would also like to get a better percentage algorithm working, but I am not a math genius xD
@calvinsnl
I can see a hard issue to detect such a feature, as it effects the world landscape. I'm sure if it were added, it could be easily manipulated.
I find it better to decrease the chances to a low % and you are just lucky to find a good ore other than store or cobble.
If you bounded and determined, he could, wouldn't suggest it, limit the feature to work in boundry areas (towny, worldgaurd, etc.) that is listed in the config. Note: This is just a guess from a guy who does very little code and hasn't released a working CB/MC plugin/mod.
would be nice to make some sort of option that only players with certain permissions are able to do this. so its only available for donated players.
@Relicum
uploaded code to GitHub :)
Great plugin, one great feature what would finish this off would be if you could have multiple Percentage Calculator groups each having a different permission. So donors would get a better chance of ores than none donors for example. Also are you going to put this on GitHub so ppl can contribute features pre coded and just submit a pull request.
Just had another idea it is possible for players to build dozens of these of an Island especially in CO-OP Islands, this would have the potential to be massively exploited making servers that have donor kits like ours which spawn certain items on a 3 day cool down period, pretty pointless if this plugin is used as I mentioned above. Maybe you could force the player to place a sign next to the generator with certain text on it. Like 1st Line [OreGen], 2nd line player name. Only by ding this could it activate the ore generator and maybe have in the config the number of Generators the players players are allowed. I realize this would require quite a bit of world due to having to store the details of Active generator a player has and what pugin monitors the removal of the players record as this if a player deletes their island through the plugin you, plugin would not know about it. A solution may be to write a small hook/api that other plugins could use to remove the players record. Just an idea. By having a Sign to activate the OreGen would also fixed the issues with stone stone generators. I would be happy to help sketch a possible code design solution. I would help on the coding but I am a web and Unix Bash developer and not had enough experience in java to code it.
Thanks Relicum
Is it possible, configwise, to have the ores only generate on stone creation? Along with only having stone or the ores?
We love the plugin, as do others on my server, but it breaks the smooth stone generators (not to be confused with cobblestone generators) and they only generate cobble or ore.
@DerVillion
lol, mk :)
pk? Are you not gonna give me credit for cumming up with the idea...?
I have noticed a similar problem. I have set them all to about 25 and under. I have emerald on 4 and diamond on 8. I seem to get a lot of diamond and no emerald. I am still using this mod because it is just me and some friends. Can you try to set it up so you can also control the cobblestone chance. Then just make the chances out of 100% total. So you could do 85% cobblestone, 5.5% coal, 3.75% iron, 2% redstone 1.5% gold, 1% lapis, .75% Diamond, .5% emerald, or something like that?
@Liger_XT5
Like I said, My percentage algorithm is not at all good :/