Jump to content

Create a list of blocks based on rarity?


ImpactFlux

Recommended Posts

Anyone know of a good way to build a map/table of blocks in relation to their rarity/difficulty to obtain?

 

I'm looking to dynamically build a hash of blocks on init that iterates through the existing block set and can assign a default value of its rarity or some value to it.  Essentially I need a way to determine how rare a block is for my terraforming mod.  I'm allowing any block to be apart of the terraforming process,  but so it won't be too OP I just want to raise the consume time considerably to get it to that point. 

 

The easy/long way would be to just list every block out and build a massive config file by hand, but I would rather do it dynamically.

Link to comment
Share on other sites

There is nothing listing block rarity as far as I know. 

 

I supposed you might get at the worldgen code and see what the odds of a block being placed are, but I can't think of a gracefull way to do that.

 

I think you are stuck doing this the hard way.

Long time Bukkit & Forge Programmer

Happy to try and help

Link to comment
Share on other sites

There is nothing listing block rarity as far as I know. 

 

I supposed you might get at the worldgen code and see what the odds of a block being placed are, but I can't think of a gracefull way to do that.

 

I think you are stuck doing this the hard way.

 

ars magic has/had something like this (the rarer a item is the more mana it provides; but i didn't play ars magic in a while now, i heared that a lot of things changed)

maybe the developer is willing to share his list.

Here could be your advertisement!

Link to comment
Share on other sites

Yeah I didn't know if there was a good way to define a basic list, and then look at the crafting recipes or if anyone had any better ideas. 

 

What I may do, is build a seperate config with an entire block list, and default everything to having a massive burn time and then go through and assign times to the ones that make sense and let it be a user configuration.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.