Update loot table schemas (#391)
* update loot table schemas * remove entity_properties and use new int_or_range definition * remove entity_properties from conditions.json as well
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
},
|
||||
"count": {
|
||||
"title": "Count",
|
||||
"oneOf": [{ "type": "integer" }, { "type": "object", "properties": { "min": { "type": "integer", "title": "Minimum" }, "max": { "type": "integer", "title": "Maximum" } } }],
|
||||
"$ref": "../../../general/int_or_range.json",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED"
|
||||
}
|
||||
|
||||
@@ -22,16 +22,7 @@
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"title": "Damage",
|
||||
"oneOf": [
|
||||
{ "type": "number", "minimum": 0, "maximum": 1 },
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"min": { "type": "number", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED", "title": "Minimum", "minimum": 0, "maximum": 1 },
|
||||
"max": { "type": "number", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED", "title": "Maximum", "minimum": 0, "maximum": 1 }
|
||||
}
|
||||
}
|
||||
]
|
||||
"$ref": "../../../general/int_or_range.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,16 +10,7 @@
|
||||
"title": "Data",
|
||||
"description": "UNDOCUMENTED.",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"oneOf": [
|
||||
{ "type": "integer" },
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"min": { "type": "integer", "title": "Minimum", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED" },
|
||||
"max": { "type": "integer", "title": "Maximum", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED" }
|
||||
}
|
||||
}
|
||||
]
|
||||
"$ref": "../../../general/int_or_range.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"$id": "blockception.minecraft.behavior.function.set_ominous_bottle_amplifier",
|
||||
"type": "object",
|
||||
"title": "Set Ominous Bottle Amplifier",
|
||||
"description": "Configures the amplifier value applied to the ominous bottle item.",
|
||||
"additionalProperties": false,
|
||||
"required": ["function", "amplifier"],
|
||||
"properties": {
|
||||
"function": { "const": "set_ominous_bottle_amplifier" },
|
||||
"amplifier": {
|
||||
"description": "Amplifier value or range to apply.",
|
||||
"$ref": "../../../general/int_or_range.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
31
source/behavior/loot_tables/functions/set_stew_effect.json
Normal file
31
source/behavior/loot_tables/functions/set_stew_effect.json
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"$id": "blockception.minecraft.behavior.function.set_stew_effect",
|
||||
"type": "object",
|
||||
"title": "Set Stew Effect",
|
||||
"description": "Configures suspicious stew status effects.",
|
||||
"additionalProperties": false,
|
||||
"required": ["function", "effects"],
|
||||
"properties": {
|
||||
"function": { "const": "set_stew_effect" },
|
||||
"effects": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["id"],
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "integer",
|
||||
"description": "Numeric effect identifier."
|
||||
},
|
||||
"duration": {
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"description": "Optional duration in ticks for the effect."
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user