Save and Return inventory and XP

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0
本资源为搬运资源,原资源地址: https://modrinth.com/mod/save-and-return-inventory-and-xp
资源信息

Minecraft 版本: 1.21.9 1.21.10

平台: datapack

标签: storage utility

资源介绍

Use Case

  • Multi-gamemode servers, like small servers with a PvP, hub dimension, and Survival mode to keep the survival inventory separate and safe when in other dimensions

    Summary

    This pack saves a player's inventory and XP to a unique UUID-bound Marker entity upon calling the inventorysave:save_inventory function. Upon calling the inventorysave:return_inventory or inventorysave:load_inventory functions, it replaces the player's current XP and items with the original saved template with all items having their original NBT and in the proper slots.

    Usage

  • inventorysave:save_inventory to save the executor's inventory and XP to a marker.
  • inventorysave:return_inventory or inventorysave:load_inventory to return the executor's inventory and XP to an identical state as the time inventorysave:save_inventory was used.

    Resetting

  • To summon a new marker and remove the old one automatically, execute inventorysave:setdefaultplayerdata as the intended target.
  • To fully remove the markers, kill all markers with Tag 'inventoryMarker', or if you want to remove a single specific marker, remove the marker with scoreboard scores inventoryUUID1, 2, 3, and 4 matching the desired player.
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Japanese Style BGM Lite

价格:0 墨喵币
下载量:0

查看详情
Nightfall: Definitive Edition

价格:0 墨喵币
下载量:0

查看详情
IUB

价格:0 墨喵币
下载量:0

查看详情
Unbreakable Enchantment

价格:0 墨喵币
下载量:0

查看详情