OreRate
OreRate V0.3.1 [1.2.5-R4.0]
This plugin is inactive. There will not be any update soon.
Source code is already included in .jar file.
Change natural rate of ore.
Description
Want to decrease an amount of coal ore? Tired of digging stone instead of diamond? Wonder how diamond chunk will looks like? This plugin is the answer...
How it's work
When you set a block rate... on every new chunk will be looking for that block and be replace with a new block...
Example: You set stone as a block and replace with diamond ore with a rate of 50%... When a new chunk generate all about 50% of stone in that chunk will be diamond ore...
Chunk generation level is used when you feel a slow on chunk generate... it's use for decrease a range of level that will be replace...
Default is level 0 up to sky limit (256)
How to install
Just put the .jar file in Plugins folder and run the server...
OPs can use all commands only. No permission/database needed.
Commands
[] = Required () = Optional
Command | Meaning |
---|---|
/or new [BlockID] [Rate] [ChangeBlockID] [ChangeBlockData] (World Name) (From Level) (To Level) | Change block id to a new one |
/or add [BlockID] [Rate] [ChangeBlockID] [ChangeBlockData] (World Name) (From Level) (To Level) | Change block id to a new one |
/or del [BlockID] | Delete block |
/or delete [BlockID] | Delete block |
/or rem [BlockID] | Delete block |
/or remove [BlockID] | Delete block |
/or id | Show all blocks name and id |
/or blockid | Show all blocks name and id |
/or material | Show all blocks name and id |
/or list | Show all blocks |
/or all | Show all blocks |
/or from [Number] to [Number] | Change generation level |
/or reload | Reload config file |
Example
Decrease ore rate...
Command: /or add 15 50 1 0
Result: Decrease iron ore by 50%
Increase ore rate
Command: /or add 1 50 15 0
Result: Increase iron ore by 50% from all stone block (50% of stone block will be iron ore)
Replace all ore
Command: /or add 56 100 1 0
Result: Remove all diamond ore
Configurations
You can edit a range of ore generation in config.txt file or via in-game command.
Changelog
[A] = Add
[F] = Fix
[I] = Improve
[R] = Remove
v0.3.1 [#1.2.5-R4.0]
[A] Add support for CB1.2.5-R4.0
v0.3 [#1.2.5-R1.0]
[A] BlockID list
[I] Change storage type to a new class to support multiple ore generation
[F] Multiple ore generation
v0.2 [#1.2.5-R1.0]
[A] World, Ore Level customizable
[I] More info when enter invalid command
v0.1 [#1.2.5-R1.0]
First OreRate released
PS. Any requests can be accepted
@spywhere
so.. when i restart server the chunks getiing unload right? and on what do i need to set ChangeBlockData? 1 or more
@greaperc4
"/or new" and "/or add" is the same command and the "BlockID" is the source block you want to change to "ChangeBlockID" with "ChangeBlockData" so, if you want dirt to become grass then BlockID will be 3 and ChangeBlockID will be 2...
And it doesn't generate ore in existing chunks. So, you need to go further from your explored area and it'll be generate there (recommended to test on local server by set grass to become glass or something)
If you're using older version of OreRate. Try to delete config file and let's plugin generate a new one. Since, each version added a new data into it...
doenst work for me :( ive added them to the world i want when i go to that world nothing is changed and a another problem when i do /or new it doesnt create new it just add
I have noticed that on the world I replace all Iron with Gold I am still getting patchs of iron from time to time. But over all, the result was really nice. Keep up the great work.
@crohakon
It's possible to generated on an existing chunk but it will be ,as you said, scan and run will take a while and also take some server performance until it finish...
As I think, plugin will be generate on an existing chunk when server load that chunk (that's mean you need to walk to all around map to generate ore in that chunk) and all generated chunk will be save into server memory (if disable it will keep in a file), this prevent double generate on existing chunk which can make result of ore rate invalid (may be too much or too less)...
Any hope of an add on plugin or an addition to this one that would allow you to modify an already generated world? For example, I would like to limit diamond, iron, and gold in our 1.1 world and increase it in the 1.2.5 world. However, the 1.1 world is already generated on a massive scale. If I were able to run some kind of "scan" over night to modify ore that would be awesome.
Also, just want to say, thanks for making this plugin. =)
@crohakon
It'll affect to all world if you already in-game and did not specify the world in command.
Yes, it's affect to a newly generated terrains.
For ore limitation, I'm working on it. Since, I just found this bug a few days ago...
Can you only increase one type of Ore per world? For example, I would like to increase both Gold and Diamond on a world. But it seems like only one rule will load.
Does this only effect newly generated terrian or will it effect the whole world?
@LunariusHaberdash
First question, it's possible but it'll be an unexpected result of ore generation... like double ore generation (generate same chunk 2 times) which will make a invalid result of desire rate of ore. Because I use onChunkPopulate event which will be occurred once chunk is generated. But if I use onChunkLoad event and save all generated chunk... it'll be another file to contain all chunk that already generated... which I don't want it to happen because I want this plugin to be lightweight as possible.
Second question, that's good idea and I'll add them in next version (maybe?)... thanks for suggestion by the way...
PS. I'm not English native. So, if you don't understand anything just ask me... and I'll try to answer with more details...
I'm curious if this can be configured to do the following:
eh i guess i was doing it correct before, thanks for the reply. I just thought i was doing it wrong because when i add anything it stopps my world from generating any new land. :/
@oblexive
For coal ore....
/or add 16 50 1 0
16 = Coal ore block id
50 = Rate of replacement
1 = Stone block id
0 = Stone block data
For gold ore....
/or add 14 50 1 0
14 = Gold ore block id
50 = Rate of replacement
1 = Stone block id
0 = Stone block data
For diamond ore....
/or add 56 100 1 0
56 = Diamond ore block id
100 = Rate of replacement
1 = Stone block id
0 = Stone block data
I dont fully understand the commands. what Id like to do is lower the rate of coal ore and gold ore by 50 percent and totally remove diamond ore. How would i do that? Sorry to be a pain!
Me: NEW MAP RESET! User: Is it me or are there no diamonds? Me: *Smiles* Great work! ;)
@Assertive
Ahh... I forgot about that again... Next version should do it...
World restriction would be nice. We want to use this for special mining world, but not have it change any other world.
@BeastsMC
Ok... I'll added more informations about it...
When you add/change/remove a block list... it will look on a whole of new chunk and replace a block as you added in the list... which replace percentage is upon rate you set.
Could you add a description of how exactly each of the commands works? When you remove/add/change a block, does it go through every chunk in the entire world and change it?