- 致编者:请牢记我们的域名wiki.mcbe-dev.net!
- 致编者:欢迎加入本Wiki的官方交流QQ群或Discord服务器!
- 基岩版1.19.31现已发布!(了解更多)
- Inner Core现已支持Xbox模组联机!(了解更多)
- 如果您是第一次来到本Wiki,欢迎注册一个账户
- 点击顶部的“编辑”或“编辑源代码”按钮即可编辑当前页面
- 请知悉:在不登录时也可以编辑和新建页面,但是您当前的IP地址会记录在编辑历史中
Molang/內建變數
出自Minecraft基岩版开发Wiki
< Molang
此條目的(部分)內容需要翻譯。 你可以幫助我們來翻譯此條目,但請勿使用機器翻譯。 |
Mojang為遊戲內建了一些硬編碼的變數,這些變數可以在對應的地方起特殊作用。
實體變數[編輯]
名稱 | 描述
|
---|---|
variable.aabb.x | |
variable.aabb.y | |
variable.aabb.z | |
variable.aabb_dimension.x | |
variable.aabb_dimension.y | |
variable.actor.speed | |
variable.cloud_lifetime | |
variable.cloud_radius | |
variable.color.a | |
variable.color.b | |
variable.color.g | |
variable.color.r | |
variable.direction.x | |
variable.direction_x | |
variable.direction.y | |
variable.direction_y | |
variable.direction.z | |
variable.direction_z | |
variable.direction_vector.x | |
variable.direction_vector.y | |
variable.direction_vector.z | |
variable.emitter_age | Age since the current loop started for the emitter |
variable.emitter_intensity | |
variable.emitter_lifetime | How long the current loop lasts for the emitter |
variable.emitter_radius | |
variable.emitter_random_1 | A random from 0.0 to 1.0 that is constant for the current loop of the emitter |
variable.emitter_random_2 | Another random from 0.0 to 1.0 that is constant for the current loop of the emitter |
variable.emitter_random_3 | A third random from 0.0 to 1.0 that is constant for the current loop of the emitter |
variable.emitter_random_4 | A fourth random from 0.0 to 1.0 that is constant for the current loop of the emitter |
variable.emitter_texture_coordinate.u | |
variable.EmitterTextureCoord.u | |
variable.emitter_texture_coordinate.v | |
variable.EmitterTextureCoord.u | |
variable.emitter_texture_size.u | |
variable.EmitterTextureSize.u | |
variable.emitter_texture_size.v | |
variable.EmitterTextureSize.u | |
variable.entity_scale | When the effect is attached to an entity, this value is the scale of the entity |
variable.is_outside_water | |
variable.particlecount | |
variable.particlesize | |
variable.particle_age | How long the particle has lived |
variable.particle_lifetime |
How long the particle lives for |
variable.particle_multiplier | |
variable.particle_random_1 | A random from 0.0 to 1.0 that is constant for the lifetime of the particle |
variable.particle_random_2 | Another random from 0.0 to 1.0 that is constant for the lifetime of the particle |
variable.particle_random_3 | A third random from 0.0 to 1.0 that is constant for the lifetime of the particle |
variable.particle_random_4 | A fourth random from 0.0 to 1.0 that is constant for the lifetime of the particle |
variable.size_modifier | |
variable.speed_modifier | |
variable.velocity_scalar |
上下文變數[編輯]
名稱 | 描述 |
---|---|
context.is_first_person | |
context.item_slot | |
context.player_offhand_arm_height | |
context.other |