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

btc_reward_definition

Defines a reward type that can be given and claimed by players — manifest entry.

Entry Information

PropertyValue
Entry IDbtc_reward_definition
TypeManifest
ColorGold
Iconmdi:gift

Fields

FieldTypeDescription
rewardIdStringUnique identifier for this reward type (used to reference this reward)
sourceStringOrigin of this reward, free-form (e.g. event, vote, daily_login). Used to group and filter rewards in menus and placeholders. Empty = uncategorised
displayItemItemDisplay item shown in the rewards menu
requiredInventorySlotsIntRequired free inventory slots to claim this reward (0 = no requirement)
onClaimActionsList<Ref<TriggerableEntry>>Actions triggered when this reward is successfully claimed
onClaimFailActionsList<Ref<TriggerableEntry>>Actions triggered if claim fails (inventory full)
additionalLoreList<String>Description lines shown at the top of the reward lore (supports MiniMessage)
displayNameOverrideStringDisplay name override for the menu (empty = use item name, supports MiniMessage)

Lore layout

The rendered lore follows the layout shared by BTC menus:

description additionalLore
───────── separator
details source line, required free slots
───────── separator
tip closing hint

Every label comes from btc_rewards_config — nothing is hardcoded. A section that produces no line also drops its separator, so a reward with no source and no inventory requirement never renders an empty block. Leave additionalLore empty to show only the details and the tip.

注記

source is free-form on purpose: adding a new origin never requires recompiling the extension. It only needs to match the value queried by <rewards_source:...>, case-insensitively.

Usage Example

- entry: btc_reward_definition
name: "Defines a reward type that can be given and claimed by players"
rewardId: ""
source: ""
displayItem: ""
requiredInventorySlots: 0
onClaimActions: []
onClaimFailActions: []
additionalLore: []
displayNameOverride: ""