maruohon / tweakeroo

A client-side Minecraft mod that adds various "tweaks" (= usually small-ish individual features)
GNU Lesser General Public License v3.0
481 stars 132 forks source link

new feature: weighted hotbar slot randomizer #316

Open end-user opened 2 years ago

end-user commented 2 years ago

Since there are now lists that act as parameters for some features, how about using a list for adding weights to the randomization? The way I'd envision it working is creating a list of weights (percentages) to be applied to the slots. For example, let's say I set my randomizer to the first 4 slots. Then I could create a list with 60, 25, 10, 5 to indicate how likely each slot was to be selected for placing. My goal was to create more infrequent placement of variations in blocks when building a wall, for example.

There could be some issues with the values not adding up when the number of slots changed. Perhaps an alternative is to use integers that are used to calculate percentages dynamically, with 1 being default for any slot.

maruohon commented 2 years ago

It doesn't have to add up to 100, it can just be relative weights with the total sum being whatever.

end-user commented 2 years ago

Any progress on this? It would really help in building walls with better texture.

maruohon commented 2 years ago

It will be worked on in the main development branch at some point after the other mod restructuring and code clean-ups are done. No ETA of any kind when it might arrive to 1.18+.

end-user commented 2 years ago

Is there another ticket tracking it? We could reference that one and close this one.