Updating items

This commit is contained in:
DaanV2
2022-07-20 21:25:32 +02:00
parent e7465a00c4
commit 8b85afe464
39 changed files with 843 additions and 41 deletions

File diff suppressed because one or more lines are too long

View File

@@ -1,5 +1,5 @@
{ {
"$id": "blockception.minecraft.behavior.1.16.200.items.minecraft:armor", "$id": "blockception.minecraft.behavior.items.minecraft:armor",
"title": "Armor", "title": "Armor",
"description": "The armor item component determines the amount of protection you have in your armor item.", "description": "The armor item component determines the amount of protection you have in your armor item.",
"type": "object", "type": "object",

View File

@@ -1,5 +1,5 @@
{ {
"$id": "blockception.minecraft.behavior.1.16.200.items.minecraft:block_placer", "$id": "blockception.minecraft.behavior.items.minecraft:block_placer",
"title": "Block Placer", "title": "Block Placer",
"description": "Planter item component. planter items are items that can be planted.", "description": "Planter item component. planter items are items that can be planted.",
"type": "object", "type": "object",

View File

@@ -1,5 +1,5 @@
{ {
"$id": "blockception.minecraft.behavior.1.16.200.items.minecraft:cooldown", "$id": "blockception.minecraft.behavior.items.minecraft:cooldown",
"title": "Cooldown", "title": "Cooldown",
"description": "Cool down time for a component. After you use an item it becomes unusable for the duration specified by the `cool down time` setting in this component.", "description": "Cool down time for a component. After you use an item it becomes unusable for the duration specified by the `cool down time` setting in this component.",
"type": "object", "type": "object",

View File

@@ -1,5 +1,5 @@
{ {
"$id": "blockception.minecraft.behavior.1.16.200.items.minecraft:digger", "$id": "blockception.minecraft.behavior.items.minecraft:digger",
"title": "Digger", "title": "Digger",
"description": "Digger item. Component put on items that dig.", "description": "Digger item. Component put on items that dig.",
"type": "object", "type": "object",

View File

@@ -1,5 +1,5 @@
{ {
"$id": "blockception.minecraft.behavior.1.16.200.items.minecraft:display_name", "$id": "blockception.minecraft.behavior.items.minecraft:display_name",
"title": "Display Name", "title": "Display Name",
"description": "Display Name item component. Display Names display the name of an item.", "description": "Display Name item component. Display Names display the name of an item.",
"type": "object", "type": "object",

View File

@@ -1,5 +1,5 @@
{ {
"$id": "blockception.minecraft.behavior.1.16.200.items.minecraft:durability", "$id": "blockception.minecraft.behavior.items.minecraft:durability",
"title": "Durability", "title": "Durability",
"description": "Durability item component: how much damage can this item take before breaking.", "description": "Durability item component: how much damage can this item take before breaking.",
"type": "object", "type": "object",

View File

@@ -1,5 +1,5 @@
{ {
"$id": "blockception.minecraft.behavior.1.16.200.items.minecraft:dye_powder", "$id": "blockception.minecraft.behavior.items.minecraft:dye_powder",
"title": "Dye Powder", "title": "Dye Powder",
"description": "Dye powder, there are 16 kinds of dye.", "description": "Dye powder, there are 16 kinds of dye.",
"type": "object", "type": "object",

View File

@@ -1,5 +1,5 @@
{ {
"$id": "blockception.minecraft.behavior.1.16.200.items.minecraft:entity_placer", "$id": "blockception.minecraft.behavior.items.minecraft:entity_placer",
"title": "Entity Placer", "title": "Entity Placer",
"description": "Entity placer item component. You can specifiy allowed blocks that the item is restricted to.", "description": "Entity placer item component. You can specifiy allowed blocks that the item is restricted to.",
"type": "object", "type": "object",

View File

@@ -1,5 +1,5 @@
{ {
"$id": "blockception.minecraft.behavior.1.16.200.items.minecraft:food", "$id": "blockception.minecraft.behavior.items.minecraft:food",
"title": "Food", "title": "Food",
"description": "When an item has a food component, it becomes edible to the player.", "description": "When an item has a food component, it becomes edible to the player.",
"type": "object", "type": "object",
@@ -23,15 +23,63 @@
"target": { "type": "string", "title": "Target", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "enum": ["self"] } "target": { "type": "string", "title": "Target", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "enum": ["self"] }
} }
}, },
"is_meat": {
"title": "Is Meat",
"description": "If true, this food item is considered meat.",
"type": "boolean",
"default": false
},
},
"saturation_modifier": { "saturation_modifier": {
"title": "Saturation Modifier", "title": "Saturation Modifier",
"description": "Saturation Modifier is used in this formula: (nutrition * saturation_modifier * 2) when appling the saturation buff. Which happens when you eat the item.", "description": "Saturation Modifier is used in this formula: (nutrition * saturation_modifier * 2) when appling the saturation buff. Which happens when you eat the item.",
"type": "number" "oneOf": [
{ "type": "number" },
{
"type": "string",
"enum": ["poor", "low"]
}
]
}, },
"using_converts_to": { "using_converts_to": {
"title": "Using Converts To", "title": "Using Converts To",
"description": "When used, convert the *this* item to the one specified by `using_converts_to`.", "description": "When used, convert the *this* item to the one specified by `using_converts_to`.",
"type": "string" "type": "string"
},
"effects": {
"title": "Effects",
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"type": "array",
"items": {
"title": "Effect",
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"title": "Name",
"description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED",
"type": "string"
},
"duration": {
"type": "integer",
"default": 0,
"minimum": 0,
"description": "The duration of the effect.",
"$comment": "UNDOCUMENTED"
},
"amplifier": {
"type": "integer",
"default": 0,
"minimum": 0,
"description": "The amplifier of the effect.",
"$comment": "UNDOCUMENTED"
}
}
}
} }
} }
} }

View File

@@ -1,5 +1,5 @@
{ {
"$id": "blockception.minecraft.behavior.1.16.200.items.minecraft:fuel", "$id": "blockception.minecraft.behavior.items.minecraft:fuel",
"title": "Fuel", "title": "Fuel",
"description": "Fuel component. Allows this item to be used as fuel in a furnace to `cook` other items.", "description": "Fuel component. Allows this item to be used as fuel in a furnace to `cook` other items.",
"type": "object", "type": "object",

View File

@@ -1,5 +1,5 @@
{ {
"$id": "blockception.minecraft.behavior.1.16.200.items.minecraft:hand_equiped", "$id": "blockception.minecraft.behavior.items.minecraft:hand_equiped",
"additionalProperties": false, "additionalProperties": false,
"required": ["texture"], "required": ["texture"],
"type": "boolean", "type": "boolean",

View File

@@ -1,5 +1,5 @@
{ {
"$id": "blockception.minecraft.behavior.1.16.200.items.minecraft:icon", "$id": "blockception.minecraft.behavior.items.minecraft:icon",
"title": "Icon", "title": "Icon",
"description": "The icon item componenent determines the icon to represent the item in the UI and elsewhere.", "description": "The icon item componenent determines the icon to represent the item in the UI and elsewhere.",
"type": "object", "type": "object",

View File

@@ -1,5 +1,5 @@
{ {
"$id": "blockception.minecraft.behavior.1.16.200.items.minecraft:knockback_resistance", "$id": "blockception.minecraft.behavior.items.minecraft:knockback_resistance",
"title": "Knockback Resistance", "title": "Knockback Resistance",
"description": "Knockback Resistance Item. Component put on items that provide knockback resistance.", "description": "Knockback Resistance Item. Component put on items that provide knockback resistance.",
"type": "object", "type": "object",

View File

@@ -0,0 +1,9 @@
{
"$id": "blockception.minecraft.behavior.items.minecraft:max_damage",
"additionalProperties": false,
"type": "integer",
"title": "Max Damage",
"description": "Maximum Damage",
"$comment": "UNDOCUMENTED",
"minimum": 0
}

View File

@@ -1,5 +1,5 @@
{ {
"$id": "blockception.minecraft.behavior.1.16.200.items.minecraft:max_stack_size", "$id": "blockception.minecraft.behavior.items.minecraft:max_stack_size",
"additionalProperties": false, "additionalProperties": false,
"required": ["texture"], "required": ["texture"],
"type": "integer", "type": "integer",

View File

@@ -1,5 +1,5 @@
{ {
"$id": "blockception.minecraft.behavior.1.16.200.items.minecraft:on_use", "$id": "blockception.minecraft.behavior.items.minecraft:on_use",
"title": "On Use", "title": "On Use",
"description": "The on_use item component allows you to receive an event when the item is used.", "description": "The on_use item component allows you to receive an event when the item is used.",
"type": "object", "type": "object",

View File

@@ -1,5 +1,5 @@
{ {
"$id": "blockception.minecraft.behavior.1.16.200.items.minecraft:", "$id": "blockception.minecraft.behavior.items.minecraft:on_use_on",
"title": "On Use On", "title": "On Use On",
"description": "The on_use_on item component allows you to receive an event when the item is used on a block in the world.", "description": "The on_use_on item component allows you to receive an event when the item is used on a block in the world.",
"type": "object", "type": "object",

View File

@@ -1,5 +1,5 @@
{ {
"$id": "blockception.minecraft.behavior.1.16.200.items.minecraft:projectile", "$id": "blockception.minecraft.behavior.items.minecraft:projectile",
"title": "Projectile", "title": "Projectile",
"description": "Projectile item component. projectile items shoot out, like an arrow.", "description": "Projectile item component. projectile items shoot out, like an arrow.",
"type": "object", "type": "object",

View File

@@ -1,5 +1,5 @@
{ {
"$id": "blockception.minecraft.behavior.1.16.200.items.minecraft:render_offsets", "$id": "blockception.minecraft.behavior.items.minecraft:render_offsets",
"title": "Render Offsets", "title": "Render Offsets",
"description": "Render offsets component: optional values can be given to offset the way the item is rendered.", "description": "Render offsets component: optional values can be given to offset the way the item is rendered.",
"type": "object", "type": "object",

View File

@@ -1,5 +1,5 @@
{ {
"$id": "blockception.minecraft.behavior.1.16.200.items.minecraft:repairable", "$id": "blockception.minecraft.behavior.items.minecraft:repairable",
"title": "Repairable", "title": "Repairable",
"description": "Repairable item component: how much damage can this item repair, what items can repair it.", "description": "Repairable item component: how much damage can this item repair, what items can repair it.",
"type": "object", "type": "object",

View File

@@ -1,5 +1,5 @@
{ {
"$id": "blockception.minecraft.behavior.1.16.200.items.minecraft:shooter", "$id": "blockception.minecraft.behavior.items.minecraft:shooter",
"title": "Shooter", "title": "Shooter",
"description": "Shooter Item Component.", "description": "Shooter Item Component.",
"type": "object", "type": "object",

View File

@@ -0,0 +1,6 @@
{
"$id": "blockception.minecraft.behavior.items.minecraft:stacked_by_data",
"title": "On Use",
"description": "The on_use item component allows you to receive an event when the item is used.",
"type": "boolean"
}

View File

@@ -1,5 +1,5 @@
{ {
"$id": "blockception.minecraft.behavior.1.16.200.items.minecraft:", "$id": "blockception.minecraft.behavior.items.minecraft:",
"title": "Throwable", "title": "Throwable",
"description": "Throwable item component. Throwable items, such as a snowball.", "description": "Throwable item component. Throwable items, such as a snowball.",
"type": "object", "type": "object",

View File

@@ -1,5 +1,5 @@
{ {
"$id": "blockception.minecraft.behavior.1.16.200.items.minecraft:use_duration", "$id": "blockception.minecraft.behavior.items.minecraft:use_duration",
"additionalProperties": false, "additionalProperties": false,
"required": ["texture"], "required": ["texture"],
"type": "integer", "type": "integer",

View File

@@ -1,5 +1,5 @@
{ {
"$id": "blockception.minecraft.behavior.1.16.200.items.minecraft:weapon", "$id": "blockception.minecraft.behavior.items.minecraft:weapon",
"title": "Weapon", "title": "Weapon",
"description": "Weapon Item Component. Added to every weapon item such as axe, sword, trident, bow, crossbow.", "description": "Weapon Item Component. Added to every weapon item such as axe, sword, trident, bow, crossbow.",
"type": "object", "type": "object",

View File

@@ -1,5 +1,5 @@
{ {
"$id": "blockception.minecraft.behavior.1.16.200.items.minecraft:wearable", "$id": "blockception.minecraft.behavior.items.minecraft:wearable",
"title": "Wearable", "title": "Wearable",
"description": "Wearable item component.", "description": "Wearable item component.",
"type": "object", "type": "object",

View File

@@ -1,5 +1,5 @@
{ {
"$id": "blockception.minecraft.behavior.1.16.200.items.events", "$id": "blockception.minecraft.behavior.items.events",
"title": "Events", "title": "Events",
"description": "UNDOCUMENTED", "description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",

View File

@@ -1,5 +1,5 @@
{ {
"$id": "blockception.minecraft.behavior.1.16.200.items.events.add_mob_effect", "$id": "blockception.minecraft.behavior.items.events.add_mob_effect",
"title": "Add Mob Effect", "title": "Add Mob Effect",
"description": "UNDOCUMENTED", "description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",

View File

@@ -1,5 +1,5 @@
{ {
"$id": "blockception.minecraft.behavior.1.16.200.items.events.shoot", "$id": "blockception.minecraft.behavior.items.events.shoot",
"title": "Shoot", "title": "Shoot",
"description": "UNDOCUMENTED", "description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",

View File

@@ -1,5 +1,5 @@
{ {
"$id": "blockception.minecraft.behavior.1.16.200.items.events.decrement_stack", "$id": "blockception.minecraft.behavior.items.events.decrement_stack",
"title": "Decrement Stack", "title": "Decrement Stack",
"description": "UNDOCUMENTED", "description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",

View File

@@ -1,5 +1,5 @@
{ {
"$id": "blockception.minecraft.behavior.1.16.200.items.events.remove_mob_effect", "$id": "blockception.minecraft.behavior.items.events.remove_mob_effect",
"title": "Remove Mob Effect", "title": "Remove Mob Effect",
"description": "UNDOCUMENTED", "description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",

View File

@@ -1,5 +1,5 @@
{ {
"$id": "blockception.minecraft.behavior.1.16.200.items.events.shoot", "$id": "blockception.minecraft.behavior.items.events.shoot",
"title": "Shoot", "title": "Shoot",
"description": "UNDOCUMENTED", "description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",

View File

@@ -1,5 +1,5 @@
{ {
"$id": "blockception.minecraft.behavior.1.16.200.items.events.swing", "$id": "blockception.minecraft.behavior.items.events.swing",
"title": "Swing", "title": "Swing",
"description": "UNDOCUMENTED", "description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",

View File

@@ -1,5 +1,5 @@
{ {
"$id": "blockception.minecraft.behavior.1.16.200.items.events.teleport", "$id": "blockception.minecraft.behavior.items.events.teleport",
"title": "Teleport", "title": "Teleport",
"description": "UNDOCUMENTED", "description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",

View File

@@ -1,5 +1,5 @@
{ {
"$id": "blockception.minecraft.behavior.1.16.200.items.events.transform_item", "$id": "blockception.minecraft.behavior.items.events.transform_item",
"title": "Transform Item", "title": "Transform Item",
"description": "UNDOCUMENTED", "description": "UNDOCUMENTED",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",

View File

@@ -53,6 +53,7 @@
"minecraft:hand_equipped": { "$ref": "./components/hand_equipped.json" }, "minecraft:hand_equipped": { "$ref": "./components/hand_equipped.json" },
"minecraft:icon": { "$ref": "./components/icon.json" }, "minecraft:icon": { "$ref": "./components/icon.json" },
"minecraft:knockback_resistance": { "$ref": "./components/knockback_resistance.json" }, "minecraft:knockback_resistance": { "$ref": "./components/knockback_resistance.json" },
"minecraft:max_damage": { "$ref": "./components/max_damage.json" },
"minecraft:max_stack_size": { "$ref": "./components/max_stack_size.json" }, "minecraft:max_stack_size": { "$ref": "./components/max_stack_size.json" },
"minecraft:on_use_on": { "$ref": "./components/on_use_on.json" }, "minecraft:on_use_on": { "$ref": "./components/on_use_on.json" },
"minecraft:on_use": { "$ref": "./components/on_use.json" }, "minecraft:on_use": { "$ref": "./components/on_use.json" },
@@ -60,6 +61,7 @@
"minecraft:render_offsets": { "$ref": "./components/render_offsets.json" }, "minecraft:render_offsets": { "$ref": "./components/render_offsets.json" },
"minecraft:repairable": { "$ref": "./components/repairable.json" }, "minecraft:repairable": { "$ref": "./components/repairable.json" },
"minecraft:shooter": { "$ref": "./components/shooter.json" }, "minecraft:shooter": { "$ref": "./components/shooter.json" },
"minecraft:stacked_by_data": { "$ref": "./components/knockback_resistance.json" },
"minecraft:throwable": { "$ref": "./components/throwable.json" }, "minecraft:throwable": { "$ref": "./components/throwable.json" },
"minecraft:use_duration": { "$ref": "./components/use_duration.json" }, "minecraft:use_duration": { "$ref": "./components/use_duration.json" },
"minecraft:weapon": { "$ref": "./components/weapon.json" }, "minecraft:weapon": { "$ref": "./components/weapon.json" },

View File

@@ -1,5 +1,5 @@
{ {
"$id": "blockception.minecraft.behavior.1.16.200.items", "$id": "blockception.minecraft.behavior.items",
"description": "Minecraft items 1.16.200", "description": "Minecraft items 1.16.200",
"required": ["format_version", "minecraft:item"], "required": ["format_version", "minecraft:item"],
"title": "Item", "title": "Item",

View File

@@ -7,8 +7,8 @@
"function": { "function": {
"type": "string", "type": "string",
"enum": [ "enum": [
"enchant_random_gear",
"enchant_book_for_trading", "enchant_book_for_trading",
"enchant_random_gear",
"enchant_randomly", "enchant_randomly",
"enchant_with_levels", "enchant_with_levels",
"exploration_map", "exploration_map",
@@ -17,18 +17,41 @@
"looting_enchant", "looting_enchant",
"random_aux_value", "random_aux_value",
"random_block_state", "random_block_state",
"random_dye",
"set_actor_id", "set_actor_id",
"set_banner_details", "set_banner_details",
"set_book_contents", "set_book_contents",
"set_count", "set_count",
"set_damage", "set_damage",
"set_data",
"set_data_from_color_index", "set_data_from_color_index",
"trader_material_type", "set_data",
"random_dye",
"set_lore", "set_lore",
"set_name", "set_name",
"specific_enchants" "specific_enchants",
"trader_material_type",
"minecraft:enchant_book_for_trading",
"minecraft:enchant_random_gear",
"minecraft:enchant_randomly",
"minecraft:enchant_with_levels",
"minecraft:exploration_map",
"minecraft:fill_container",
"minecraft:furnace_smelt",
"minecraft:looting_enchant",
"minecraft:random_aux_value",
"minecraft:random_block_state",
"minecraft:random_dye",
"minecraft:set_actor_id",
"minecraft:set_banner_details",
"minecraft:set_book_contents",
"minecraft:set_count",
"minecraft:set_damage",
"minecraft:set_data_from_color_index",
"minecraft:set_data",
"minecraft:set_lore",
"minecraft:set_name",
"minecraft:specific_enchants",
"minecraft:trader_material_type"
] ]
}, },
"add": { "add": {