Minecraft Data Packs / Server Utility

Map Loot Removal (Intended for servers using Terralith 2.3)

    • 1,136 views, 6 today
    • 89 downloads, 0 today
    • 4
    • 4
    • 9
    prototype464 avatar prototype464
    Level 12 : Journeyman Explorer
    1
    In Terralith 2.3, opening a loot chest with an explorer map inside causes the server to have a watchdog error, hang, and die. This is because the server is taking too long to generate chunks in a way it doesn't really know how to. This datapack fixes that issue by simply removing maps that can show up in loot chests, and the only ones that can are treasure maps in underwater ruins and shipwrecks.

    CARTOGRAPHER TRADES (Known issue!):
    To my very limited knowledge, there isn't a way to remove explorer maps from villager trades through a datapack, but these maps will either only generate structures upon completion of a trade or they generate when you open the inventory, which is worse. In that case just like... disable cartographers or something to fix it, I guess? These maps are jank :c

    DISABLING TERRALITH'S TRAVELER'S MAPS (Fix for a known Terralith issue!)

    If your world/server is crashing upon opening a chest in a Terralith structure, it is probably due to the Traveler's Maps. You can disable them be using these two commands:
    /scoreboard objectives add tr.disable_maps dummy
    /scoreboard players set %DISABLE_MAP tr.disable_maps 1
    If you want to check if it worked, you should get no item after doing this command:
    /loot give @p loot terralith:random_traveler_map
    It is advised to restart your world/server after running these commands, as Minecraft can sometimes forget!
    CreditStarmute, Terralith: Overworld Evolved
    CompatibilityMinecraft 1.19
    Tags

    Create an account or sign in to comment.

    2
    06/24/2022 6:48 pm
    Level 8 : Apprentice Engineer
    StartingIn
    StartingIn avatar
    You can alter trades easily, you can change them with loot tables
    1
    06/27/2022 9:05 am
    Level 12 : Journeyman Explorer
    prototype464
    prototype464 avatar
    Thank you!
    2
    06/28/2022 1:30 pmhistory
    Level 55 : Grandmaster Spelunker
    Aceplante
    Aceplante avatar
    Trades are altered by commands, not loot tables. Loot tables are only for blocks, chests, and entities
    1
    07/08/2022 4:09 pm
    Level 8 : Apprentice Engineer
    StartingIn
    StartingIn avatar
    Oh yeah its like an /execute command
    I forgor
    1
    07/09/2022 3:59 pmhistory
    Level 55 : Grandmaster Spelunker
    Aceplante
    Aceplante avatar
    I figured this might be helpful:

    The following command removes the last trade: /data remove entity @s Offers.Recipes[-1]

    The following command resets all trades: /data modify entity @s Offers.Recipes set value {}

    The following command adds a trade to the end: /data modify entity @s Offers.Recipes append value {buy:{id:iron_chestplate,Count:1},sell:{id:emerald,Count:5},xp:3,rewardExp:1b,maxUses:8}
    1
    07/11/2022 4:48 pm
    Level 8 : Apprentice Engineer
    StartingIn
    StartingIn avatar
    Yes, that was the command to alter trades
    2
    06/22/2022 11:59 pmhistory
    Level 55 : Grandmaster Spelunker
    Aceplante
    Aceplante avatar
    you can alter trades using /data merge and append your own to fix the cartographer
    1
    06/27/2022 9:05 am
    Level 12 : Journeyman Explorer
    prototype464
    prototype464 avatar
    Ah, thanks for this! I might push a version with that as a fix later, then! :>
    2
    06/28/2022 1:30 pm
    Level 55 : Grandmaster Spelunker
    Aceplante
    Aceplante avatar
    So basically, when you get to level 2 (or whenever they sell a map), remove the last 2 trades (just in case one of them was a map), and append your own. You can have these be random too
    Planet Minecraft

    Website

    © 2010 - 2022
    www.planetminecraft.com

    Welcome