跳到正文

Adventure Bags (Loot Bags)

作者:A5ho9999

Very customizable Loot Bags for the best Loot Goblins, Server-side compatible

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Client side is optional when using server-side mode, by default Client-side is required.

Server-side is always required

Adventure Bags is a fully customizable Loot Bag Mod allowing you to easily generate Loot for Modpacks or even if you just want more Loot in your world. Simply right-click and profit while satisfying your inner loot goblin

Key Features

  • 4 Rarity Tiers
  • Change Generation Rates of each Adventure Bags in Chests
  • Add or Remove Loot from Bags freely
  • Supports static and random Amounts with NBT/Component support
  • Add or Remove other Loot-tables easily
  • Craftable to higher tiers (Full Function Mode Only)
  • Can function completely Server-side with Vanilla Clients

How does the Server-side feature work

Rather simply, if the config is set to load as Server-side on start the Mod won’t load new Items (which would normally prevent Vanilla Clients from joining) and will instead just Vanilla Items (configurable), by default these would be 4 different dyes. These Items are added to the loot-tables in place of the Adventure Bags but now with Custom Model Data & Custom Name, this data is all checked when using the Item to ensure it’s an actual Bag and not just a normal Item. Thus allowing the Mod to run completely server-sided by making use of Vanilla functions and not adding new data.

Built-in Loot-tables
Common Adventure Bag
"2-16 minecraft:moss_block",
"16 minecraft:torch",
"minecraft:chest",
"1-8 minecraft:emerald",
"1-16 minecraft:coal",
"6-16 minecraft:arrow",
"1-4 minecraft:amethyst_shard",
"1-6 minecraft:raw_iron",
"1-6 minecraft:raw_copper",
"1-4 minecraft:raw_gold",
"minecraft:iron_shovel",
"minecraft:iron_helmet",
"minecraft:iron_boots",
"4-8 minecraft:cooked_porkchop",
"minecraft:bucket",
"16 minecraft:clay",
"12 minecraft:feather",
"6 minecraft:gunpowder",
"4-8 minecraft:bread",
"16 minecraft:string",
"6 minecraft:leather",
"2 minecraft:book",
"2-4 minecraft:bone",
"4-8 minecraft:cooked_cod",
"4-8 minecraft:cooked_salmon",
"2-6 minecraft:ink_sac",
"1-4 minecraft:cocoa_beans",
"minecraft:cake",
"4-16 minecraft:cookie",
"4-16 minecraft:melon_slice",
"2-12 minecraft:dried_kelp",
"4-8 minecraft:cooked_beef",
"4-8 minecraft:cooked_chicken",
"1-4 minecraft:experience_bottle",
"4-8 minecraft:baked_potato",
"4-8 minecraft:cooked_rabbit",
"minecraft:iron_horse_armor",
"minecraft:name_tag",
"minecraft:lead",
"4-8 minecraft:cooked_mutton"
Rare Adventure Bag
"minecraft:spore_blossom",
"minecraft:emerald_block",
"1-4 minecraft:hay_block",
"minecraft:saddle",
"2-6 minecraft:iron_ingot",
"2-6 minecraft:copper_ingot",
"1-4 minecraft:gold_ingot",
"minecraft:iron_chestplate",
"minecraft:iron_leggings",
"minecraft:iron_pickaxe",
"minecraft:iron_sword",
"minecraft:iron_hoe",
"minecraft:iron_axe",
"minecraft:golden_apple",
"1-4 minecraft:slime_ball",
"2-8 minecraft:glowstone_dust",
"1-3 minecraft:ender_pearl",
"1-3 minecraft:blaze_rod",
"1-3 minecraft:ghast_tear",
"1-3 minecraft:magma_cream",
"2-4 minecraft:pumpkin_pie",
"4-12 minecraft:firework_rocket",
"minecraft:golden_horse_armor",
"1-4 minecraft:chorus_fruit",
"minecraft:nautilus_shell",
"minecraft:brush"
Epic Adventure Bag
"minecraft:lapis_block",
"1-2 minecraft:diamond",
"minecraft:diamond_helmet",
"minecraft:diamond_boots",
"minecraft:diamond_axe",
"minecraft:diamond_shovel",
"minecraft:diamond_hoe",
"minecraft:enchanted_golden_apple",
"minecraft:blaze_spawn_egg",
"minecraft:cave_spider_spawn_egg",
"minecraft:creeper_spawn_egg",
"minecraft:drowned_spawn_egg",
"minecraft:enderman_spawn_egg",
"minecraft:endermite_spawn_egg",
"minecraft:skeleton_spawn_egg",
"minecraft:witch_spawn_egg",
"minecraft:wither_skeleton_spawn_egg",
"minecraft:zombie_spawn_egg",
"minecraft:dragon_head",
"minecraft:diamond_horse_armor",
"minecraft:heart_of_the_sea",
"1-3 minecraft:echo_shard",
"1-3 minecraft:frogspawn",
"1-6 minecraft:coal_ore",
"minecraft:diamond_ore",
"1-4 minecraft:redstone_ore",
"1-6 minecraft:gold_ore",
"1-8 minecraft:iron_ore",
"1-4 minecraft:lapis_ore",
"1-4 minecraft:emerald_ore"
Legendary Adventure Bag
"minecraft:spawner",
"1-3 minecraft:netherite_scrap",
"minecraft:diamond_sword",
"minecraft:diamond_pickaxe",
"minecraft:diamond_chestplate",
"minecraft:diamond_leggings",
"minecraft:skeleton_skull",
"minecraft:wither_skeleton_skull",
"minecraft:player_head",
"minecraft:zombie_head",
"minecraft:creeper_head",
"minecraft:piglin_head",
"minecraft:nether_star",
"minecraft:end_crystal",
"minecraft:dragon_breath",
"minecraft:trident",
"minecraft:totem_of_undying",
"minecraft:budding_amethyst",
"minecraft:dragon_egg",
"minecraft:diamond_block",
"1-3 minecraft:iron_block",
"1-2 minecraft:gold_block",
"minecraft:netherite_ingot"
Config Setup

Setting up the Config is rather simple, by default if you just play vanilla you won’t have to do much. You can just use the default settings which will make sure of the built-in loot-tables above.

If you are working on a modpack however, you may want to customize it to include other items from Mods. This is rather simple still. You can use the Mod Menu intergration (recommended) or edit the config file directly. To add a new Item into the Bags loot-table you will need to know the Namespace and Item Id for example “minecraft:diamond_block” would be a Diamond Block from minecraft.

Bag Loot-tables

The Bag Loot-tables support the following format (minAmount)-(maxAmount) [namespace:item_id](NBT/Component) with formatting those surrounded by () are optional and [] are required (amounts and components are optional, item ids are required).

For v2.0.0 and beyond, it uses a custom data handling. You can use this site

For versions below v2.0.0, you need to use NBT formats from 1.20.4, you can use McStacker. The /give option on the site will give you the correct data. Just copy it from the output (Only copy the NBT data after the item. Copying whole output will caues invalid entries)

Examples:

  • minecraft:diamond_block
  • a single Block of Diamond
  • 3 minecraft:diamond_block
  • 3 Block of Diamonds
  • 1-8 minecraft:diamond_block
  • randomly between 1 and 8 Block of Diamonds (1 and 8 included)
  • (v2.0.0+) minecraft:diamond_sword{"name":"Shiny Blue Thing"}
  • a Block of Diamond with the name “Shiny Blue Thing”
  • minecraft:diamond_block{display:{Name:'{"text":"Shiny Blue Thing"}'}}
  • a Block of Diamond with the name “Shiny Blue Thing”

Generation Loot-tables

Including and Excluding loot-tables for the Bags to generate in is also simple. Just put the Loot-table path into the list and that’s it. The Loot-table must be included in the data/[namespace]/loot_table/ folder. For example chests/simple_dungeon which is located data/minecraft/loot_table/chests/simple_dungeon.json. This should work with any Mod Loot-tables as well (It is not limited to just the chests folder).

Bag Generation Chances

You can change the rarity of Bags generating in the Loot-table with value between 1.0 and 0.0 (0.00001). 1.0 being 100% and 0.0 being not all (or at least as close as you can get to it without completely removing it from the list). By default the Common is 0.8 (80%), Rare 0.4 (40%), Epic 0.15 (15%) and Legendary 0.08 (8%).

Server-side Options

Most of this explained aboved, but it’s straight forward as well. Switching to Server-side only mode will prevent the Mod from loading any custom/extra data outside of vanilla which would normally cause registry issues. It will use the Items stated below the option as Adventure Bags by using Custom Names & Model Data to ensure it’s different from the default Vanilla Items. If the provided Item is invalid it’ll default back to the Coloured Dyes

The game will still function fine if you input incorrectly, it will simply print an error for the invalid input into the Log, so if you aren’t getting your result, be sure to check there. You can use debug mode in the config (must set to true manually in the file) for more information

Config Example

Example Configuration File located in config/adventure-loot.json5

{
	"Debug": false,
	"DefaultOptions": "Disabled",
	"CommonChance": 0.8,
	"RareChance": 0.4,
	"EpicChance": 0.15,
	"LegendaryChance": 0.08,
	"CommonLoot": [
		"minecraft:moss_block",
		"12 minecraft:diamond",
		"4-9 minecraft:gold_ingot ",
		"minecraft:diamond_chestplate{display:{Name:'{\"text\":\"fancy chestplate\"}'},Enchantments:[{id:\"minecraft:protection\",lvl:69s}]}",
		"minecraft:chest{BlockEntityTag:{Items:[{Slot:13b,id:\"minecraft:cake\",Count:1b,tag:{display:{Name:'{\"text\":\"Hoef\\'s Favourite\",\"color\":\"white\",\"bold\":true}',Lore:['{\"text\":\"Just a little squashed\",\"color\":\"light_purple\",\"italic\":true}']}}}],Lock:\"Flight Licence\"}}"
	],
	"RareLoot": [
		"40 minecraft:iron_ingot"
	],
	"EpicLoot": [
		"9-64 minecraft:diamond"
	],
	"LegendaryLoot": [
		"minecraft:diamond_chestplate"
	],
	"TablesToExclude": [
		"chests/simple_dungeon",
		"chests/village/village_mason"
	],
	"TablesToAdd": [
		"entities/cow"
	],
	"ServerSideOnly": false,
	"ServerSideCommonItem": "minecraft:white_dye",
	"ServerSideRareItem": "minecraft:blue_dye",
	"ServerSideEpicItem": "minecraft:red_dye",
	"ServerSideLegendaryItem": "minecraft:purple_dye"
}

Feel free to use this mod in other modpacks but keep the download within the Modrinth Ecosystem and do not reupload

Other Mods

Totem Party Popper
Modern Advancement Screen
Area Sign Alerts
Yeeterite
Yeeterite Extras
Adventure Loot Bags
Hopper the Hedgehog
Smelter the Hedgehog
Note Block Tuner
Stonecutter Remastered
Loom Remastered
Glass Carpets
Explosive Party
Stacks Are Stacks
Stacks Are Gone?
FOV Toggle
SpongeSucc
Where Water Go
Party Spores
Party Cacti
Party Flames
Quit Minigame
Superflat Plus
CottageCraft Blocks
CottageCraft Axolotls
CottageCraft Festive Eggs

常见问题

Adventure Bags (Loot Bags) 支持哪些 Minecraft 版本?

Adventure Bags (Loot Bags) 支持 Minecraft Java 版 1.20–26.3,共 24 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Adventure Bags (Loot Bags) 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端 / 服务端。

评论

登录后评论和评分

A5ho9999 的其他作品

查看全部 →