メインコンテンツまでスキップ

Scavenger

Save inventory and experience with penalties

フィールド

フィールド型デフォルト説明
inventoryLossPercentDouble0.0Percent of items to lose on death
experienceLossPercentDouble0.0Percent of experience to lose on death
protectedItemsList<Var<Item>>emptyObjets epargnes : jamais perdus a la mort, quel que soit le taux de perte.
lostItemsMessageList<String>emptyMessage sent listing lost items. Use {items} to insert item listプレースホルダー
penaltiesList<Penalty>emptyPenalties applied when a player dies
Penalty(5)
フィールド型デフォルト説明
placeholderString—Placeholder returning a numeric valueプレースホルダー
percentDouble0.0Percent of the value to remove
messageString—Message sent to the player. Use {value} to insert amountプレースホルダー
commandString?—Command executed with {value} replaced by amountプレースホルダー
permissionString?—Permission required for this penalty
permissionString?—Permission required for this scavenger to apply

How to use it​

On death, the player loses inventoryLossPercent of their items and experienceLossPercent of their experience, unless they lack permission (when set). protectedItems lists item types that are never lost, whatever the percentage (the field was formerly a blacklist, but it protects). Each penalties item reads a numeric placeholder, removes percent of its value, sends message (with {value}) and can run a command with {value} (run by the console; start it with player: to run it as the player). lostItemsMessage lines are sent with {items}.