NoOres

Introduction

NoOres gives you a whole new Minecraft experience by destroying the idea of ore blocks. Instead of digging 2x1 tunnels looking around for ore blocks (or using X-Ray...) you now gain ores by breaking ordinary smooth stone. Digging a giant cavern to hold your underground city will reward you with as many ores as digging a giant straight line (of equal volume). Without NoOres, all you would get is a fraction of the ores and a ton of cobblestone. With NoOres, you still get tons of cobblestore, but a bunch of useful ores to go along with that collection of yours.

Quick Demonstration Video: http:youtu.be/TBzkpbMGbus

Better Demonstration Video: http://www.youtube.com/watch?v=FVQHDr4OFP0

Overview / Implications

  • Caves are no longer the best way to get ores.
  • Digging 2 tall tunnels is no longer the best mining pattern. Mining pattern no longer matters; you're free to do whatever you want for equal reward.
  • Gold pickaxes become somewhat useful, or at least not worthless.
  • It makes sense to use iron/diamond pickaxes instead of stone.
  • You can now legitimately gain ores in SkyBlock-like maps by creating a smooth stone generator (Google it)
  • All ores become a renewable resource, since smooth stone is a renewable resource (see above).

Features

Efficient: NoOres was designed to be relatively efficient. During normal operation you shouldn't notice any impact on your server.

Command-based lag: To actually "destroy" ore blocks there is an automated command you can use (see below) to automatically generate the world (from a certain X/Z to another X/Z) and then remove ores from the loaded chunks. Replacing ore blocks with stone is a lag intensive process. With the command you can prepare your world before letting people login.

Robust: Using the above command is optional; the plugin will turn all ores into stone when someone attempts to break them. In other words, when someone mines a block of iron, it will drop a cobblestone block. Don't worry, the plugin also prevents people from placing ores to avoid complaints ("Hey, I placed my coal down and when I broke it, it turned into cobblestone?!").

Multiworld: NoOnes only applies to 1 world. This allows you to have a regular world and a NoOres world without issue.

Randomness: Ores drop randomly when destroy a stone block with a pickaxe. There is no way to cheat... you have to work hard and dig giant holes. That said, there are a lot of factors that go into how "lucky" you are. See below for a full description.

Luck System / How ores drop

This luck system is a bit complicated. I'll try to walk you through it, but if you don't really care skip to the summary at the end. WARNING: Math involved.

Your "luck" starts off at 100% Your type of pickaxe effects how lucky you are:

  • Gold: +170%
  • Diamond: +20%
  • Iron: +10%
  • Stone -10%
  • Wood: -20%

Adding the two percentages together gives you a "base luck." For example, if you use a Diamond pickaxe your base luck is 100+PICK = 100% + 20% = 120%

Your base luck is then multiplied by any fortune enchantment you have on the pickaxe. Fortune 1 gives a *30% boost, Fortune 2 gives *75%, and Fortune3 gives *120%.

Going back to the example, if that diamond pickaxe also had fortune 1 your luck would be (120%) * (100% + 30%) = (1.2 * 1.3) = 1.56 = 156%

Now that you have how lucky you are, what does over 100% mean? It means there's a 100% chance something will drop, and then a 56% chance some else will drop at the same time! This means if you had a crazy pickaxe (Golden, Fortune 3 = 596%) you could potentially get up to 6 drops per stone block.

Now, what is "something" ? What specifically drops is determined by a configurable lottery between the styles of ores. Below is an excerpt from the default configuration:

  • NOTHING_RARITY: 1945843
  • COAL_RARITY: 107076
  • IRON_RARITY: 59568
  • REDSTONE_RARITY: 18214
  • GOLD_RARITY: 6013
  • LAPIS_RARITY: 2489
  • DIAMOND_RARITY: 2317
  • EMERALD_RARITY: 100

Think of the selection of which ore drops as a lottery. The number represents how many "tickets" each ore has in the drawing. In other words, NOTING has 1,945,843 tickets in the loterry while COAL has 107,076 tickets. "NOTHING" is exactly how it sounds... nothing drops. In other words your "100% chance to get something" is a dirty, dirty lie.

What does it all mean? The probabilities are set up that, by default, you'll get approximately as many ores as you would if you were to strip mine. If you strip mine using a stone pickaxe you'll earn about 90% (100% - 10%) of the ores you would have gotten strip mining in vanilla minecraft. If you use an iron pickaxe you'll earn about 110% (100% + 10%) of the ores you would have gotten in vanilla minecraft. Do these numbers seem familiar? They should, they're the pickaxe luck modifiers.

If you're unhappy with how many diamonds (or any other ore) are dropping, you can always increase the number of tickets "DIAMOND" has or decrease the number of tickets other ores have. Please do not go below 1 ticket per ore as that will cause unexpected behavior. If you want everyone to have tons of ores, but still keep the same ratio of diamonds-to-iron then decrease the "NOTHING" ticket count.

Commands

/destroyores X1 Z1 X2 Z2

Generates all chunks that cover the block range (X1,Z1) to (X2,Z2) and removes ores from said chunks. In other words, if you want your world to be a 1000 block square, then use /destroyores -500 -500 500 500 to destroy all ores within 500 blocks of (0,0) = a 1000x1000 block square world.

Chunks that were previously generated will not be re-generated, but ores will still be removed.

What this command actually does is teleport you from chunk to chunk until it covers the entire range you provided. As it teleports you, it also removes ores. This process can take a very long time depending on how big your map is. On my system (i7 processor, plenty of ram) it took about 810 minutes to finish executing the example command (-500,-500 to 500,500), but that included the time required to generate the terrain. If your map has already been generated, the process should go much faster.

After using the command, please restart bukkit. This ensures ram is properly cleaned up and that chunks are saved to disk.

Permissions

noores.destroyores: Allows you to use the /destroyores command. Defaults to OP. I highly recommend leaving the default. The server will lag significantly while the command executes, even if ores were removed previously.

Configuration

See the "Luck System" section for a description of what "X_RARITY" means in the configuration file.

The only other configurable option is "worldname" which should specify your world name. NoOres is only supported on one world at a time.

Compatibility

Should generally be compatible with future version of Bukkit until plugin breaking changes are made. Please try it out before asking me to update it.

Credits

All credits for coding go to myself (and the Bukkit team, for making Bukkit, of course) Credits for the basic idea of removing ores goes to Bashcraft (http://www.youtube.com/user/Bashurverse?feature=watch), but I had to significantly refine the specifics.

You're free to do whatever you want with the plugin, (modify and re-release for example), but please provide credit. Linking back to this page is fine.


Comments

  • To post a comment, please or register a new account.
Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files