Linked Rewards (Win multiple rewards from one reward)

Linked rewards is a special feature used to attach additional rewards to a singular reward, meaning when a user wins one reward he may win additional rewards that come with it.

Inspirations for using linked rewards:

  • Need to send multiple commands that use the random number feature whilst having a need for different minimum and maximum random number bounds.

  • Need to give multiple physical items (GiveConfiguratedItem: true) that are configurated inside the plugin and cannot be given out via commands.

Example of when winning a Heroic_Nightmare_Killer reward the user also receiving the Heroic_Onyx_Cloack_of_the_Grandmaster reward:

Prizes:
  Heroic_Nightmare_Killer:
    Material: DIAMOND_SWORD
    Glow: true
    Amount: 1
    Name: '&6&lHeroic Nightmare Killer'
    Enchantments:
    - FIRE_ASPECT;2
    - DAMAGE_ALL;5
    - DURABILITY;3
    Lores:
    - &6Disarmor I
    - &6Double Strike I
    - &6&oAn onyx blade with dark legacy,
    - &6&orumor has it this bald only
    - &6&oexists for a few fleeting moments
    - &6&obefore and after each assassination.
    NBTtags: '{Enchantments:[{id:"minecraft:fire_aspect",lvl:2s},{id:"minecraft:sharpness",lvl:5s},{id:"minecraft:unbreaking",lvl:3s}],Damage:0,slots:2,"ae_enchantment;doublestrike":1,"ae_enchantment;disarmor":1}'
    GiveConfiguratedItem: true
    LinkedRewards:
    - Heroic_Onyx_Cloack_of_the_Grandmaster
    Commands: []
    Chance: 10.0
    Damage: 0
  Heroic_Onyx_Cloack_of_the_Grandmaster:
    Material: DIAMOND_CHESTPLATE
    Glow: true
    Amount: 1
    Name: '&6Heroic Onyx Cloack of the Grandmaster'
    Enchantments:
    - PROTECTION_PROJECTILE;4
    - PROTECTION_ENVIRONMENTAL;5
    - DURABILITY;3
    Lores:
    - &bShockwave II
    - &eRagdoll III
    - &6Overload I
    - &6&oA well kept, leather black cloak.
    NBTtags: '{Enchantments:[{id:"minecraft:projectile_protection",lvl:4s},{id:"minecraft:protection",lvl:5s},{id:"minecraft:unbreaking",lvl:3s}],"ae_enchantment;ragdoll":3,Damage:0,slots:3,"ae_enchantment;shockwave":2,"ae_enchantment;overload":1}'
    GiveConfiguratedItem: true
    LinkedRewards: []
    Commands: []
    Chance: 0
    Damage: 0

Last updated