This commit is contained in:
DaanV2
2021-06-09 11:12:18 +02:00
parent ada0815fa6
commit 13dad248b8
76 changed files with 351 additions and 327 deletions

View File

@@ -9,7 +9,7 @@
"entity_types": {
"$ref": "../types/entity_types.json",
"description": "List of entity types this mob considers a threat to the village",
"title": "TODO Title"
"title": "Entity Types"
},
"must_reach": { "title": "Must Reach", "description": "UNDOCUMENTATED", "type": "boolean" },
"attack_chance": { "title": "Attack Chance", "description": "UNDOCUMENTATED", "type": "number" }

View File

@@ -7,34 +7,39 @@
"properties": {
"priority": { "$ref": "./types/priority.json" },
"speed_multiplier": { "$ref": "./types/speed_multiplier.json" },
"attack_duration": { "type": "number", "default": 1, "description": "The duration of the attack animation in seconds", "title": "TODO Title" },
"attack_once": { "type": "boolean", "default": false, "description": "If true, this mob will attack only one time.", "title": "TODO Title" },
"attack_types": { "type": "string", "default": "", "description": "Defines the entity types this mob will attack", "title": "TODO Title" },
"attack_duration": {
"type": "number",
"default": 1,
"description": "The duration of the attack animation in seconds",
"title": "Attack Duration"
},
"attack_once": { "type": "boolean", "default": false, "description": "If true, this mob will attack only one time.", "title": "Attack Once" },
"attack_types": { "type": "string", "default": "", "description": "Defines the entity types this mob will attack", "title": "Attack Types" },
"hit_delay_pct": {
"type": "number",
"default": 1,
"description": "The percentage of the attack_duration that must pass before the hit is made",
"title": "TODO Title"
"title": "Hit Delay Percentage"
},
"random_stop_interval": {
"type": "integer",
"default": 0,
"description": "Defines the probability the mob will stop fighting. A value of 0 disables randomly stopping, while a value of 1 defines a 50% chance",
"title": "TODO Title"
"title": "Random Stop Interval"
},
"reach_multiplier": {
"type": "number",
"default": 2,
"description": "Multiplier for how far outside its box the mob can reach its target (this can be used to simulate a mob with longer arms by making this bigger)",
"title": "TODO Title"
"title": "Reach Multiplier"
},
"require_complete_path": { "type": "boolean", "title": "Require Complet Path", "description": "UNDOCUMENATED" },
"sound_event": { "type": "string", "description": "The sound event to play when the attack starts", "title": "TODO Title" },
"sound_event": { "type": "string", "description": "The sound event to play when the attack starts", "title": "Sound Event" },
"track_target": {
"type": "boolean",
"default": false,
"description": "If true, this mob will chase after the target as long as it's a valid target",
"title": "TODO Title"
"title": "Track Target"
}
}
}

View File

@@ -8,42 +8,47 @@
"priority": { "$ref": "./types/priority.json" },
"speed_multiplier": { "$ref": "./types/speed_multiplier.json" },
"entity_types": { "$ref": "../types/entity_types.json" },
"drop_item_chance": { "type": "number", "default": 1.0, "description": "The probability that the mob will drop an item.", "title": "TODO Title" },
"drop_item_chance": {
"type": "number",
"default": 1.0,
"description": "The probability that the mob will drop an item.",
"title": "Drop Item Chance"
},
"goal_radius": {
"type": "number",
"default": 0.5,
"description": "Distance in blocks within the mob considers it has reached the goal. This is the \"wiggle room\" to stop the AI from bouncing back and forth trying to reach a specific spot",
"title": "TODO Title"
"title": "Goal Radius"
},
"loot_table": { "type": "string", "description": "Loot table to select items from.", "title": "TODO Title" },
"loot_table": { "type": "string", "description": "Loot table to select items from.", "title": "Loot Table" },
"max_dist": {
"type": "number",
"description": "Maximum distance in blocks this mob will look for entities to drop an item for.",
"title": "TODO Title"
"title": "Maximum Distance"
},
"offering_distance": {
"type": "number",
"default": 1.0,
"description": "The distance in blocks the mob will try to be away from the entity when it drops the item.",
"title": "TODO Title"
"title": "Offering Distance"
},
"on_drop_attempt": {
"$ref": "../types/event.json",
"description": "Event to run when this mob attempts to drop an item.",
"title": "TODO Title"
"title": "On Drop Attempt"
},
"search_height": { "type": "integer", "default": 1, "description": "Height in blocks from the target the mob can be.", "title": "TODO Title" },
"search_height": { "type": "integer", "default": 1, "description": "Height in blocks from the target the mob can be.", "title": "Search Height" },
"search_range": {
"type": "integer",
"default": 0,
"description": "The distance in blocks from the target the mob can be.",
"title": "TODO Title"
"title": "Search Range"
},
"time_of_day_range": {
"$ref": "../types/range_number_type.json",
"default": [0.0, 1.0],
"description": "The valid times of day that this goal can be used. For reference: noon is 0.0, sunset is 0.25, midnight is 0.5, and sunrise is 0.75, and back to noon for 1.0.",
"title": "TODO Title"
"title": "Time Of Day Range"
}
}
}

View File

@@ -11,7 +11,7 @@
"success_chance": {
"title": "Succes Chance",
"description": "UNDOCUMENTATED",
"oneOf": [{ "type": "number" }, { "type": "string", "title": "Molang" }]
"$ref": "../../../../molang/number.json"
},
"time_until_eat": { "title": "Time Until Eat", "description": "UNDOCUMENTATED", "type": "number" },
"eat_and_replace_block_pairs": {
@@ -20,11 +20,21 @@
"description": "UNDOCUMENTATED",
"items": {
"type": "object",
"title": "TODO",
"title": "Eat And Replace Block Pair",
"description": "UNDOCUMENTATED",
"properties": {
"eat_block": { "type": "string", "title": "TODO", "description": "UNDOCUMENTATED" },
"replace_block": { "type": "string", "title": "TODO", "description": "UNDOCUMENTATED" }
"eat_block": {
"type": "string",
"title": "Block",
"description": "UNDOCUMENTATED",
"$ref": "../../../../general/block/identifier.json"
},
"replace_block": {
"type": "string",
"title": "Replace Block",
"description": "UNDOCUMENTATED",
"$ref": "../../../../general/block/identifier.json"
}
}
}
}

View File

@@ -31,7 +31,7 @@
"properties": {
"add": { "$ref": "#/definitions/addremove", "description": "What gets added when the event gets triggered", "title": "Add" },
"remove": { "$ref": "#/definitions/addremove", "description": "What gets removed when the event gets triggered", "title": "Remove" },
"trigger": { "type": "string", "description": "UNDOCUMENTATED", "title": "TODO" },
"trigger": { "type": "string", "description": "UNDOCUMENTATED", "title": "Trigger" },
"weight": { "type": "number", "description": "UNDOCUMENTATED: weight", "title": "Weight" }
},
"description": "UNDOCUMENTATED: randomize",
@@ -56,7 +56,7 @@
"title": "Sequences"
},
"filters": { "$ref": "./../filters/filters.json" },
"trigger": { "type": "string", "description": "UNDOCUMENTATED", "title": "TODO" }
"trigger": { "type": "string", "description": "UNDOCUMENTATED", "title": "Trigger" }
}
}
},