Files
Xterionix 822ed538f9 Some more misc fixes (#295)
* - Add mob effects enum

* - Add biome and biome tags to enum

* - Fix feature rules only showing with 1.13.0 format version

* - Replace 1.20.41 -> 1.20.80
- Make certain format versions restricted to 1.10.0

* - Remove example stick (having this here was annoying)

* - Fix

* - Remove empty sounds example

* - Misc fixes for entity components
2024-06-28 21:06:53 +02:00

71 lines
2.7 KiB
JSON

{
"$id": "blockception.minecraft.behavior.entities.minecraft.shooter",
"description": "Defines the entity's ranged attack behavior.",
"type": "object",
"title": "Shooter",
"additionalProperties": false,
"properties": {
"aux_val": {
"type": "integer",
"title": "Aux Val",
"default": -1,
"description": "ID of the Potion effect to be applied on hit."
},
"def": {
"title": "Def",
"type": "string",
"description": "Actor definition to use as projectile for the ranged attack. The actor definition must have the projectile component to be able to be shot as a projectile"
},
"magic": {
"title": "Magic",
"type": "boolean",
"default": false,
"description": "Sets whether the projectiles being used are flagged as magic. If set, the ranged attack goal will not be used at the same time as other magic goals, such as minecraft:behavior.drink_potion."
},
"power": {
"type": "number",
"title": "Power",
"default": 0.0,
"description": "Velocity in which the projectiles will be shot. A power of 0 will be overwritten by the default projectile throw power."
},
"projectiles": {
"title": "Projectiles",
"description": "List of projectiles that can be used by the shooter. Projectiles are evaluated in the order of the list; after a projectile is chosen, the rest of the list is ignored.",
"type": "array",
"items": {
"oneOf": [
{ "type": "string", "description": "Projectiles that can be used by the shooter", "title": "Projectile" },
{
"type": "object",
"title": "Projectile",
"description": "A projectile defintion",
"properties": {
"aux_val": {
"type": "integer",
"title": "Aux Val",
"default": -1,
"description": "ID of the Potion effect to be applied on hit."
},
"def": {
"title": "Def",
"type": "string",
"examples": ["minecraft:arrow", "minecraft:small_fireball", "minecraft:thrown_trident"],
"description": "Actor definition to use as projectile for the ranged attack. The actor definition must have the projectile component to be able to be shot as a projectile"
},
"filters": {
"$ref": "../../filters/filters.json"
}
}
}
]
}
},
"sound": {
"title": "Sound",
"type": "string",
"description": "Sound that is played when the shooter shoots a projectile."
}
},
"examples": [{ "def": "minecraft:small_fireball" }]
}