Employee order
About 348 wordsAbout 1 min
Introduction
Every employee will get 5 random orders created in orders.yml.
This is one of the ways for the players to earn income for the companies.
The daily orders will be refreshed every day.
The orders' refreshing module is included in the salary payment/tax collecting module.
Configuring custom order
You can add/remove order in orders.yml.
This is an example of order:
stone_breaker:
label: 'Stone Breaker'
description:
- '&7We receive a job'
- '&7from the miners.'
quest:
1:
type: break_block
item: stone
amount: 16
reward:
- 'item;diamond;16'
- 'company_income;1500.0'
- 'money;100.0'
- 'experience;10'label is for you to set the name of the order, which would be showed to players.
label: STRINGdescription is obviously the description of the order, that would be showed in menu.
description: []This is the quest for player to complete.
For the action type, you can view the list.
quest_name:
type: STRING 1:
type: break_block # Break 3 Diamond Ores
item: diamond_ore
amount: 3reward is the stuff that would be given to the players after they finished the order.
There is a list with reward types.
reward: [] reward:
- 'item;netherite_ingot;5' # 5 Netherite Ingot
- 'company_income;5000.0' # 5000.0 Company IncomeAction Types
Block breaking
quest_name:
type: break_block #Block Breaking
item: ITEM_NAME #Namespaced String of Item
amount: INTEGER #NumberBlock placing
quest_name:
type: place_block #Block Placing
item: ITEM_NAME #Namespaced String of Item
amount: INTEGER #NumberKilling mobs
quest_name:
type: mob_kill #Mob Killing
mob: ENTITY_NAME #Namespaced String of entity
amount: INTEGER #NumberFishing
quest_name:
type: fish #Fishing
item: ITEM_NAME #Namespaced String of Item
amount: INTEGER #NumberFeeding animals
quest_name:
type: feed #Feeding animals
mob: MOB_NAME #Namespaced String of entity
amount: INTEGER #NumberReward Types
There are few rewards type below:
item;ITEM_NAME;AMOUNT #Give item to player
company_income;AMOUNT #Add money to company
money;AMOUNT #Give money to player
experience;AMOUNT #Give experience to player
console_command;STRING #Executing command by console, where %player% is the placeholder of player name