Skip to content

cu_item_set_slot_rotation zh

mouse114514 edited this page Sep 12, 2026 · 1 revision

设置插槽旋转

设置插槽旋转

概述

设置指定物品在物品栏插槽中的旋转角度(Stats.slotRotation)。可以让物品在插槽中显示为旋转后的方向。

插槽

插槽 类型 说明
VALUE 数字插槽 旋转角度(浮点数)

下拉框选项

下拉栏 选项 值 说明
TARGET 当前物品 this 操作当前手中物品
TARGET 左手 left 操作左手物品
TARGET 右手 right 操作右手物品

连接

连接 类型 说明
顶部 语句 可接在上一个语句后
底部 语句 可继续连接下一个语句

生成代码

生成 item.Stats.slotRotation = <值>f;。

Block ID: cu_item_set_slot_rotation


English | 物品操作积木 | 积木参考

Clone this wiki locally