A homage to the old role playing game Betrayal at Krondor. Quoting the wiki entry:
One of the game's unique features are the large assortment of Moredhel wordlock chests, hidden throughout the land. These chests have combination locks with letters on each dial, and a riddle written upon them whose answer opens the chest. Wordlock chests can hold valuable items and equipment.
This mod adds chests similiar to those in Betrayal at Krondor to the minecraft world.
The chance that a vanilla loot chest will be replaced by a Riddle Chest can be configured in the options. No additional chests will be generated.
If you want certain loot chests to never be touched you can prevent that by configuring the loottableBlacklist
option and include the resource name of the loottable you want to keep intact, e.g. minecraft:chests/spawn_bonus_chest
.
This is quite easy and you can find many categories in the datapacks folder.
Essentially you want to do this:
<minecraft-instance>/openloader/data
manually.openloader/data
folderThis is slightly more complicated, but if you are handy with .json files you will have no problems. There are many examples you can look at in the datapacks folder in this repository.
You need to do at least two things:
{
"type": "riddlechests:word",
"category": "riddlechests:your_own_category",
"lang": "en_us",
"original": "ABASD BTDXU",
"riddle": [
"The first thing you do",
"when you test something new"
],
"solution": "HELLO WORLD",
}
Place this file in the openloader/data/riddlechests/recipes/riddles/your_own_category/
directory.
Repeat this step for each riddle you want to create.
{
"type": "riddlechests:loottable_mapping",
"category": "riddlechests:your_own_category",
"lootTables": [
"riddlechests:default_loot",
"minecraft:chests/abandoned_mineshaft"
]
}
Place this file in the openloader/data/riddlechests/recipes/loottable_mappings/
directory.