Performs a raycast from the player’s head and interacts with the first intersected block or entity. Returns true if the interaction was successful. Maximum range is 6 blocks.Returns booleanNotes:This function can't be called in read-only mode. This function can throw errors....
Improved performance when preparing commands, most noticeable when opening the command window for the first time in a world, but also when loading Command Blocks for old command versions 提升了加载命令和命令窗口时的整体性能 "carpet" block is now flattened into unique variants of 16 colors, namely...
Allows placing of certain blocks against other blocks in adventure modeExample: /give @p minecraft:stone 16 0 {CanPlaceOn:["minecraft:diamond_block"]}Putting an invalid item name in will display as "missingno" under the "Can be placed on" list.CommandStatsAllows a command block or sign ...
Fixed an issue where entities loaded by Structure Blocks and commands would cause the despawn of the original mob used to save the structure and any mobs from previous loads of the structure (MCPE-155036) 修复了使用结构方块和指令加载的实体会导致原有的储存在结构中的方块或任何之前从结构中加载的...
beforeBreakingBlock:当流体破坏方块时,会调用这个方法,我们在这里把方块掉落,比如火把被水破坏时,会掉落火把 canBeReplacedWith:是否可以被替换 getFlowSpeed:流体流动速度 getLevelDecreasePerBlock:水返回 1,熔岩在主世界时返回 2 并且在下界时返回 1 getTickRate:水返回 5,熔岩在主世界时返回 30 并且在下界时返...
Sea Grass no longer spawns under Lily Pads during world generation to avoid breaking them 海草将不会在睡莲下方生成,以免破坏睡莲 Holding Top Snow in hand while hovering over Grass Blocks no longer causes incorrect behavior (MCPE-140659, MCPE-140660) ...
Represents the amount of damage that this item can take before breaking. Type:number Notes: This property can throw errors when used. Methods getDamageChance getDamageChanceRange getDamageChance getDamageChance(unbreakingEnchantmentLevel?: number): number ...
新增commandModificationBlockLimit,控制单次执行 clone、 fill 和fillbiome时可以被替换的最大方块数 Added doVinesSpread game rule, determining if vines will spread to nearby blocks 新增doVinesSpread 游戏规则,用于决定藤蔓(仅藤蔓,不包括洞穴藤蔓、缠怨藤和垂泪藤)是否能够向周围方块扩散 Defaults to true 默认...
Command blocks with ‘Needs Redstone’ and a non-zero ‘Delay in Ticks’ will now execute only if they remain powered for the delay duration (MCPE-74281) 带有“需要红石 “和非零 “延迟时间 “的命令方块现在只有在延迟时间内保持激活时才会执行命令 (MCPE-74281) ...
Mud Blocks 泥巴方块 Mud can be found all over mangrove swamps and crafted with wheat into packed mud! Use it to craft a variety of mud brick blocks including stairs, slabs, and walls. This block is also renewable by using a water bottle on dirt, so there is no risk of running out of...