Condition Object
| Field Name | Data Type | Required | Description | Default Value |
|---|---|---|---|---|
| type | String | ![]() |
Possible Values: "inLava" "inRain" "inWater" "onBlock" "isUsingMainHand" "isUsingOffHand" "inBiome" - This is not available in 1.16.5 "timeRange" "moonPhase" "inDimension" "onFire" "isRiding" "yLevelRange" "healthRange" "hotkeyActive" This is only available in 1.21.1 |
|
| inverted | Boolean | ![]() |
If set to true, the bonus will apply when the condition is NOT met | false |
| tooltipDescription | String | ![]() |
Specifically override the conditions text with your own string/translation key. | |
| extra | String | ![]() |
If "type"="onBlock" then you must specify the block key in this field (eg. minecraft:dirt) If "type"="inBiome" then you must specify the biome key in this field (eg. minecraft:plains) OR tag (eg: #forge:is_forest, #c:forest) If "type"="inDimension" then you must specify the dimension key in this field (eg. minecraft:overworld) If "type"="timeRange" then you must specify the time range in ticks, using a comma to separate them. Make sure there are no spaces. (eg. "0,10000") If "type"="moonPhase" then you must specify one of the following: - full - waninggibbous - lastquarter - waningcresent - new - waxingcresent - firstquarter - waxinggibbous If "type"="yLevelRange" then you must specify the upper and lower Y level value in this field, using a comma to separate them ("y1,y2") If "type"="healthRange" then you must specify the upper and health value in this field, using a comma to separate them ("x,y") If "type"="hotkeyActive" then you must specify the key to be used as a keybind, this is only available in 1.21.1 |


