未命名¶
文档版本: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:volume
:object- UNDOCUMENTED.
minecraft:volume
description
:object- The description contains a single
identifier
string.
description
identifier
:volume- The unique identifier for this volume. It must be of the form
namespace:name', where namespace cannot be
minecraft`.
components
:object- UNDOCUMENTED.
components
minecraft:bounds
:object- 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
dimension
:string- The name of the dimension the bounding box will exist in: one of
overworld',
netheror
the end`.
max
:array- The maximum block position of the bounding box.
max
0..0
:number
1..1
:number
2..2
:number
min
:array- The minimum block position of the bounding box.
min
0..0
:number
1..1
:number
2..2
:number
minecraft:fog
:object- Displays the given fog whenever a player enters the volume. Each volume can only have one fog attached.
minecraft:fog
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- The priority for this fog definition setting. Smaller numbers have higher priority. Fogs with equal priority will be combined together.
minecraft:on_actor_enter
:object- Component that defines what happens when an actor enters the volume. Can contain multiple json objects.
minecraft:on_actor_enter
on_enter
:array- Required array that contains all the triggers.
on_enter
<any array element>
:object- Trigger.
<any array element>
condition
:0- Molang expression to test against the actor. The given event will be triggered if the expression evaluates to true.
event
:string- Name of the event to run.
target
:string- One of
self
orother
. Self means the event is attached to the volume. Other means the event is attached to the actor.
minecraft:on_actor_leave
:object- Component that defines what happens when an actor leaves the volume.
minecraft:on_actor_leave
on_enter
:array- Required array that contains all the triggers.
on_enter
<any array element>
:object- Trigger.
<any array element>
condition
:0- Molang expression to test against the actor. The given event will be triggered if the expression evaluates to true.
event
:string- Name of the event to run.
target
:string- One of
self
orother
. Self means the event is attached to the volume. Other means the event is attached to the actor.