You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 givencommands: # 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 forentries:
example:
weight: 1# The weight (chance) of the reward being chosenobject:
commands:
- 'broadcast Hello %player%'messages:
- 'Hello %player%'