Skip to content

Adding Ancient Scrolls to other chests doesn't seem to work? #848

@ZeekDaGeek

Description

@ZeekDaGeek

Modloader

Forge

Minecraft version

1.19.2

Hex Casting version

0.10.3

Modloader version

43.3.7

Modpack info

No response

The latest.log file

No response

Issue description

Doesn't seem like adding chest loot tables to the config works properly. Adding them to the config will not make them generate in the loot table.

This is a problem if Integrated Strongholds is installed which replaces the minecraft:chests/stronghold_library with integrated_stronghold:chests/grand_library.

There are also mods that add variety to villages and dungeons that may cause issues as well.

Steps to reproduce

Start with a simple Hex Casting only environment. We'll add it to the Igloo loot_table since it doesn't require any additional mods.

Here's the config for adding the

["Scrolls in Loot"]
	#Which loot tables should a small number of Ancient Scrolls be injected into?
	fewScrollTables = ["minecraft:chests/jungle_temple", "minecraft:chests/simple_dungeon", "minecraft:chests/village/village_cartographer"]
	#Which loot tables should a decent number of Ancient Scrolls be injected into?
	someScrollTables = ["minecraft:chests/bastion_treasure", "minecraft:chests/shipwreck_map"]
	#Which loot tables should a huge number of Ancient Scrolls be injected into?
	manyScrollTables = ["minecraft:chests/stronghold_library", "minecraft:chests/igloo_chest"]

Summon a chest in a create test world with /give @p minecraft:chest{BlockEntityTag:{LootTable:"minecraft:chests/igloo_chest"}}

Place down the chests and notice that there is no scrolls.

I also attempted using the datapack structure from https://github.com/FallingColors/HexMod/blob/3a3baddb92248b48d9819e595f1dec7959d3be1d/Forge/src/generated/resources/data/hexcasting/loot_modifiers/lore/minecraft/chests/stronghold_library.json

I created a datapack with data\hexcasting\loot_modifiers\scroll\integrated_stronghold\chests\grand_library.json

{
  "type": "hexcasting:inject_scrolls",
  "conditions": [
    {
      "condition": "forge:loot_table_id",
      "loot_table_id": "integrated_stronghold:chests/grand_library"
    }
  ],
  "countRange": 5
}

But this doesn't work.

Other information

After talking with Sam in Discord it seems like a recent Merge resolves some of these issues #837

This would make it possible to make custom datapacks, but I do really appreciate the ability to put specific loot tables into a config because making a datapack to edit configs is very annoying and per world.

This may be a TODO of updating how scrolls are injected into chest loot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions