▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/Partial Keepinventory
Partial Keepinventory

Partial Keepinventory

Only drop a configured percentage of items or experience.

Оцените первым
1.1K
9

Partial Keepinventory

NOTE: This mod is still in alpha, and I am just one person. Bugs are bound to happen.

A fabric mod for changing the behaviour of keep inventory.

For more information on what I'm planning and working on see the Roadmap.

GUI

Open the GUI using /pki-gui. This requires you to have the mod installed on the client side.

Expressions

Expressions are a way to dynamically change how items are dropped. This can be done with a simple formula that uses given variables. The value returned by the invExpression is clamped between 0 and 1. A list of variables can be found in the provided table:

Base

VariableMeaning
spawnDistanceThe distance from the player to their spawnpoint
spawnX, spawnY, spawnZThe player's spawn position
playerX, playerY, playerZThe player's position

Inventory

VariableMeaning
isCommon, isUncommon, isRare, isEpicWhether an item has a certain rarity, These are 1.0 when true and 0.0 when false.
rarityPercentThe configured droprate of the item's rarity.
dropPercentThe static inventory droprate

Experience

VariableMeaning
xpPointsPlayer's XP point amount.
xpLevelPlayer's XP level.

Expression presets:

Distance falloff

Change DISTANCE_IN_BLOCKS to the distance from spawn where you stop dropping items (the droprate decreases linearly).

abs(1-(spawnDistance/DISTANCE_IN_BLOCKS))


Commands

Enable/disable the mod

/pki [enable|disable]

Set the drop behaviour

/pki inv mode [vanilla / static / rarity / custom]

Set droprate for the inventory/rarities (0-100)

/pki inv droprate [static / common / uncommon / rare / epic]

List players who will get the normal keepinventory behaviour

/pki inv savedPlayers list

Remove/add players who get normal keepinventory behaviour

/pki inv savedPlayers [add / remove]

Set the custom droprate formula

/pki inv invExpression set [invExpression]

Experience Droprate

There's currently 2 variables that change how XP is dropped:

  • Loss percentage (How much experience is lost)
  • Drop percentage (How much of that experience is dropped)

/pki xp droprate [drop / loss]

There's also 2 "modes" in which these variables can operate.

  • Based on levels
  • Based on experience points

Levels take increasingly more experience to get, which makes that mode increasingly more punishing when you're on a higher level.

/pki xp mode [vanilla / static-level / static-points / custom-level / custom-points]


License

Партнёрский материал

Как поиграть с друзьями с модом Partial Keepinventory?

Мод Partial Keepinventory куда интереснее в компании: поднимите сервер Майнкрафт с уже установленным модом, позовите друзей и играйте по своим правилам. Хостинг Майнкрафт для мода Partial Keepinventory будет готов за пару минут - BungeeHost сделает всё за вас.

Часто задаваемые вопросы

Совместимость

Minecraft: Java Edition

1.20.x1.19.x

Платформы

Поддерживаемые окружения

Сервер

Зависимости

Ссылки

Создатели

Детали

Лицензия:
Опубликован:3 года назад
Обновлён:3 года назад
Главная