跳到主要内容

On Craftengine Furniture Attempt Place Event

Triggers when a player attempts to place CraftEngine furniture

Fires before CraftEngine validates the placement, so it still sees attempts that end up refused.

字段

字段类型默认值描述
furnitureIdString—The furniture ID that triggers this event (e.g., 'namespace:furniture_id'). Leave empty for any furniture.
locationOptional<Var<Position>>—The location where the furniture would be placed (optional)
permissionString—A permission the player must hold to be allowed to place. Leave empty to skip the check.
allowWhenList<Criteria>emptyFacts the player must satisfy to be allowed to place. When unmet, the placement is refused.
cancelBooleantrueWhether to stop the placement when the requirements are unmet. Turn off to only fire the triggers.
TypeWriter 通用字段(triggers)
字段类型默认值描述
triggersList<Ref<TriggerableEntry>>empty—