Wiki: Condition Object




JSON Specification

Field Name Data Type Required Description Default Value
type String Possible Values:
"inLava"
"inRain"
"inWater"
"onBlock"
"isUsingMainHand"
"isUsingOffHand"
"inBiome"
"timeRange"
"moonPhase"
"inDimension"
"onFire"
"isRiding"
"yLevelRange"
"healthRange"
"hotkeyActive"
inverted Boolean If set to true, the bonus will apply when the condition is NOT met false
tooltipDescription Whole Number Specifically override the conditions text with your own string/translation key
extra String If "type"="onBlock" then you must specify the block key (or tag key, prefixed with "#") in this field (eg. "minecraft:iron_block" or "#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 either "primary" or "secondary" to be used as a keybind