Simroll

A simple loot table utility for modpack development.

Instructions

Provides the command /simroll which takes two parameters:

  1. A regex representing what loot tables you want to roll, you can also just provide a single loot table
  2. The amount of times you want to roll

Running the command will simulate the rewards and output the results to a file under the folder in your instance directory rolls/ with a timestamp.

Examples

  • /simroll sim "minecraft:chests/.*" 500 Simulates every chest loot table 500 times

Commands

All commands should start with /simroll

  1. sim <regex> <amount> the base command, runs a simulation. Regex is what tables should be matched, amount if how many rolls should be performed
  2. iterations <amount> how many iterations are ran per tick, increase this to speed up simulations at the cost of performance (if iterations == rolls, the simulation runs in a single tick… SLOW)
  3. finish finishes the current simulation no matter how many rolls and outputs the results
  4. cancel like finish, but doesn't output anything

FAQ

Q. When running against certain entities, nothing is output

A. Some mods require certain context to generate loot, we cannot create sensible defaults for these so we skip them in the simulation. There will be logs notifying you of this. Feel free to create an issue / comment with these log lines so we can reduce these occurrences.

Credits

  • Cycle icon by Lorc under CC BY 3.0 (in the logo)

The Simroll Team

profile avatar
Owner
  • 1
    Followers
  • 4
    Projects
  • 887
    Downloads

More from odderb