MonitoringMinecraft MonitoringMinecraft

Smart Keep Inventory

Мод FabricNeoForge

Configure when keep inventory should be enabled

781 скачивание 0 подписчиков
Оцените первым

neoforge fabric

discord-singular kofi-singular-alt patreon-singular

Smart Keep Inventory

In vanilla you can only either have keep inventory enabled all time or not. Smart Keep Inventory allows you to decide under which conditions the players inventory should be kept upon death.

For example you can have it configured to only allow keep inventory if the player is killed by a specific mob.

By default this mod makes it so players will keep their inventory and experiences if they are killed by bosses (mobs tagged as c:bosses)

⚙️ Configuration

Configuration is done via a datapack.

Conditions are defined via a file under data/<namespace>/smart_keep_inventory/condition and have the following format:

{
  "player": <EntityPredicate>, // Optional. This is the player that died
  "killer": <EntityPredicate>, // Optional. This entity that killed the player. Directly or indirectly
  "damage": <DamageSourcePredicate>, // Optional. The damagesource that killed the player
  "keepExperience": <true | false>, // Default true. Whether to also keep the players experiences or not
  "disabled": <true | false> // Optional. Only used to disable an EXISTING condition with the same id
}

For more information about predicates check out the minecraft wiki under https://minecraft.wiki/w/Predicate

The mod also allows you to invert EntityPredicate. The syntax for that is as follow:

// Instead of just <EntityPredicate> wrap it like this
{
    "invert":true,
    "predicate": <EntityPredicate>
}

Example:

This allows the player to keep their inventories if they are killed by a zombie but not their xp.

{
  "killer": {
    "type": "minecraft:zombie"
  },
  "keepExperience": false
}

The following is the default configuration of the mod applying to bosses:

{
  "killer": {
    "type": "#c:bosses"
  }
}

Compability

This mod should support any mod adding inventories (Curios, Accessory etc.) provided they respected the gamerule already.

Gravestone mods should also be supported if they already check the gamerule. If a player keeps their inventory a grave should not be generated in that case.

Смотри также

Похожие подборки моды — по версиям Майнкрафта, загрузчикам и жанрам.

Сервера Майнкрафт

Играть интереснее на сервере — выбирай в рейтинге серверов Майнкрафт и заходи прямо сейчас.

SkyBars
SkyBars Java + BE
1638 онлайн
1.8 — 26.2 версия
🎮 ВЫЖИВАНИЕ ⚔️ АНАРХИЯ 🚗 ГТА РП 🎤 ГОЛОСОВОЙ ЧАТ 🎁 БЕСПЛАТНЫЙ ДОНАТ 🌟 СМП 💻 ПК+ТЕЛЕФОН
CLOUDWORLD
5 онлайн
1.16.5 — 1.21.11 версия
Пвп, Арены, Дуэли, Кейсы, донаты, /free, приваты, спавн,
Battle Mine
Battle Mine Java + BE
4 онлайн
1.21.4 — 26.2 версия
ОТКРЫТИЕ! 20 + различных ивентов, 10+ различных боссов, много интересных механник
MigosMc
MigosMc Java + BE
1704 онлайн
1.8 — 26.2 версия
🌿 MigosMc.net | Гриферский сервер с войс-чатом | Награды за онлайн ⭐ ВЫЖИВАНИЕ⭐ ОДИНБЛОК⭐ МИНИ-ИГРЫ
MineLauncher
Лаунчер Майнкрафт без лицензии — все версии
Бесплатный лаунчер для ПК и Андроид — все версии 26.2, 1.21.11, 26.1.2, 1.21.8. Fabric, NeoForge, Forge, шейдеры, моды и скины в один клик.
Без лицензии Fabric, NeoForge, Forge Моды, шейдеры, скины Все версии Майнкрафта ПК и Андроид Для слабых ПК Сервера в лаунчере
Скачать бесплатно
Windows и Андроид · Бесплатно · Без лицензии
Наш чат