본문으로 건너뛰기

블록 컴포넌트 레퍼런스 (3/8)

MS Learn(MicrosoftDocs/minecraft-creator a9fd1c0, CC BY 4.0)의 레퍼런스를 발췌한 쪽이다. 원문의 상대 링크는 제거했다.

(출처: ms-learn, creator/Reference/Content/BlockReference/Examples/BlockComponents/minecraftBlock_geometry.md)

Block Components Documentation - minecraft:geometry​

The description identifier of the geometry to use to render this block. This identifier must either match an existing geometry identifier in any of the loaded resource packs or be one of the currently supported Vanilla identifiers: "minecraft:geometry.full_block" or "minecraft:geometry.cross".

[!Note] From 1.21.80 onward, when using a minecraft:geometry component or minecraft:material_instances component, you must include both.

[!Note] In format_version 1.26.0 and higher, the minecraft:geometry.full_block identifier renders its DOWN face rotated 180° to match non-data-driven full blocks and Java Edition. The new minecraft:geometry.full_block_v1 identifier preserves the original orientation. Blocks using full_block with format_version older than 1.26.0 continue to render unchanged.

[!Note] Fixed in 1.26.10: rotation for blocks displayed in item frames using minecraft:geometry.full_block is now correct for format_version >= 1.26.0.

[!Note] This item requires a format version of at least 1.19.40.

Alternate Simple Representations​

This item can also be represented as a String.

Geometry Properties​

NameDefault ValueTypeDescriptionExample Values
bone_visibilitynot setKeyed collection of boolean valuesAn optional list of true/false values that define the visibility of individual bones in the geometry file.
cullingnot setStringAn optional identifer of a culling definition.
culling_layerminecraft:culling_layer.undefinedString[Experimental] - A string that allows culling rule to group multiple blocks together when comparing them.
culling_shapeminecraft:emptyStringThe voxel shape used for culling adjacent block faces.
identifiernot setStringSpecifies the geometry description identifier to use to render this block.Block Chiseled Packed Ice: "minecraft:geometry.full_block"
n_way_visual_rotationnot setStringThe name of a block state that drives visual-only rotation of this block.
uv_locknot setStringA Boolean locking UV orientation of all bones in the geometry, or an array of strings locking UV orientation of specific bones in the geometry.
bone_visibility​

An optional list of true/false values that define the visibility of individual bones in the geometry file. In order to set up 'bone_visibility', the geometry file name must be entered as an identifier. After the identifier has been specified, bone_visibility can be defined based on the names of the bones in the specified geometry file on a true/false basis. Note that all bones default to 'true,' so bones should only be defined if they are being set to 'false.' Including bones set to 'true' will work the same as the default. This item requires a format version of at least 1.19.80. Added to the geometry component in 1.19.80 as a replacement for the previous part_visibility component. As of 1.20.10, bone visibility values support Molang expressions, restoring functionality closer to the original experimental part_visibility component.

culling​

An optional identifer of a culling definition. The culling definition is used to determine which faces of the block should be culled when rendering. The culling definition can be used to optimize rendering performance by reducing the number of faces that need to be rendered. This identifier must match an existing culling definition in any of the currently loaded resource packs. This item requires a format version of at least 1.20.60. Data-driven culling rules are referenced by this identifier and were added in 1.20.60.

culling_layer​

[Experimental] - A string that allows culling rule to group multiple blocks together when comparing them. When using the minecraft namespace, the only allowed culling layer identifiers are : "minecraft:culling_layer.undefined" or "minecraft:culling_layer.leaves". Additionally, the feature is currently only usable behind the "upcoming creator features" toggle. When using no namespaces or a custom one, the names must start and end with an alpha-numeric character.

culling_shape​

The voxel shape used for culling adjacent block faces. Voxel shapes work together with culling rules and will not function if there is no culling rule defined for the block. Only adjacent blocks with voxel shapes will occlude using this shape. Blocks using "minecraft:geometry.full_block" always use the unit cube shape and will ignore custom shapes if specified. This item requires a format version of at least 1.26.30. Available for custom blocks in format version 1.26.30. Applying non-unit-cube culling shapes to Vanilla blocks (fences, bells, slabs, etc.) still requires the Voxel Shapes experimental toggle. When using the minecraft namespace, only minecraft:empty and minecraft:unit_cube are available; custom namespaces must start and end with an alpha-numeric character.

identifier​

Specifies the geometry description identifier to use to render this block. This identifier must match an existing geometry identifier in any of the currently loaded resource packs. The reserved identifier minecraft:geometry.full_cube was added in 1.20.60 to provide the most efficient rendering path for 1x1x1 blocks.

n_way_visual_rotation​

The name of a block state that drives visual-only rotation of this block. The renderer reads the current value of the named state at runtime and rotates the geometry accordingly without changing collision or interaction. Supported states are minecraft:cardinal_direction, minecraft:sixteen_way_rotation, and any custom integer state. This item requires a format version of at least 1.26.30.

uv_lock​

A Boolean locking UV orientation of all bones in the geometry, or an array of strings locking UV orientation of specific bones in the geometry. For performance reasons it is recommended to use the Boolean. Note that for cubes using Box UVs, rather than Per-face UVs, uv_lock is only supported if the cube faces are square. This item requires a format version of at least 1.21.100. With UV locking, a single geometry can be reused for multiple texture rotations without authoring a new geometry per rotation.

Samples​

Block Fabricator​

"minecraft:geometry": "geometry.mikeamm_gwve_fabricator"

Block Gray Ore​

"minecraft:geometry": "geometry.mikeamm_gwve_gray_ore"

Block Frond Top​

"minecraft:geometry": "geometry.frond_top"

Block Palm Leave​

"minecraft:geometry": "geometry.palm_leave"

Block White Sand​

"minecraft:geometry": "geometry.white_sand"

Tuna Roll​

"minecraft:geometry": {
"identifier": "geometry.sushi",
"culling": "test:sushi_cull"
}

Blue Bubble Fish​

"minecraft:geometry": {
"identifier": "geometry.bubble_fish",
"bone_visibility": {
"bb_main": true,
"fish": true
}
}

California Roll​

"minecraft:geometry": "geometry.sushi"

Block Chiseled Packed Ice​

"minecraft:geometry": {
"identifier": "minecraft:geometry.full_block"
}

(출처: ms-learn, creator/Reference/Content/BlockReference/Examples/BlockComponents/minecraftBlock_instrument_sound.md)

Block Components Documentation - minecraft:instrument_sound​

[Note: This component is currently experimental]. This defines what sound will play based on above or below relative position to a note block. An instrument can be assigned to the "up" and "down" block faces. If either face is undefined, or the component is omitted, it will use its default value ("up" = "note.harp" and "down" = "note.none"). While both faces do not need to be defined, at least one face needs to be defined for the component to be valid. "note.none" can be used to specify no sound for a face.

Instrument Sound Properties​

NameDefault ValueTypeDescriptionExample Values
downnote.noneDown choicesThe instrument sound that plays when the note block is above this block (the block's down face is exposed to the note block). Use "note.none" to specify no sound for this face.
upnote.harpUp choicesThe instrument sound that plays when the note block is below this block (the block's up face is exposed to the note block). Use "note.none" to specify no sound for this face.Block Black Concrete Double Slab: "note.bd", Block Black Wool Double Slab: "note.guitar"
Down choices​
ValueTitleDescription
note.harpHarp Note
note.bdBd Note
note.snareSnare Note
note.hatHat Note
note.bassattackBassattack Note
note.fluteFlute Note
note.bellBell Note
note.guitarGuitar Note
note.chimeChime Note
note.xylophoneXylophone Note
note.iron_xylophoneIron Xylophone Note
note.cow_bellCow Bell Note
note.didgeridooDidgeridoo Note
note.bitBit Note
note.banjoBanjo Note
note.plingPling Note
note.trumpetTrumpet Note
note.trumpet_exposedTrumpet Exposed Note
note.trumpet_weatheredTrumpet Weathered Note
note.trumpet_oxidizedTrumpet Oxidized Note
note.zombieZombie Note
note.skeletonSkeleton Note
note.creeperCreeper Note
note.enderdragonEnderdragon Note
note.witherskeletonWitherskeleton Note
note.piglinPiglin Note
note.noneNone Note

Samples​

Instrument Defined For Both Faces​

"minecraft:instrument_sound": {
"up": "note.bassattack",
"down": "note.bit"
}

Instrument Defined For Up Face​

"minecraft:instrument_sound": {
"up": "note.xylophone"
}

Instrument Defined For Down Face​

"minecraft:instrument_sound": {
"down": "note.banjo"
}

Instrument Defined With No Sound For Up Face​

"minecraft:instrument_sound": {
"up": "note.none",
"down": "note.banjo"
}

Block Black Concrete Double Slab​

"minecraft:instrument_sound": {
"up": "note.bd"
}

Block Black Wool Double Slab​

"minecraft:instrument_sound": {
"up": "note.guitar"
}

(출처: ms-learn, creator/Reference/Content/BlockReference/Examples/BlockComponents/minecraftBlock_item_visual.md)

Block Components Documentation - minecraft:item_visual​

The description identifier of the geometry and material used to render the item of this block.

[!Note] Fixed in 1.26.10: a client crash on world load caused by an out-of-bounds minecraft:geometry value inside minecraft:item_visual no longer occurs.

[!Note] This item requires a format version of at least 1.21.60.

Block Item Visual Properties​

NameDefault ValueTypeDescription
geometrynot setStringThe "minecraft:geometry" component of the item.
geometry (Geometry)not setGeometry (Geometry) item
material_instancesnot setObjectThe "minecraft:material_instances" component of the item. Value must have at most 64 items.
Geometry (Geometry)​

Geometry Properties​

JSON path: geometry

NameDefault ValueTypeDescription
bone_visibility{}ObjectA JSON object that contains a list of key/value pairs that map from bone name in the specified geometry file (key) to a Molang expression that tells whether the bone should be visible or not (value).
bone_visibility (as Keyed collection of boolean values)not setKeyed collection of boolean values
cullingStringWhich block_culling .json file to use when rendering this block. Value must have at most 256 items.
culling_layernot setStringA string that allows culling rule to group multiple blocks together when comparing them.
culling_shapeStringCurrently only available with the VoxelShape experiment on.
identifiernot setStringThe description identifier of the geometry to use to render this block.
n_way_visual_rotationnot setn Way Visual Rotation itemOptional object that maps x/y/z axes to block state names that drive visual-only geometry rotation.
uv_lockfalseObjectA field that is either a Boolean or an array of strings, max size 64 strings.

bone_visibility​

A JSON object that contains a list of key/value pairs that map from bone name in the specified geometry file (key) to a Molang expression that tells whether the bone should be visible or not (value). The expression is limited to using the "query.block_state()" query. When using "bone_visibility" in geometry components in the "permutations" section, you must also have a default version of the geometry component with "bone_visibility" in the "components" section. Value must have at most 64 items.

culling_layer​

A string that allows culling rule to group multiple blocks together when comparing them. When using the minecraft namespace, the only allowed culling layer identifiers are : "minecraft:culling_layer.undefined" or "minecraft:culling_layer.leaves". When using no namespaces or a custom one, the names must start and end with an alpha-numeric character. Value must have at least 1 items. Value must have at most 256 items. Value must match a regular expression pattern of "^(?:minecraft:culling_layer.undefined|minecraft:culling_layer.leaves|(?!minecraft:)[a-z0-9].*[a-z0-9])$".

culling_shape​

Currently only available with the VoxelShape experiment on. The voxel shape used for culling adjacent block faces. Voxel shapes work together with culling rules and will not function if there is no culling rule defined for the block. Only adjacent blocks with voxel shapes will occlude using this shape. Blocks using "minecraft:geometry.full_block" always use the unit cube shape and will ignore custom shapes if specified. When using the minecraft namespace, the only currently available culling shape identifiers are : "minecraft:empty" or "minecraft:unit_cube". When using no namespaces or a custom one, the names must start and end with an alpha-numeric character. Value must have at most 256 items. Value must match a regular expression pattern of "^(?:minecraft:empty|minecraft:unit_cube|(?!minecraft:)[a-z0-9].*[a-z0-9])$".

identifier​

The description identifier of the geometry to use to render this block. This identifier must either match an existing geometry identifier in any of the loaded resource packs or be one of the currently supported Vanilla identifiers: "minecraft:geometry.full_block" or "minecraft:geometry.cross". Value must have at most 256 items.

uv_lock​

A field that is either a Boolean or an array of strings, max size 64 strings. This field locks UV orientation for all/some bones in the geometry, regardless of how the block is rotated using "minecraft:transformation" component. For performance reasons it's recommended to use the Boolean.

Block NWayVisualRotation​

Block NWayVisualRotation Properties​

JSON path: geometry > n_way_visual_rotation

NameDefault ValueTypeDescription
xStringBlock state name that controls visual rotation around the x axis. Value must have at most 256 items.
yStringBlock state name that controls visual rotation around the y axis. Value must have at most 256 items.
zStringBlock state name that controls visual rotation around the z axis. Value must have at most 256 items.

Samples​

"minecraft:item_visual": {
"geometry": {
"identifier": "minecraft:geometry.full_block"
},
"material_instances": {
"*": {
"texture": "dirt",
"render_method": "opaque"
}
}
}

Block Fabricator​

"minecraft:item_visual": {
"geometry": "geometry.mikeamm_gwve_fabricator_in_hand",
"material_instances": {
"*": {
"texture": "mikeamm_gwve_fabricator_in_hand",
"render_method": "alpha_test"
}
}
}

Die​

"minecraft:item_visual": {
"geometry": "minecraft:geometry.full_block",
"material_instances": {
"*": {
"texture": "die_red",
"render_method": "opaque"
}
}
}

(출처: ms-learn, creator/Reference/Content/BlockReference/Examples/BlockComponents/minecraftBlock_light_dampening.md)

Block Components Documentation - minecraft:light_dampening​

The amount that light will be dampened when it passes through the block, in a range of 0-15. Higher value means the light will be dampened more. A value of 15 means fully opaque (like stone), while 0 means fully transparent (like glass). Leaves use 1, water uses 2.

[!Note] In format version 1.26.20, validation strictly enforces that the value must be an integer between 0 and 15 inclusive; out-of-range values are rejected at load time.

Alternate Simple Representations​

This item can also be represented as a Integer number.

Samples​

Block Chiseled Packed Ice​

"minecraft:light_dampening": 15

(출처: ms-learn, creator/Reference/Content/BlockReference/Examples/BlockComponents/minecraftBlock_light_emission.md)

Block Components Documentation - minecraft:light_emission​

The amount of light this block will emit in a range of 0-15. Higher value means more light will be emitted. Reference values: torch (14), glowstone (15), redstone torch (7), soul torch (10). Monsters cannot spawn on blocks with light level 8 or higher.

[!Note] In format version 1.26.20, validation strictly enforces that the value must be an integer between 0 and 15 inclusive; out-of-range values are rejected at load time.

Alternate Simple Representations​

This item can also be represented as a Integer number.

Samples​

Block Fabricator​

"minecraft:light_emission": 7

Block Gray Ore​

"minecraft:light_emission": 15

(출처: ms-learn, creator/Reference/Content/BlockReference/Examples/BlockComponents/minecraftBlock_liquid_detection.md)

Block Components Documentation - minecraft:liquid_detection​

The definitions for how a block behaves when detecting liquid. Only one rule definition is allowed per liquid type - if multiple are specified, the first will be used and the rest will be ignored.

[!Note] In 1.26.10, defining minecraft:liquid_detection with an empty detection_rules array fails to load and produces a content error.

[!Note] This item requires a format version of at least 1.21.60.

Block Liquid Detection Properties​

NameDefault ValueTypeDescriptionExample Values
can_contain_liquidfalseBoolean true/falseWhether this block can contain the liquid. For example, if the liquid type is water, this means the block can be waterlogged.
detection_rulesnot setArray of Detection Rules itemsBlock Black Concrete Slab: [{"liquid_type":"water","can_contain_liquid":true,"on_liquid_touches":"blocking"}]
liquid_typewaterStringThe type of liquid this detection rule is for. Currently, water is the only supported liquid type. If this field is omitted, water will be the liquid type by default.
on_liquid_touchesblockingMinecraft Event TriggerHow the block reacts to flowing water.
stops_liquid_flowing_from_directionnot setArray of stringsWhen a block contains a liquid, controls the directions in which the liquid can't flow out from the block.
use_liquid_clippingfalseBoolean true/falseWhether this block uses the encompassing collider to visually clip the liquid.
on_liquid_touches​

How the block reacts to flowing water. Must be one of the following options: "blocking" - The default value for this field. The block stops the liquid from flowing. "broken" - The block is destroyed completely. "popped" - The block is destroyed and its item is spawned. "no_reaction" - The block is unaffected; visually, the liquid will flow through the block.

stops_liquid_flowing_from_direction​

When a block contains a liquid, controls the directions in which the liquid can't flow out from the block. Also controls the directions in which a block can stop liquid flowing into it if no_reaction is set for the on_liquid_touches field. Can be a list of the following directions: "up", "down", "north", "south", "east", "west". The default is an empty list; this means that liquid can flow out of all directions by default.

use_liquid_clipping​

Whether this block uses the encompassing collider to visually clip the liquid. The encompassing collider is the smallest single AABB that contains all of the block's colliders. A liquid's base visual shape is ALWAYS a quad, they do not have more subdivisions. When use_liquid_clipping is TRUE, the game will attempt to reduce the visible volume of water if the collision shape allows it. Eg. a wall will turn the water base shape into a rectangle on the side of the incoming water. When use_liquid_clipping is FALSE, the game will preserve the water base shape as a full square, no matter what the collision shape of the block they share space with is.

Block Detection Rule​

Block Detection Rule Properties​

JSON path: detection_rules

NameDefault ValueTypeDescription
can_contain_liquidfalseBoolean true/falseWhether this block can contain the liquid. For example, if the liquid type is water, this means the block can be waterlogged.
liquid_typewaterLiquid Type choicesThe type of liquid this detection rule is for. Currently, water is the only supported liquid type. If this field is omitted, water will be the liquid type by default.
on_liquid_touchesblockingLiquid Touches choicesHow the block reacts to flowing water.
stops_liquid_flowing_from_direction[]ObjectWhen a block contains a liquid, controls the directions in which the liquid can't flow out from the block.
use_liquid_clippingfalseBoolean true/falseIf true, the block uses its collision box to visually clip the liquid (reducing the visible water volume to match the block's shape).

on_liquid_touches​

How the block reacts to flowing water. Must be one of the following options: "blocking" - The default value for this field. The block stops the liquid from flowing. "broken" - The block is destroyed completely. "popped" - The block is destroyed and its item is spawned. "no_reaction" - The block is unaffected; visually, the liquid will flow through the block.

stops_liquid_flowing_from_direction​

When a block contains a liquid, controls the directions in which the liquid can't flow out from the block. Also controls the directions in which a block can stop liquid flowing into it if no_reaction is set for the on_liquid_touches field. Can be a list of the following directions: "up", "down", "north", "south", "east", "west". The default is an empty list; this means that liquid can flow out of all directions by default.

use_liquid_clipping​

If true, the block uses its collision box to visually clip the liquid (reducing the visible water volume to match the block's shape). If false, the liquid renders as a full square across the whole block regardless of the collision shape. This item requires a format version of at least 1.26.0. Added to detection_rules entries in 1.26.0. Defaults to true for format_version older than 1.26.0 and to false for 1.26.0 and newer.

Liquid Type choices​
ValueTitleDescription
waterWater
Liquid Touches choices​
ValueTitleDescription
blockingBlocking
brokenBroken
no_reactionNo reaction
poppedPopped

Samples​

Block Fabricator​

"minecraft:liquid_detection": {
"detection_rules": [
{
"liquid_type": "water",
"on_liquid_touches": "broken"
}
]
}

Block Leaf Pile​

"minecraft:liquid_detection": {
"detection_rules": [
{
"liquid_type": "water",
"on_liquid_touches": "popped"
}
]
}

Block Black Concrete Slab​

"minecraft:liquid_detection": {
"detection_rules": [
{
"liquid_type": "water",
"can_contain_liquid": true,
"on_liquid_touches": "blocking"
}
]
}
출처
id출처라이선스커밋접근일
ms-learnMinecraft Creator 문서 (Microsoft Learn)CC BY 4.0 (문서), MIT (코드)a9fd1c02026-11-13