This commit is contained in:
DaanV2
2021-07-01 16:10:45 +02:00
parent 8842f70840
commit 0b1527e81a
44 changed files with 213 additions and 233 deletions

View File

@@ -6,6 +6,8 @@
"additionalProperties": false,
"required": [],
"properties": {
"broadcastAnger": { "type": "boolean", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Broadcast Anger" },
"broadcastRange": { "type": "integer", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Broadcast Range" },
"broadcast_anger": {
"type": "boolean",
"default": false,
@@ -17,6 +19,11 @@
"description": "Conditions that make this entry in the list valid",
"title": "Broadcast Filters"
},
"filters": {
"$ref": "../../filters/filters.json",
"description": "Filter out mob types that it should not attack while angry (other Piglins)",
"title": "Filters"
},
"broadcast_range": {
"type": "integer",
"default": 20,
@@ -34,6 +41,19 @@
"description": "Event to run after the number of seconds specified in duration expires (when the entity stops being `angry')",
"title": "Calm Event"
},
"angry_sound": { "type": "string", "default": "", "description": "The sound event to play when the mob is angry", "title": "Angry Sound" },
"broadcast_anger_on_attack": {
"type": "boolean",
"default": false,
"description": "If true, other entities of the same entity definition within the broadcastRange will also become angry whenever this mob attacks",
"title": "Broadcast Anger On Attack"
},
"broadcast_anger_on_being_attacked": {
"type": "boolean",
"default": false,
"description": "If true, other entities of the same entity definition within the broadcastRange will also become angry whenever this mob is attacked",
"title": "Broadcast Anger On Being Attacked"
},
"duration": {
"type": "integer",
"default": 25,
@@ -46,7 +66,27 @@
"description": "Variance in seconds added to the duration [-delta, delta]",
"title": "Duration Delta"
},
"broadcastAnger": { "type": "boolean", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "TODO" },
"broadcastRange": { "type": "integer", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "TODO" }
"sound_interval": {
"description": "The range of time in seconds to randomly wait before playing the sound again",
"title": "Sound Interval",
"oneOf": [
{
"type": "array",
"default": [0, 0],
"items": [
{ "type": "integer", "minimum": 0, "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Minimum" },
{ "type": "integer", "minimum": 0, "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Maximum" }
]
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"range_min": { "type": "number", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Range Minimum" },
"range_max": { "type": "number", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Range Maximum" }
}
}
]
}
}
}

View File

@@ -8,7 +8,7 @@
"properties": {
"filters": {
"$ref": "../../filters/filters.json",
"description": "The list of conditions that must be satisfied before the Actor is despawned",
"description": "The list of conditions that must be satisfied before the Actor is despawned. If a filter is defined then standard despawn rules are ignored.",
"title": "Filters"
},
"despawn_from_chance": {
@@ -25,10 +25,22 @@
},
"despawn_from_distance": {
"type": "object",
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"title": "TODO",
"additionalProperties": false
"description": "Defines the minimum and maximum distance for despawn to occur",
"title": "Despawn From Distance",
"properties": {
"max_distance": {
"title": "Maximum Distance",
"description": "Maximum distance for standard despawn rules to instantly despawn the mob.",
"type": "integer",
"default": 128
},
"min_distance": {
"title": "Minimum Distance",
"description": "Minimum distance for standard despawn rules to try to despawn the mob.",
"type": "integer",
"default": 32
}
}
},
"despawn_from_simulation_edge": {
"type": "boolean",
@@ -40,13 +52,13 @@
"type": "integer",
"default": 30,
"description": "The amount of time in seconds that the mob must be inactive.",
"title": "Min Range Inactivity Timer"
"title": "Minimum Range Inactivity Timer"
},
"min_range_random_chance": {
"type": "integer",
"default": 800,
"description": "A random chance between 1 and the given value.",
"title": "Min Range Random Chance"
"title": "Minimum Range Random Chance"
},
"remove_child_entities": {
"type": "boolean",

View File

@@ -5,56 +5,71 @@
"additionalProperties": false,
"description": "Defines the way a mob's genes and alleles are passed on to it's offspring, and how those traits manifest in the child. Compatible parent genes are crossed together, the alleles are handed down from the parents to the child, and any matching genetic variants fire off JSON events to modify the child and express the traits.",
"required": [],
"definitions": {
"integer_range": {
"title": "Range",
"examples": [-1, { "range_min": 4, "range_max": 7 }],
"oneOf": [
{ "type": "integer" },
{
"type": "object",
"properties": {
"range_min": {
"type": "integer",
"default": 0,
"description": "Lower bound",
"title": "Range Minimum"
},
"range_max": {
"type": "integer",
"default": 0,
"description": "Upper bound",
"title": "Range Maximum"
}
}
}
]
}
},
"properties": {
"mutation_rate": {
"type": "number",
"default": 0.03125,
"description": "Chance that an allele will be replaced with a random one instead of the parent's allele during birth.",
"title": "TODO Title"
"title": "Mutation Rate"
},
"genes": {
"type": "array",
"description": "Genes is a list defined by three parameters",
"title": "Genes",
"items": {
"type": "object",
"description": "The list of genes that this entity has and will cross with a partner during breeding.",
"title": "Gene",
"properties": {
"allele_range": {
"title": "Allele Range",
"description": "The range of positive integer allele values for this gene. Spawned mobs will have a random number in this range assigned to them.",
"oneOf": [
{ "type": "integer" },
{
"properties": {
"range_min": { "type": "integer", "default": 0, "description": "Lower bound of the allele values for this gene." },
"range_max": { "type": "integer", "default": 0, "description": "Upper bound of the allele values for this gene." }
}
}
]
"$ref": "#/definitions/integer_range"
},
"genetic_variants": {
"type": "array",
"description": "The list of genetic variants for this gene. These check for particular allele combinations and fire events when all of them are satisfied.",
"title": "Genetic Variants",
"items": {
"title": "Genetic Variants",
"description": "The genetic variant for this gene. These check for particular allele combinations and fire events when all of them are satisfied.",
"type": "object",
"properties": {
"birth_event": {
"$ref": "../types/event.json",
"description": "Event to run when this mob is created and matches the above allele conditions."
"description": "Event to run when this mob is created and matches the above allele conditions.",
"title": "Brith Event"
},
"both_allele": {
"description": "If this value is non-negative, compare both the mob's main and hidden alleles with this value for a match with both. Can also be a range of integers.",
"oneOf": [
{ "type": "integer" },
{
"type": "object",
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"title": "TODO",
"additionalProperties": false,
"properties": {
"range_min": { "type": "integer", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "TODO" },
"range_max": { "type": "integer", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "TODO" }
}
}
]
"title": "Both Allele",
"$ref": "#/definitions/integer_range"
},
"either_allele": {
"type": "integer",
@@ -69,29 +84,13 @@
"main_allele": {
"default": -1,
"description": "If this value is non-negative, compare the mob's main allele with this value for a match. Can also be a range of integers.",
"oneOf": [
{ "type": "integer" },
{
"type": "object",
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"title": "TODO",
"additionalProperties": false,
"properties": {
"range_min": { "type": "integer", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "TODO" },
"range_max": { "type": "integer", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "TODO" }
}
}
]
"$ref": "#/definitions/integer_range"
}
}
}
}
}
},
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"title": "TODO Title"
}
}
}
}

View File

@@ -2,8 +2,17 @@
"$id": "blockception.minecraft.behavior.entities.1.8.0.minecraft.loot",
"type": "object",
"title": "Loot 1.8.0",
"description": "sets the loot table for what items this entity drops upon death.",
"additionalProperties": false,
"required": [],
"properties": { "table": { "type": "string", "pattern": ".*\\.json$", "description": "UNDOCUMENTATED: table", "title": "Table" } },
"description": "UNDOCUMENTATED: "
"required": ["table"],
"examples": [{ "table": "loot_tables/empty.json" }],
"properties": {
"table": {
"type": "string",
"pattern": "^loot_tables/.*.json$",
"description": "The path to the loot table, relative to the Behavior Pack's root.",
"title": "Table",
"default": "loot_tables/empty.json"
}
}
}