Custom Loot

If you liked this item, please rate it up on Steam Workshop page.

Author: MasterKratos12

Last revision: 5 Dec, 2024 at 19:02 UTC

File size: 249.54 KB

On Steam Workshop

Description:

This is a dependancy mod that adds custom loot. It integrates loot of other mods with the game.


Loot Terminal
Adding custom loot manually is quite inconvenient. So, this mod comes included with a custom loot editor accessible in-game. The structure of the GUI is described as follows:

  1. Loot Table
    • Displays the current selected loot table
    • Click on it to change current loot table
    • It represents the name of the loot table (for example, "loot_haybot", "loot_farmbot")
  2. Random Loot
    • Displays the current selected random loot
    • Click on it to change current random loot
    • It represents the table of all loot elements which are spawned randomly
  3. Select Loot
    • Displays the current selected select loot
    • Click on it to change current select loot
    • It represents the table of all loot elements which are spawned randomly, however only one is spawned unlike random loot where more are spawned depending on slots
  4. Overall Chance
    • Displays overall chance of the selected loot table
    • Click on it to edit the value (press enter after typing to confirm change)
    • It represents the chance of triggering the loot table (for example, a overall chance of 2 means the loot will be spawned at a 1 in 2 chance)
  5. Slots
    • Displays slots of the selected loot table
    • Click on it to edit the value (press enter after typing to confirm change)
    • It represents the number of loot spawned which can be picked up
  6. Chance
    • Displays relative chance of the selected random loot or select loot
    • Click on it to edit the value (press enter after typing to confirm change)
    • It represents the relative chance of spawning between the loot elements (for example, if one loot element has 1 relative chance and the other 9, then 90% of the time the second will spawn while 10% of the time first will spawn instead)
  7. Quantity
    • Displays quantity of the selected random loot or select loot
    • Click on it to edit the value (press enter after typing to confirm change)
    • It represents the quantity of loot spawned
  8. Uuid (Item)
    • Displays uuid (item) of the selected random loot or select loot
    • Click on it to select an item (press ‘E’ or close GUI to confirm change)
    • It represents the loot item spawned
  9. Create New (Loot/Random/Select)
    • Creates a new (Loot table/Random loot/Select loot)
    • Entered value must be non-empty and (Loot table/Random loot/Select loot) name must be unique
  10. Delete (Table/Random/Select)
    • Delete the current selected (Loot table/Random loot/Select loot)
    • (Loot table/Random loot/Select loot) cannot be deleted if it is the only one in the file
  11. Randomization Functions (All the … buttons)
    • Sets a function to randomize values
    • Click on it to select randomization function
    • Note: For randomStackAmount function, you must input min (least value), mean (average value) and max (maximum value)
  12. Toggle Buttons (On or Off)
    • Toggles random loot or select loot
    • If turned off, the corresponding loot will not be saved in the file
    • Either one must always be toggled
  13. Save File
    • Saves all the data in the file
    • The path to the saved file is ‘workshopcontent3879903224128169CustomLootCustomLoot.json’ (A format of the custom loot table is given in the mod’s folder)

How to create custom loot

Here is a step by step guide to create your own loot.

Step 1: Place the part and interact with it to get started
Step 2: Create a new loot table by pressing the respective button
Step 3: Name must be unique and non-empty. For this guide, I’ve named it ‘loot_haybot’
Step 4: For simplicity, select loot is turned off. Now set the uuid (item)
Step 5: Now change overall chance value, pressing enter after typing to confirm it. Do the same for slots, chance and quantity
Step 6: Save the file
Step 7: Go to the mod’s CustomLoot folder –> ‘workshopcontent3879903224128169CustomLoot’
Step 8: Copy the entire folder and place it in your mod’s script folder
Step 9: Load the mod on any custom game. I have loaded Modded Craftbot Recipes in my case
Step 10: Voilà! you have made your very own customized loot. If everything was done correctly, you should see your mod uuid in the dev console next to custom loot

Note: Only mods which are updated in the mod database will have their custom loot loaded in-game

Credits

Big Thanks to Modded Craftbot Recipes, Modder Utilities and their creators for their valuable assistance in making this mod possible.

Download
Required items:

Click the title to search on this site.


ModDatabaseSteam Workshop