1006 lines
12 KiB
Markdown
1006 lines
12 KiB
Markdown
---
|
|
title: Vanilla Usage Components - Full
|
|
category: Documentation
|
|
mentions:
|
|
- MedicalJewel105
|
|
hidden: true
|
|
---
|
|
|
|
This page was created with [Wiki Content Generator](https://github.com/Bedrock-OSS/bedrock-wiki-content-generator). If there are issues, contact us on [Bedrock OSS](https://discord.gg/XjV87YN) Discord server.
|
|
Includes all examples. Namespace `minecraft` and some formatting have been removed to make the page load quickly. *Last updated for 1.20.10*
|
|
|
|
## block
|
|
|
|
camera
|
|
|
|
```json
|
|
"minecraft:block": "minecraft:camera"
|
|
```
|
|
|
|
## camera
|
|
|
|
camera
|
|
|
|
```json
|
|
"minecraft:camera": {
|
|
"black_bars_duration": 0.2,
|
|
"black_bars_screen_ratio": 0.08,
|
|
"shutter_duration": 0.2,
|
|
"picture_duration": 1.0,
|
|
"slide_away_duration": 0.2
|
|
}
|
|
```
|
|
|
|
## foil
|
|
|
|
appleEnchanted
|
|
|
|
```json
|
|
"minecraft:foil": true
|
|
```
|
|
|
|
golden_apple
|
|
|
|
```json
|
|
"minecraft:foil": false
|
|
```
|
|
|
|
## food
|
|
|
|
apple
|
|
|
|
```json
|
|
"minecraft:food": {
|
|
"nutrition": 4,
|
|
"saturation_modifier": "low"
|
|
}
|
|
```
|
|
|
|
appleEnchanted
|
|
|
|
```json
|
|
"minecraft:food": {
|
|
"nutrition": 4,
|
|
"saturation_modifier": "supernatural",
|
|
"can_always_eat": true,
|
|
"effects": [
|
|
{
|
|
"name": "regeneration",
|
|
"chance": 1.0,
|
|
"duration": 30,
|
|
"amplifier": 4
|
|
},
|
|
{
|
|
"name": "absorption",
|
|
"chance": 1.0,
|
|
"duration": 120,
|
|
"amplifier": 3
|
|
},
|
|
{
|
|
"name": "resistance",
|
|
"chance": 1.0,
|
|
"duration": 300,
|
|
"amplifier": 0
|
|
},
|
|
{
|
|
"name": "fire_resistance",
|
|
"chance": 1.0,
|
|
"duration": 300,
|
|
"amplifier": 0
|
|
}
|
|
]
|
|
}
|
|
```
|
|
|
|
baked_potato
|
|
|
|
```json
|
|
"minecraft:food": {
|
|
"nutrition": 5,
|
|
"saturation_modifier": "normal"
|
|
}
|
|
```
|
|
|
|
beef
|
|
|
|
```json
|
|
"minecraft:food": {
|
|
"nutrition": 3,
|
|
"saturation_modifier": "low"
|
|
}
|
|
```
|
|
|
|
beetroot
|
|
|
|
```json
|
|
"minecraft:food": {
|
|
"nutrition": 1,
|
|
"saturation_modifier": "normal"
|
|
}
|
|
```
|
|
|
|
beetroot_soup
|
|
|
|
```json
|
|
"minecraft:food": {
|
|
"nutrition": 6,
|
|
"saturation_modifier": "normal",
|
|
"using_converts_to": "bowl"
|
|
}
|
|
```
|
|
|
|
bread
|
|
|
|
```json
|
|
"minecraft:food": {
|
|
"nutrition": 5,
|
|
"saturation_modifier": "normal"
|
|
}
|
|
```
|
|
|
|
carrot
|
|
|
|
```json
|
|
"minecraft:food": {
|
|
"nutrition": 3,
|
|
"saturation_modifier": "normal"
|
|
}
|
|
```
|
|
|
|
chicken
|
|
|
|
```json
|
|
"minecraft:food": {
|
|
"nutrition": 2,
|
|
"saturation_modifier": "low",
|
|
"effects": [
|
|
{
|
|
"name": "hunger",
|
|
"chance": 0.3,
|
|
"duration": 30,
|
|
"amplifier": 0
|
|
}
|
|
]
|
|
}
|
|
```
|
|
|
|
chorus_fruit
|
|
|
|
```json
|
|
"minecraft:food": {
|
|
"nutrition": 4,
|
|
"saturation_modifier": "low",
|
|
"on_use_action": "chorus_teleport",
|
|
"on_use_range": [
|
|
8,
|
|
8,
|
|
8
|
|
],
|
|
"cooldown_type": "chorusfruit",
|
|
"cooldown_time": 20,
|
|
"can_always_eat": true
|
|
}
|
|
```
|
|
|
|
clownfish
|
|
|
|
```json
|
|
"minecraft:food": {
|
|
"nutrition": 1,
|
|
"saturation_modifier": "poor"
|
|
}
|
|
```
|
|
|
|
cooked_beef
|
|
|
|
```json
|
|
"minecraft:food": {
|
|
"nutrition": 8,
|
|
"saturation_modifier": "good"
|
|
}
|
|
```
|
|
|
|
cooked_chicken
|
|
|
|
```json
|
|
"minecraft:food": {
|
|
"nutrition": 6,
|
|
"saturation_modifier": "normal"
|
|
}
|
|
```
|
|
|
|
cooked_fish
|
|
|
|
```json
|
|
"minecraft:food": {
|
|
"nutrition": 5,
|
|
"saturation_modifier": "normal"
|
|
}
|
|
```
|
|
|
|
cooked_porkchop
|
|
|
|
```json
|
|
"minecraft:food": {
|
|
"nutrition": 8,
|
|
"saturation_modifier": "good"
|
|
}
|
|
```
|
|
|
|
cooked_rabbit
|
|
|
|
```json
|
|
"minecraft:food": {
|
|
"nutrition": 5,
|
|
"saturation_modifier": "normal"
|
|
}
|
|
```
|
|
|
|
cooked_salmon
|
|
|
|
```json
|
|
"minecraft:food": {
|
|
"nutrition": 6,
|
|
"saturation_modifier": "good"
|
|
}
|
|
```
|
|
|
|
cookie
|
|
|
|
```json
|
|
"minecraft:food": {
|
|
"nutrition": 2,
|
|
"saturation_modifier": "poor"
|
|
}
|
|
```
|
|
|
|
dried_kelp
|
|
|
|
```json
|
|
"minecraft:food": {
|
|
"nutrition": 1,
|
|
"saturation_modifier": "poor"
|
|
}
|
|
```
|
|
|
|
fish
|
|
|
|
```json
|
|
"minecraft:food": {
|
|
"nutrition": 2,
|
|
"saturation_modifier": "poor"
|
|
}
|
|
```
|
|
|
|
glow_berries
|
|
|
|
```json
|
|
"minecraft:food": {
|
|
"nutrition": 2,
|
|
"saturation_modifier": "low",
|
|
"is_meat": false
|
|
}
|
|
```
|
|
|
|
golden_apple
|
|
|
|
```json
|
|
"minecraft:food": {
|
|
"nutrition": 4,
|
|
"saturation_modifier": "supernatural",
|
|
"can_always_eat": true,
|
|
"effects": [
|
|
{
|
|
"name": "regeneration",
|
|
"chance": 1.0,
|
|
"duration": 5,
|
|
"amplifier": 1
|
|
},
|
|
{
|
|
"name": "absorption",
|
|
"chance": 1.0,
|
|
"duration": 120,
|
|
"amplifier": 0
|
|
}
|
|
]
|
|
}
|
|
```
|
|
|
|
golden_carrot
|
|
|
|
```json
|
|
"minecraft:food": {
|
|
"nutrition": 6,
|
|
"saturation_modifier": "supernatural"
|
|
}
|
|
```
|
|
|
|
honey_bottle
|
|
|
|
```json
|
|
"minecraft:food": {
|
|
"nutrition": 6,
|
|
"saturation_modifier": "poor",
|
|
"can_always_eat": true,
|
|
"using_converts_to": "glass_bottle",
|
|
"remove_effects": [
|
|
"poison"
|
|
]
|
|
}
|
|
```
|
|
|
|
melon
|
|
|
|
```json
|
|
"minecraft:food": {
|
|
"nutrition": 2,
|
|
"saturation_modifier": "low"
|
|
}
|
|
```
|
|
|
|
mushroom_stew
|
|
|
|
```json
|
|
"minecraft:food": {
|
|
"nutrition": 6,
|
|
"saturation_modifier": "normal",
|
|
"using_converts_to": "bowl"
|
|
}
|
|
```
|
|
|
|
muttonCooked
|
|
|
|
```json
|
|
"minecraft:food": {
|
|
"nutrition": 6,
|
|
"saturation_modifier": "good"
|
|
}
|
|
```
|
|
|
|
muttonRaw
|
|
|
|
```json
|
|
"minecraft:food": {
|
|
"nutrition": 2,
|
|
"saturation_modifier": "low"
|
|
}
|
|
```
|
|
|
|
poisonous_potato
|
|
|
|
```json
|
|
"minecraft:food": {
|
|
"nutrition": 2,
|
|
"saturation_modifier": "low",
|
|
"effects": [
|
|
{
|
|
"name": "poison",
|
|
"chance": 0.6,
|
|
"duration": 5,
|
|
"amplifier": 0
|
|
}
|
|
]
|
|
}
|
|
```
|
|
|
|
porkchop
|
|
|
|
```json
|
|
"minecraft:food": {
|
|
"nutrition": 3,
|
|
"saturation_modifier": "low"
|
|
}
|
|
```
|
|
|
|
potato
|
|
|
|
```json
|
|
"minecraft:food": {
|
|
"nutrition": 1,
|
|
"saturation_modifier": "low"
|
|
}
|
|
```
|
|
|
|
pufferfish
|
|
|
|
```json
|
|
"minecraft:food": {
|
|
"nutrition": 1,
|
|
"saturation_modifier": "poor",
|
|
"effects": [
|
|
{
|
|
"name": "poison",
|
|
"duration": 60,
|
|
"amplifier": 1
|
|
},
|
|
{
|
|
"name": "nausea",
|
|
"duration": 15,
|
|
"amplifier": 1
|
|
},
|
|
{
|
|
"name": "hunger",
|
|
"duration": 15,
|
|
"amplifier": 2
|
|
}
|
|
]
|
|
}
|
|
```
|
|
|
|
pumpkin_pie
|
|
|
|
```json
|
|
"minecraft:food": {
|
|
"nutrition": 8,
|
|
"saturation_modifier": "low"
|
|
}
|
|
```
|
|
|
|
rabbit
|
|
|
|
```json
|
|
"minecraft:food": {
|
|
"nutrition": 3,
|
|
"saturation_modifier": "low"
|
|
}
|
|
```
|
|
|
|
rabbit_stew
|
|
|
|
```json
|
|
"minecraft:food": {
|
|
"nutrition": 10,
|
|
"saturation_modifier": "normal",
|
|
"using_converts_to": "bowl"
|
|
}
|
|
```
|
|
|
|
rotten_flesh
|
|
|
|
```json
|
|
"minecraft:food": {
|
|
"nutrition": 4,
|
|
"saturation_modifier": "poor",
|
|
"effects": [
|
|
{
|
|
"name": "hunger",
|
|
"chance": 0.8,
|
|
"duration": 30,
|
|
"amplifier": 0
|
|
}
|
|
]
|
|
}
|
|
```
|
|
|
|
salmon
|
|
|
|
```json
|
|
"minecraft:food": {
|
|
"nutrition": 2,
|
|
"saturation_modifier": "poor"
|
|
}
|
|
```
|
|
|
|
spider_eye
|
|
|
|
```json
|
|
"minecraft:food": {
|
|
"nutrition": 2,
|
|
"saturation_modifier": "good",
|
|
"effects": [
|
|
{
|
|
"name": "poison",
|
|
"chance": 1.0,
|
|
"duration": 5,
|
|
"amplifier": 0
|
|
}
|
|
]
|
|
}
|
|
```
|
|
|
|
suspicious_stew
|
|
|
|
```json
|
|
"minecraft:food": {
|
|
"nutrition": 6,
|
|
"saturation_modifier": "normal",
|
|
"using_converts_to": "bowl",
|
|
"on_use_action": "suspicious_stew_effect"
|
|
}
|
|
```
|
|
|
|
sweet_berries
|
|
|
|
```json
|
|
"minecraft:food": {
|
|
"nutrition": 2,
|
|
"saturation_modifier": "low",
|
|
"is_meat": false
|
|
}
|
|
```
|
|
|
|
## hand_equipped
|
|
|
|
appleEnchanted
|
|
|
|
```json
|
|
"minecraft:hand_equipped": false
|
|
```
|
|
|
|
## max_damage
|
|
|
|
clownfish
|
|
|
|
```json
|
|
"minecraft:max_damage": 0
|
|
```
|
|
|
|
cooked_fish
|
|
|
|
```json
|
|
"minecraft:max_damage": 0
|
|
```
|
|
|
|
cooked_salmon
|
|
|
|
```json
|
|
"minecraft:max_damage": 0
|
|
```
|
|
|
|
fish
|
|
|
|
```json
|
|
"minecraft:max_damage": 0
|
|
```
|
|
|
|
pufferfish
|
|
|
|
```json
|
|
"minecraft:max_damage": 0
|
|
```
|
|
|
|
salmon
|
|
|
|
```json
|
|
"minecraft:max_damage": 0
|
|
```
|
|
|
|
## max_stack_size
|
|
|
|
beetroot_soup
|
|
|
|
```json
|
|
"minecraft:max_stack_size": 1
|
|
```
|
|
|
|
honey_bottle
|
|
|
|
```json
|
|
"minecraft:max_stack_size": 16
|
|
```
|
|
|
|
mushroom_stew
|
|
|
|
```json
|
|
"minecraft:max_stack_size": 1
|
|
```
|
|
|
|
rabbit_stew
|
|
|
|
```json
|
|
"minecraft:max_stack_size": 1
|
|
```
|
|
|
|
suspicious_stew
|
|
|
|
```json
|
|
"minecraft:max_stack_size": 1
|
|
```
|
|
|
|
## seed
|
|
|
|
beetroot_seeds
|
|
|
|
```json
|
|
"minecraft:seed": {
|
|
"crop_result": "beetroot"
|
|
}
|
|
```
|
|
|
|
carrot
|
|
|
|
```json
|
|
"minecraft:seed": {
|
|
"crop_result": "carrots"
|
|
}
|
|
```
|
|
|
|
glow_berries
|
|
|
|
```json
|
|
"minecraft:seed": {
|
|
"crop_result": "cave_vines",
|
|
"plant_at": [
|
|
"cave_vines",
|
|
"cave_vines_head_with_berries"
|
|
],
|
|
"plant_at_any_solid_surface": true,
|
|
"plant_at_face": "DOWN"
|
|
}
|
|
```
|
|
|
|
melon_seeds
|
|
|
|
```json
|
|
"minecraft:seed": {
|
|
"crop_result": "melon_stem"
|
|
}
|
|
```
|
|
|
|
nether_wart
|
|
|
|
```json
|
|
"minecraft:seed": {
|
|
"plant_at": "soul_sand",
|
|
"crop_result": "nether_wart"
|
|
}
|
|
```
|
|
|
|
pitcher_pod
|
|
|
|
```json
|
|
"minecraft:seed": {
|
|
"crop_result": "pitcher_crop"
|
|
}
|
|
```
|
|
|
|
potato
|
|
|
|
```json
|
|
"minecraft:seed": {
|
|
"crop_result": "potatoes"
|
|
}
|
|
```
|
|
|
|
pumpkin_seeds
|
|
|
|
```json
|
|
"minecraft:seed": {
|
|
"crop_result": "pumpkin_stem"
|
|
}
|
|
```
|
|
|
|
sweet_berries
|
|
|
|
```json
|
|
"minecraft:seed": {
|
|
"crop_result": "sweet_berry_bush",
|
|
"plant_at": [
|
|
"farmland",
|
|
"grass",
|
|
"dirt",
|
|
"podzol",
|
|
"moss_block",
|
|
"mycelium",
|
|
"mud",
|
|
"muddy_mangrove_roots",
|
|
"dirt_with_roots"
|
|
]
|
|
}
|
|
```
|
|
|
|
torchflower_seeds
|
|
|
|
```json
|
|
"minecraft:seed": {
|
|
"crop_result": "torchflower_crop"
|
|
}
|
|
```
|
|
|
|
wheat_seeds
|
|
|
|
```json
|
|
"minecraft:seed": {
|
|
"crop_result": "wheat"
|
|
}
|
|
```
|
|
|
|
## stacked_by_data
|
|
|
|
appleEnchanted
|
|
|
|
```json
|
|
"minecraft:stacked_by_data": true
|
|
```
|
|
|
|
clownfish
|
|
|
|
```json
|
|
"minecraft:stacked_by_data": true
|
|
```
|
|
|
|
cooked_fish
|
|
|
|
```json
|
|
"minecraft:stacked_by_data": true
|
|
```
|
|
|
|
cooked_salmon
|
|
|
|
```json
|
|
"minecraft:stacked_by_data": true
|
|
```
|
|
|
|
fish
|
|
|
|
```json
|
|
"minecraft:stacked_by_data": true
|
|
```
|
|
|
|
golden_apple
|
|
|
|
```json
|
|
"minecraft:stacked_by_data": true
|
|
```
|
|
|
|
pufferfish
|
|
|
|
```json
|
|
"minecraft:stacked_by_data": true
|
|
```
|
|
|
|
salmon
|
|
|
|
```json
|
|
"minecraft:stacked_by_data": true
|
|
```
|
|
|
|
## use_duration
|
|
|
|
apple
|
|
|
|
```json
|
|
"minecraft:use_duration": 32
|
|
```
|
|
|
|
appleEnchanted
|
|
|
|
```json
|
|
"minecraft:use_duration": 32
|
|
```
|
|
|
|
baked_potato
|
|
|
|
```json
|
|
"minecraft:use_duration": 32
|
|
```
|
|
|
|
beef
|
|
|
|
```json
|
|
"minecraft:use_duration": 32
|
|
```
|
|
|
|
beetroot
|
|
|
|
```json
|
|
"minecraft:use_duration": 32
|
|
```
|
|
|
|
beetroot_soup
|
|
|
|
```json
|
|
"minecraft:use_duration": 32
|
|
```
|
|
|
|
bread
|
|
|
|
```json
|
|
"minecraft:use_duration": 32
|
|
```
|
|
|
|
camera
|
|
|
|
```json
|
|
"minecraft:use_duration": 100000
|
|
```
|
|
|
|
carrot
|
|
|
|
```json
|
|
"minecraft:use_duration": 32
|
|
```
|
|
|
|
chicken
|
|
|
|
```json
|
|
"minecraft:use_duration": 32
|
|
```
|
|
|
|
chorus_fruit
|
|
|
|
```json
|
|
"minecraft:use_duration": 32
|
|
```
|
|
|
|
clownfish
|
|
|
|
```json
|
|
"minecraft:use_duration": 32
|
|
```
|
|
|
|
cooked_beef
|
|
|
|
```json
|
|
"minecraft:use_duration": 32
|
|
```
|
|
|
|
cooked_chicken
|
|
|
|
```json
|
|
"minecraft:use_duration": 32
|
|
```
|
|
|
|
cooked_fish
|
|
|
|
```json
|
|
"minecraft:use_duration": 32
|
|
```
|
|
|
|
cooked_porkchop
|
|
|
|
```json
|
|
"minecraft:use_duration": 32
|
|
```
|
|
|
|
cooked_rabbit
|
|
|
|
```json
|
|
"minecraft:use_duration": 32
|
|
```
|
|
|
|
cooked_salmon
|
|
|
|
```json
|
|
"minecraft:use_duration": 32
|
|
```
|
|
|
|
cookie
|
|
|
|
```json
|
|
"minecraft:use_duration": 32
|
|
```
|
|
|
|
dried_kelp
|
|
|
|
```json
|
|
"minecraft:use_duration": 16
|
|
```
|
|
|
|
fish
|
|
|
|
```json
|
|
"minecraft:use_duration": 32
|
|
```
|
|
|
|
glow_berries
|
|
|
|
```json
|
|
"minecraft:use_duration": 32
|
|
```
|
|
|
|
golden_apple
|
|
|
|
```json
|
|
"minecraft:use_duration": 32
|
|
```
|
|
|
|
golden_carrot
|
|
|
|
```json
|
|
"minecraft:use_duration": 32
|
|
```
|
|
|
|
honey_bottle
|
|
|
|
```json
|
|
"minecraft:use_duration": 40
|
|
```
|
|
|
|
melon
|
|
|
|
```json
|
|
"minecraft:use_duration": 32
|
|
```
|
|
|
|
mushroom_stew
|
|
|
|
```json
|
|
"minecraft:use_duration": 32
|
|
```
|
|
|
|
muttonCooked
|
|
|
|
```json
|
|
"minecraft:use_duration": 32
|
|
```
|
|
|
|
muttonRaw
|
|
|
|
```json
|
|
"minecraft:use_duration": 32
|
|
```
|
|
|
|
poisonous_potato
|
|
|
|
```json
|
|
"minecraft:use_duration": 32
|
|
```
|
|
|
|
porkchop
|
|
|
|
```json
|
|
"minecraft:use_duration": 32
|
|
```
|
|
|
|
potato
|
|
|
|
```json
|
|
"minecraft:use_duration": 32
|
|
```
|
|
|
|
pufferfish
|
|
|
|
```json
|
|
"minecraft:use_duration": 32
|
|
```
|
|
|
|
pumpkin_pie
|
|
|
|
```json
|
|
"minecraft:use_duration": 32
|
|
```
|
|
|
|
rabbit
|
|
|
|
```json
|
|
"minecraft:use_duration": 32
|
|
```
|
|
|
|
rabbit_stew
|
|
|
|
```json
|
|
"minecraft:use_duration": 32
|
|
```
|
|
|
|
rotten_flesh
|
|
|
|
```json
|
|
"minecraft:use_duration": 32
|
|
```
|
|
|
|
salmon
|
|
|
|
```json
|
|
"minecraft:use_duration": 32
|
|
```
|
|
|
|
spider_eye
|
|
|
|
```json
|
|
"minecraft:use_duration": 32
|
|
```
|
|
|
|
suspicious_stew
|
|
|
|
```json
|
|
"minecraft:use_duration": 32
|
|
```
|
|
|
|
sweet_berries
|
|
|
|
```json
|
|
"minecraft:use_duration": 32
|
|
```
|
|
|