跳转至

未命名

文档版本:1.21.0.24

架构

0:
{
   "format_version" : opt
  object "minecraft:volume" : opt
  {
    object "description" : opt
    {
      volume "identifier"
    }
    object "components" : opt
    {
      object "minecraft:bounds" : opt
      {
        string "dimension" : opt
        array "max" : opt
        {
          number "0..0" : opt
          number "1..1" : opt
          number "2..2" : opt
        }
        array "min" : opt
        {
          number "0..0" : opt
          number "1..1" : opt
          number "2..2" : opt
        }
      }
      object "minecraft:fog" : opt
      {
        string "fog_identifier" : opt
        integer "priority" : opt
      }
      object "minecraft:on_actor_enter" : opt
      {
        array "on_enter" : opt
        {
          object "<any array element>" : opt
          {
            0 "condition"
            string "event" : opt
            string "target" : opt
          }
        }
      }
      object "minecraft:on_actor_leave" : opt
      {
        array "on_enter" : opt
        {
          object "<any array element>" : opt
          {
            0 "condition"
            string "event" : opt
            string "target" : opt
          }
        }
      }
    }
  }
}
format_version
Specifies the version of the game this entity was made in. Minimum supported version is 1.17.0. Current supported version is 1.17.0.
minecraft:volumeobject
UNDOCUMENTED.
minecraft:volume
descriptionobject
The description contains a single identifier string.
description
identifiervolume
The unique identifier for this volume. It must be of the form namespace:name', where namespace cannot beminecraft`.
volume:
string
componentsobject
UNDOCUMENTED.
components
minecraft:boundsobject
Component that defines a minimum and maximum block position for a bounding box and which world dimension the bounding box is in. Every volume must have a bounds component.
minecraft:bounds
dimensionstring
The name of the dimension the bounding box will exist in: one of overworld',netherorthe end`.
maxarray
The maximum block position of the bounding box.
max
0..0number
1..1number
2..2number
minarray
The minimum block position of the bounding box.
min
0..0number
1..1number
2..2number
minecraft:fogobject
Displays the given fog whenever a player enters the volume. Each volume can only have one fog attached.
minecraft:fog
fog_identifierstring
The identifier of a fog definition. Note that you will not receive any feedback if the definition does not exist.
priorityinteger
The priority for this fog definition setting. Smaller numbers have higher priority. Fogs with equal priority will be combined together.
minecraft:on_actor_enterobject
Component that defines what happens when an actor enters the volume. Can contain multiple json objects.
minecraft:on_actor_enter
on_enterarray
Required array that contains all the triggers.
on_enter
<any array element>object
Trigger.
<any array element>
condition0
Molang expression to test against the actor. The given event will be triggered if the expression evaluates to true.
0:
string
eventstring
Name of the event to run.
targetstring
One of self or other. Self means the event is attached to the volume. Other means the event is attached to the actor.
minecraft:on_actor_leaveobject
Component that defines what happens when an actor leaves the volume.
minecraft:on_actor_leave
on_enterarray
Required array that contains all the triggers.
on_enter
<any array element>object
Trigger.
<any array element>
condition0
Molang expression to test against the actor. The given event will be triggered if the expression evaluates to true.
eventstring
Name of the event to run.
targetstring
One of self or other. Self means the event is attached to the volume. Other means the event is attached to the actor.
volumes:
{
  format_version "format_version"
}
format_versionformat_version
format_version:
string