Traveler's Backpack

Traveler's Backpack

26M Downloads

Config: loot tables for backpacks

Grandof1 opened this issue ยท 1 comments

commented

Is your feature request related to a problem? Please describe.

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

  • Not able to configure certain backpacks can be found in loot chests in the config

Describe the solution you'd like.

A clear and concise description of what you want to happen.

  • Able to configure specific backpacks to where they can be found, similar to which mobs can spawn with specific backpacks
  • Able to set the percentage of chance that specific backpack can be found in the particular loot chest

Describe alternatives you've considered.

A clear and concise description of any alternative solutions or features you've considered.

  • Honestly can't think of any, I'm sorry

Additional context

Add any other context or screenshots about the feature request here.

  • Much like how the wiki's Loot page shows difference structures, backpacks and their chances would be extremely nice to be able to configure this in the config for each structure (so I can only allow my players on my server to get specific backpacks in certain locations found via exploring)

Config Example:

"world": {
		// Enables backpacks spawning in loot chests
		"enableLoot": true,
		// List of loot tables by structures, add/remove entries if backpacks are/not part of loot table
		"mineshaft": [
			"travelersbackpack:blaze",
			"travelersbackpack:squid",
			"travelersbackpack:sponge",
			"travelersbackpack:bat",
		],
		"ancientCity": [],
		"stronghold": [
			"travelersbackpack:sponge",
			"travelersbackpack:bat",
		],
		"burriedTressure": [
			"travelersbackpack:standard",
		],
		// Enables chance to spawn Zombie, Skeleton, Wither Skeleton, Piglin or Enderman with random backpack equipped
		"spawnEntitiesWithBackpack": false,

Note

  • Not sure how would write in the chances in example
commented

I think you can disable all backpack loot from the mod and create datapacks to add backpack to loot on your own rules