# VOLUMES DOCUMENTATION Version: 1.20.0.1

##

Index

Volumes
Volume Components
Volume Definition Properties
Volume Description Properties

Back to top

#

Volumes

#

Volume Components

These are the various possible components for this entity

##

Name | Type | Default Value | Description
--- | --- | --- | ---
minecraft:fog |  |  | Displays the given fog whenever a player enters the volume. Each volume can only have one fog attached.
Name | Type | Default Value | Description
--- | --- | --- | ---
fog_identifier | String |  | The identifier of a fog definition. Note that you will not receive any feedback if the definition does not exist.
priority | Integer | INT_MAX | The priority for this fog definition setting. Smaller numbers have higher priority. Fogs with equal priority will be combined together.
minecraft:on_actor_enter |  |  | Component that defines what happens when an actor enters the volume. Can contain multiple json objects.
Name | Type | Default Value | Description
--- | --- | --- | ---
on_enter | Array |  | Required array that contains all the triggers. ##### condition Molang expression to test against the actor. The given event will be triggered if the expression evaluates to true.Back to top ##### event Name of the event to run.Back to top ##### target One of "self" or "other". Self means the event is attached to the volume. Other means the event is attached to the actor.Back to top
minecraft:on_actor_leave |  |  | Component that defines what happens when an actor leaves the volume.
Name | Type | Default Value | Description
--- | --- | --- | ---
on_leave | Array |  | Required array that contains all the triggers. ##### condition Molang expression to test against the actor. The given event will be triggered if the expression evaluates to true.Back to top ##### event Name of the event to run.Back to top ##### target One of "self" or "other". Self means the event is attached to the volume. Other means the event is attached to the actor.Back to top

Back to top

#

Volume Definition Properties

The properties of a minecraft:volume entity. All components are optional.

##

Name | Type | Default Value | Description
--- | --- | --- | ---
format_version | String |  | Specifies the version of the game this entity was made in. Minimum supported version is 1.17.0. Current supported version is 1.20.0.

## Example

Example
{ "format_version": 1.17.0, "minecraft:volume": { "description": { "identifier": "your_custom_namespace:sample_volume" }, "components": { "minecraft:fog": { "fog_identifier": "minecraft:fog_savanna", "priority": 1 } } } } Back to top

#

Volume Description Properties

The description contains a single 'identifier' string

##

Name | Type | Default Value | Description
--- | --- | --- | ---
identifier | String |  | The unique identifier for this volume. It must be of the form 'namespace:name', where namespace cannot be 'minecraft'.

Back to top