Files
misode.github.io/schemas/1.14.json
2019-09-13 13:36:49 +02:00

451 lines
10 KiB
JSON

{
"root": {
"fields": [
{
"id": "type",
"type": "enum",
"values": [
"minecraft:empty",
"minecraft:entity",
"minecraft:block",
"minecraft:chest",
"minecraft:fishing",
"minecraft:generic"
],
"default": "minecraft:generic"
},
{
"id": "pools",
"type": "array",
"values": "pool"
}
]
},
"components": [
{
"id": "pool",
"type": "object",
"color": "success",
"default": {
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:stone"
}
]
},
"fields": [
{
"id": "rolls",
"type": "random",
"default": 1
},
{
"id": "bonus_rolls",
"type": "random",
"default": 1,
"luck_based": true
},
{
"id": "entries",
"type": "array",
"values": "entry",
"button": "header"
},
{
"id": "conditions",
"type": "array",
"values": "condition",
"button": "header"
}
]
},
{
"id": "entry",
"type": "object",
"color": "light",
"default": {
"type": "minecraft:item",
"name": "minecraft:stone"
},
"fields": [
{
"id": "type",
"type": "enum",
"source": "entry",
"values": [
"minecraft:empty",
"minecraft:item",
"minecraft:tag",
"minecraft:loot_table",
"minecraft:alternatives",
"minecraft:sequence",
"minecraft:group",
"minecraft:dynamic"
],
"default": "minecraft:item"
},
{
"id": "name",
"type": "string",
"default": "minecraft:stone",
"require": [
"minecraft:item",
"minecraft:tag",
"minecraft:loot_table",
"minecraft:dynamic"
]
},
{
"id": "children",
"type": "array",
"values": "entry",
"button": "field",
"color": "success",
"require": [
"minecraft:alternatives",
"minecraft:sequence",
"minecraft:group"
]
},
{
"id": "functions",
"type": "array",
"values": "function",
"button": "header"
},
{
"id": "conditions",
"type": "array",
"values": "condition",
"button": "header"
}
]
},
{
"id": "function",
"type": "object",
"color": "secondary",
"default": {
"function": "minecraft:set_count",
"count": 2
},
"fields": [
{
"id": "function",
"type": "enum",
"source": "function",
"values": [
"minecraft:set_count",
"minecraft:set_damage",
"minecraft:set_name",
"minecraft:set_lore",
"minecraft:set_nbt",
"minecraft:set_attributes",
"minecraft:set_contents",
"minecraft:enchant_randomly",
"minecraft:enchant_with_levels",
"minecraft:looting_enchant",
"minecraft:limit_count",
"minecraft:furnace_smelt",
"minecraft:explosion_decay",
"minecraft:fill_player_head",
"minecraft:copy_name",
"minecraft:copy_nbt",
"minecraft:apply_bonus"
],
"default": "set_count"
},
{
"id": "count",
"type": "random",
"default": 2,
"require": [
"minecraft:set_count",
"minecraft:looting_enchant"
]
},
{
"id": "damage",
"type": "random",
"default": 1,
"require": [
"minecraft:set_damage"
]
},
{
"id": "name",
"type": "json",
"require": [
"minecraft:set_name"
]
},
{
"id": "lore",
"type": "json-list",
"require": [
"minecraft:set_lore"
]
},
{
"id": "tag",
"type": "nbt",
"require": [
"minecraft:set_nbt"
]
},
{
"id": "levels",
"type": "random",
"require": [
"minecraft:enchant_with_levels"
]
},
{
"id": "treasure",
"type": "boolean",
"default": false,
"require": [
"minecraft:enchant_with_levels"
]
},
{
"id": "limit",
"type": "int",
"require": [
"minecraft:looting_enchant"
]
},
{
"id": "limit",
"type": "boundary",
"require": [
"minecraft:limit_count"
]
},
{
"id": "entity",
"type": "enum",
"source": "source",
"default": "minecraft:this",
"values": [
"minecraft:this",
"minecraft:killer",
"minecraft:killer_player"
],
"require": [
"minecraft:set_name",
"minecraft:set_lore",
"minecraft:fill_player_head"
]
},
{
"id": "source",
"type": "enum",
"source": "source",
"default": "minecraft:this",
"values": [
"minecraft:block_entity",
"minecraft:this",
"minecraft:killer",
"minecraft:killer_player"
],
"require": [
"minecraft:copy_name",
"minecraft:copy_nbt"
]
},
{
"id": "replace",
"type": "boolean",
"require": [
"minecraft:set_lore"
]
},
{
"id": "enchantments",
"type": "set",
"source": "enchantment",
"values": [
"minecraft:aqua_affinity",
"minecraft:bane_of_arthropods",
"minecraft:blast_protection",
"minecraft:channeling",
"minecraft:binding_curse",
"minecraft:vanishing_curse",
"minecraft:depth_strider",
"minecraft:efficiency",
"minecraft:feather_falling",
"minecraft:fire_aspect",
"minecraft:fire_protection",
"minecraft:flame",
"minecraft:fortune",
"minecraft:frost_walker",
"minecraft:impaling",
"minecraft:infinity",
"minecraft:knockback",
"minecraft:looting",
"minecraft:loyalty",
"minecraft:luck_of_the_sea",
"minecraft:lure",
"minecraft:mending",
"minecraft:multishot",
"minecraft:piercing",
"minecraft:power",
"minecraft:projectile_protection",
"minecraft:protection",
"minecraft:punch",
"minecraft:quick_charge",
"minecraft:respiration",
"minecraft:riptide",
"minecraft:sharpness",
"minecraft:silk_touch",
"minecraft:smite",
"minecraft:sweeping",
"minecraft:thorns",
"minecraft:unbreaking"
],
"require": [
"minecraft:enchant_randomly"
]
},
{
"id": "modifiers",
"type": "array",
"button": "field",
"values": "attribute_modifier",
"require": [
"minecraft:set_attributes"
]
},
{
"id": "ops",
"type": "array",
"button": "field",
"values": "nbt_operation",
"require": [
"minecraft:copy_nbt"
]
},
{
"id": "conditions",
"type": "array",
"values": "condition",
"button": "header"
}
]
},
{
"id": "condition",
"type": "object",
"color": "info",
"default": {
"condition": "minecraft:random_chance",
"chance": 0.5
},
"fields": [
]
},
{
"id": "attribute_modifier",
"type": "object",
"color": "dark",
"default": {
"attribute": "generic.attackDamage",
"name": "Attack Damage",
"amount": 1,
"operation": "addition",
"slot": []
},
"fields": [
{
"id": "attribute",
"type": "enum",
"source": "attribute",
"default": "generic.attackDamage",
"values": [
"generic.maxHealth",
"generic.followRange",
"generic.knockbackResistance",
"generic.movementSpeed",
"generic.attackDamage",
"generic.armor",
"generic.armorToughness",
"generic.attackSpeed",
"generic.luck",
"horse.jumpStrength",
"generic.attackKnockback",
"generic.flyingSpeed",
"zombie.spawnReinforcements"
]
},
{
"id": "name",
"type": "string"
},
{
"id": "amount",
"type": "float",
"default": 1
},
{
"id": "operation",
"type": "enum",
"source": "modifier.operation",
"default": "addition",
"values": [
"addition",
"multiply_base",
"multiply_total"
]
},
{
"id": "slots",
"type": "set",
"values": [
"mainhand",
"offhand",
"head",
"chest",
"legs",
"feet"
]
}
]
},
{
"id": "nbt_operation",
"type": "object",
"color": "dark",
"default": {
"operation": "replace"
},
"fields": [
{
"id": "source",
"type": "string",
"class": "code"
},
{
"id": "target",
"type": "string",
"class": "code"
},
{
"id": "op",
"type": "enum",
"source": "operation.type",
"default": "replace",
"values": [
"replace",
"append",
"merge"
]
}
]
}
]
}