OtherDrops

226k Downloads

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

oktay-sen opened this issue ยท 2 comments

commented

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 :)

commented

Added in recent dev build. (commit: fb96961)

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

commented

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