Skip to content

Rewards

Daniel Norris edited this page Dec 19, 2022 · 1 revision

Config Reward Pool

This is the generic format for doing rewards in all my mods that have reward sections.

example-rewards:
   reward-rolls-min: 1 # The minimum number of times to roll the rewards section of the config (random number generated between this and the max)
   reward-rolls-max: 1 # The maximum number of times to roll the rewards section of the config (random number generated between this and the min)
   guaranteed-reward: # A reward that is guaranteed to run for all players regardless of what other rewards are given
      commands: # Commands to be executed - placeholders will differ from mod to mod
         - 'broadcast Hello %player%'
      messages: # Messages to send - placeholders will differ from mod to mod
         - 'Hello %player%'
   rewards: # Weighted entries that are rolled for
       entries:
         example:
           weight: 1 # The weight (chance) of the reward being chosen
           object:
             commands:
               - 'broadcast Hello %player%'
             messages:
               - 'Hello %player%'

Clone this wiki locally