refactor: try to add adventure maps

This commit is contained in:
hypercross 2025-12-01 11:59:26 +08:00
parent 300c590326
commit 6096cc9562
4 changed files with 29 additions and 7 deletions

View File

@ -603,9 +603,9 @@
[tweaks.map_tweaks]
#Cartographers will sell 'adventurer maps' that will lead to a random vanilla structure (choosen from a thought out preset list).
#Best kept disabled if you are adding custom adventurer maps with datapack (check the wiki for more)
random_adventurer_maps = false
random_adventurer_maps = true
#Select a random structure to look for instead of iterating through all of the ones in the tag returning the closest. Turning on will make ones that have diff structures (aka all different ruined portals) show up more. On could take much more time to compute
random_adventurer_maps_select_random_structure = false
random_adventurer_maps_select_random_structure = true
#Enables beacons, lodestones, respawn anchors, beds, conduits, portals to be displayed on maps by clicking one of them with a map
block_map_markers = true
#Shows a death marker on your map when you die. Requires a recovery compass in player inventory or similar

View File

@ -0,0 +1,21 @@
{
"replace": false,
"values": [
"#minecraft:village",
"#minecraft:shipwreck",
"#minecraft:mineshaft",
"#minecraft:ocean_ruin",
"#minecraft:ruined_portal",
"#minecraft:bastion_remnant",
"#minecraft:desert_pyramid",
"#minecraft:end_city",
"#minecraft:jungle_pyramid",
"#minecraft:igloo",
"#minecraft:pillager_outpost",
"#minecraft:swamp_hut",
"#betterdungeons:better_dungeons",
"#bettermineshafts:better_mineshafts",
"#betteroceanmonuments:better_ocean_monuments"
]
}

View File

@ -33,7 +33,7 @@
make_mechanical(event, 'minecraft:diamond_boots', 'minecraft:diamond', [
'A A',
'A A',
])
]);
});
function make_mechanical(event, thing, material, shape){
event.remove({output: thing});

View File

@ -15,16 +15,18 @@ const deco_list = [
'32x minecraft:diorite',
'32x minecraft:granite',
'32x minecraft:andesite',
'32x minecraft:stone',
'32x minecraft:mossy_cobblestone',
'32x minecraft:calcite',
'32x minecraft:tuff',
'32x minecraft:cobblestone',
'32x minecraft:stone',
'32x minecraft:cobbled_deepslate',
'32x minecraft:deepslate',
'32x minecraft:dirt',
'32x minecraft:gravel',
'32x minecraft:sand',
'32x minecraft:mud',
'32x minecraft:mud_bricks',
'32x minecraft:stone_bricks',
'32x minecraft:cobbled_deepslate',
];
// level 3 sells enchantment books for random gem
@ -182,7 +184,6 @@ const gems = [
MoreJSEvents.villagerTrades((event) => {
event.removeVanillaTrades();
event.removeModdedTrades();
const professions = VillagerUtils.getProfessions();
professions.forEach(prof => {
const profName = prof.name();