From 2924874ed2afbd33a1533f64c9154966712cb68c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20N=C3=BCcke?= Date: Fri, 13 Dec 2013 03:06:33 -0800 Subject: [PATCH] Updated Signals (markdown) --- Signals.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Signals.md b/Signals.md index 2458e98..face69a 100644 --- a/Signals.md +++ b/Signals.md @@ -74,4 +74,9 @@ Robots ------ - `inventory_changed(slot: number)` This signal is queued by robots when their inventory changes. Note that this only includes changes to the kind of item stored in a slot. For example, increasing or decreasing the size of an already present stack does not trigger this signal. However, swapping one item with another (say, torches with sticks) by hand will actually trigger *two* signals: one for the removal of the torches, one for putting the sticks into the temporarily empty slot. Swapping items using `[[robot.transferTo()|API/Robot]]` will even trigger *four* signals - the same thing, but for the two slots involved in the swap. - Also, this only fires for the actually addressable inventory of the robot, i.e. it does not trigger for changes in equipment (tool, card, upgrade). \ No newline at end of file + Also, this only fires for the actually addressable inventory of the robot, i.e. it does not trigger for changes in equipment (tool, card, upgrade). + +Carriage +-------- +- `carriage_moved(success: boolean[, reason:string[, x:number, y: number, z: number]])` + This signal is queued by the [[carriage component|Component/RedstoneInMotion]] after a move or simulate command was issued. The `success` parameter indicates whether the move or simulation was successful, i.e. whether the carriage could be moved. If the move failed, `reason` is the error message. Depending on the error message, (`x`, `y`, `z`) is the world coordinate of the block that caused the move to fail. \ No newline at end of file