Minecraft Data Packs / Server Utility

Map Loot Removal (For use in Terralith 2.X)

    • 5,659 views, 3 today
    • 484 downloads, 0 today
    • 13
    • 13
    • 13
    prototype464's Avatar prototype464
    Level 30 : Artisan Explorer
    5
    EDIT
    This was originally intended for servers using Terralith 2.3, however since this pack's release, Terralith has had an update that has (or, is supposed to) completely disable Traveler's Maps. The issue with explorer maps (the vanilla ones) in general causing server hangs unfortunately is still around, so this datapack retains its purpose.

    Concerning the issue with Cartographers and explorer maps in general, implementing a solution for that into this datapack is too complicated for me to figure out and I've also been busy with a bunch of personal projects. If anyone would be willing to make something using Functions that removes the map trade from Cartographer villagers automatically for integration into this datapack, I'd implement that and would greatly appreciate. <3


    Description
    In Terralith 2.X, opening a loot chest with an explorer map (or a Traveler's 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 it isn't familiar with and 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, the treasure maps in underwater ruins and shipwrecks.


    CARTOGRAPHER TRADES (Known issue!)
    Unfortunately, something this datapack doesn't fix (Function-related things are not in my expertise) is the fact you can still obtain explorer maps from Cartographers. For a temporary fix, you could disable Cartographers I guess but I'd need someone's help for an automatic fix to be implemented. All I know is, these maps are jank :c


    DISABLING TERRALITH'S TRAVELER'S MAPS (Outdated, for Terralith 2.3)

    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
    toMinecraft 1.20
    Tags

    2 Update Logs

    Map Loot Removal | 1.0.2 : by prototype464 06/19/2023 4:02:19 amJun 19th, 2023

    Help Needed!
    If you can disable cartographer map trades through functions for an update to this pack, please reach out to me through Discord: prototype464

    I would do it myself but it seems quite complicated and I've too little time to dedicate to figuring out how.


    Change(s):
    - Updated pack version to 15 (1.20.1+)
    LOAD MORE LOGS

    Create an account or sign in to comment.

    1
    07/14/2023 8:33 am
    Level 30 : Artisan Explorer
    prototype464
    prototype464's Avatar
    Just a quick head's up yall as it's something I just found out, you can disable treasure maps through Paper's configuration (if you're using that)!

    docs.papermc.io/paper/reference/world-configuration#treasure-maps
    1
    09/12/2022 4:52 pm
    Level 1 : New Miner
    FormerlyNodens
    FormerlyNodens's Avatar
    Has this been fixed as of 2.3.3?
    1
    09/21/2022 2:45 pm
    Level 30 : Artisan Explorer
    prototype464
    prototype464's Avatar
    Considering Traveler's Maps were disabled, maybe. I haven't tested, so I'm not sure.
    2
    08/19/2022 2:32 am
    Level 1 : New Miner
    User4285919G
    User4285919G's Avatar
    Thank you. You saved my server <3 <3 <3
    2
    06/24/2022 6:48 pm
    Level 10 : Journeyman Engineer
    StartingIn
    StartingIn's Avatar
    You can alter trades easily, you can change them with loot tables
    1
    06/27/2022 9:05 am
    Level 30 : Artisan Explorer
    prototype464
    prototype464's Avatar
    Thank you!
    2
    06/28/2022 1:30 pmhistory
    Level 66 : High Grandmaster Spelunker
    Aceplante
    Aceplante's 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 10 : Journeyman Engineer
    StartingIn
    StartingIn's Avatar
    Oh yeah its like an /execute command
    I forgor
    2
    07/09/2022 3:59 pmhistory
    Level 66 : High Grandmaster Spelunker
    Aceplante
    Aceplante's 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 10 : Journeyman Engineer
    StartingIn
    StartingIn's Avatar
    Yes, that was the command to alter trades
    Planet Minecraft

    Website

    © 2010 - 2024
    www.planetminecraft.com

    Welcome