Перейти к содержимому
Mineforgian

Partial Keepinventory

Only drop a configured percentage of items or experience.

Загрузки
1K
Подписчики
11
Обновлён
9 июня 2023 г.
Лицензия
BSD-3-Clause

Опубликован 30 декабря 2022 г.

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

Variable Meaning
spawnDistance The distance from the player to their spawnpoint
spawnX, spawnY, spawnZ The player's spawn position
playerX, playerY, playerZ The player's position

Inventory

Variable Meaning
isCommon, isUncommon, isRare, isEpic Whether an item has a certain rarity, These are 1.0 when true and 0.0 when false.
rarityPercent The configured droprate of the item's rarity.
dropPercent The static inventory droprate

Experience

Variable Meaning
xpPoints Player's XP point amount.
xpLevel Player'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

Ченджлог

0.2.2Альфа1.20, 1.20.1 · 9 июня 2023 г.
  • Updated to 1.20.0

No version bump, because other than the game version, nothing changed.

0.2.2Альфа1.19.4 · 31 мая 2023 г.
  • Updated to 1.19.4
  • Fixed modmenu being a requirement
0.2.1Альфа1.19.3 · 13 мая 2023 г.
  • Fixed Xp settings not saving
  • Fixed joining servers that use a newer version of the mod.
0.2.0Альфа1.19.3 · 7 мая 2023 г.

This release breaks compatibility with the previous versions

Big update. I've been quite hesitant to release it because I can't do much testing myself and have gotten quite a bit of feature creep... There will definitely be patches soon as I become aware of more and more issues. For now, here are some of the more major changes:

  • Proper GUI
  • Trinkets support
  • Developer API
  • Custom XP droprate formula

A lot has been rewritten to make things more future proof.

0.1.1-alphaАльфа1.19.3 · 31 декабря 2022 г.
  • Added per player keep inventory
  • Fixed needing to have cardinal components in the mod folder as well

Nothing much was added, mostly just a quick fix after noticing issues with the first one

0.1.0Альфа1.19.3 · 30 декабря 2022 г.

First release, includes basic functionality.

  • Rarity based drop rates
  • Percentage based drop rates
  • Custom formulas for drop rates
  • Custom XP drop rates
  • Basic commands for changing settings

For more details on what's been done: https://github.com/atiedebee/Partial-Keepinventory/commits/1.19.3

Комментарии

Загружаем…