Zarius / Bukkit-OtherBlocks

OtherBlocks (now known as OtherDrops) plugin for Bukkit (dev build: https://www.mediafire.com/?i6ows1g6kus2o0l)
http://dev.bukkit.org/server-mods/otherdrops/
GNU General Public License v3.0
17 stars 17 forks source link

[Feature] Random numbers / strings in lore of the drop #272

Closed oktay-sen closed 11 years ago

oktay-sen commented 11 years ago

Hello!

It would be really useful if we were able to drop items with random lore. For example, a zombie could drop an item that has the lore "(10-20) Damage". In this case, "(10-20)" would be replaced with a number that is between 10 and 20. You would save my life if you could add this feature :)

Thanks!

Edit: Formatting could be like so:

[! (insert stuff here) !] --> The args between "[!" and "!]" will be processed for a random result. [! "Apple","Banana","Melon" !] --> This will be replaced by either "Apple", "Banana" or "Melon". (without quotes) [! 10-20 !] --> Will be replaced by a number between 10 and 20. [! 10-20, 35 !] --> Will be replaced by either a number between 10 and 20, or 35. [! "Apple"!45,"Banana"!55 !] --> 45% chance for "Apple" and 55% chance for "Banana".

These are all suggestions. Personally, I only need the [! 10-20 !] part, but all of them would be useful for everyone, in my opinion. It doesn't have to be [! !] either. It could be some other format too.

Thanks again! Hope you can add this feature :)

Zarius commented 11 years ago

Added in recent dev build. (commit: fb96961938a8c0f93326aa909568e4d9b90c7f40)

Format is "+(3~6) (sword|mace|dagger)" -> +4 mace, or +6 dagger, or +3 sword, etc.

oktay-sen commented 11 years ago

Thank you so much! This will help me out a lot :)