-
Notifications
You must be signed in to change notification settings - Fork 4
Reward Types
Kārlis Čerņavskis edited this page Feb 19, 2025
·
4 revisions
Quest rewards are defined in the rewards property of a quest. They are a list of reward objects, each of which can be one of the following types:
Gives the player an item
-
item: The item to give the player -
count(optional, default: 1): The amount of the item to give the player
Runs a command as the player, at the player's position. If permission_level is specified, the command is run with that permission level.
-
command: The command to run, must be prefixed with/. -
permission_level(optional, default: 2): The command's permission level, when ran as the player (player needn't have this permission level). See: Java Edition Commands - minecraft.wiki
Gives the player experience
-
experience: The amount of experience to give the player -
level(optional, default: false): Whether to give the player levels instead of points
Gives the player loot from a loot table. The loot context is set as such:
- This entity: player
- Origin: player's position
- Killer entity: player
- Level: the world the player is in
-
loot_table: The loot table to give the player. If the table does not exist, it will log an error in the log.