Skip to content

cu_item_is_in_inventory zh

mouse114514 edited this page Sep 12, 2026 · 1 revision

物品是否在背包中

物品是否在背包中

概述

检查当前物品是否位于某个容器(背包)中。需在物品相关事件中使用。

插槽

此积木没有插槽。

连接

连接 类型 说明
输出 布尔 在背包/容器中返回 true

生成代码

生成 (bool)item.ParentContainer()。

Block ID: cu_item_is_in_inventory


English | 布尔积木 | 积木参考

Clone this wiki locally