Skip to content

LootSpan (Distance-based Loot)

Get bonus loot in chests that are farther away from spawn [0,0]. Fully customizable!

3k downloads Updated

No ratings yet

Be the first to rate it.

Rate it

Community listing page

Community listing page, reviews may not be monitored by the author.

About

Description

🗺️ LootSpan: Distance-dependant loot added to chests 🗺️

LootSpan is a highly customizable Forge mod that rewards players who go farther out in the world with more/better loot. The further you travel from the world's origin [XZ: 0,0], the better the treasures you'll uncover.

🔧 Fully Customizable: It's highly recommended to tailor your loot experience to work well with other mods you've added. It's very easy with the config! With LootSpan, you have complete control over:

  • Loot Tables: Decide precisely which items appear in chests, including items from your favorite mods.
  • Bonus Loot Amount: Adjust how much extra loot is generated.
  • Distance Milestones: Set the distances required to trigger extra loot tiers, as well as the generation limits.

✅ Lootr Compatible: Enjoy a seamless experience with the popular Lootr mod for instanced loot.

💀 Progressive Gameplay: LootSpan pairs well with your favorite progressive difficulty mods such as Scaling Health or Ascendant Mobs. Turn Minecraft into a game that changes the more you explore!

How Do I Customize Loot?

    🔰 Take a look at the spoiler below to find out how the mod's config works!

Config File Explaination

1.

   #How far from (0,0) in the [X,Z] plane must a chest be to get extra loot?
   #Range: 0.0 ~ 1.7976931348623157E308
   distanceFromSpawn = 5000.0

 This is just the distance you must be to start getting better loot. Pretty self explanitory.

2.

   #Extended format: namespace:itemid:count:weight[:damage][:enchantment1=level1,enchantment2=level2,...]
	extraLoot = [
"minecraft:diamond:1:1",
"minecraft:emerald:2:5",
"minecraft:golden_carrot:2:14",
"minecraft:gold_nugget:4:10", "minecraft:leather:2:15",
"minecraft:ender_pearl:1:5",
"minecraft:slime_ball:3:5",
"minecraft:string:3:20",
"minecraft:air:1:45", "minecraft:iron_sword:1:2:70:sharpness=1,unbreaking=2",
"minecraft:iron_axe:1:2:50:unbreaking=1,efficiency=1", "minecraft:iron_shovel:1:2:100:unbreaking=3,efficiency=2",
"minecraft:golden_pickaxe:1:1:8:silk_touch=1,unbreaking=1"
]

 This is where you can adjust the loot that is generated. Every entry must have: 

'namespace:itemid'. for vanilla items this is 'minecraft', but for modded items it's 'modID'. just press F3+H ingame to view the modID and itemID of any item.

'count'. this is the amount of the item. right now it must be a single number, in future updates I may add a min/max item count.

'weight'. this is the likeliness that an item will be chosen for a given loot roll. for example, by default: 
a diamond will be generated 1 time out of 127 (127 being the total weight of all items) or 0.78% chance per roll.

What is: "minecraft:air:1:45" - this is just empty space. Basically, it's the chance to roll nothing for a loot roll, which is 45/127 or 35%.

For advanced item entries, you can add optional item damage functions (like an axe with low durability) or enchantments.

'damage'. the amount of remaining durability an item has.

'enchantment=number,enchantment2=number'. the enchantment and the associated level. right now, it works for equipment

3.

#Base number of times the custom loot pool is rolled per chest (default=1).
   #Range: > 0
   poolRollCount = 1

 This is the number of times an entry will be selected from the 'extraLoot' pool. For example, if you set this to 3, you could get:

1 ender pearl

6 slime balls (3 slime balls x 2)

4.

#Every this many blocks beyond distanceFromSpawn grants +1 extra roll.
   #Range: > 1
   blockIncrement = 2500

 If you would like extra loot to be more plentiful as you go even farther, you can adjust this. By this logic (by default):

At [7500] away from [0,0], you will get 2 rolls of the loot pool.

At [9999] away from [0,0], you will get 2 rolls of the loot pool.

At [11000] away from [0,0], you will get 3 rolls of the loot pool.

To disable this, you can set it to a very high number that won't be reached, OR adjust the next config.

5.

#Maximum number of extra rolls that can be granted (default=4).
   #Range: > 0
   maxExtraRolls = 4

 This is the maximum amount of rolls that can be generated by the `blockIncrement` setting. So by default:

At [15000] away from [0,0], you will get 5 rolls of the loot pool.

At [20000] away from [0,0], you will get 5 rolls of the loot pool still, because the limit (4 maximum bonus rolls) has been reached.

divider

FAQs

-I plan to update the mod to the current versions eventually. I won't be downporting the mod.

-Let me know any recommendations you have or bugs in the comments. This is my first published mod so I would appreciate it.

-Feel free to use this mod in your modpack.