Skip to content

Commit 0fed777

Browse files
committed
feat: add event-specific chest reference fields
1 parent 696aeee commit 0fed777

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/main/proto/clientbound/clientbound_plot.proto

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ message S2CPlotLineStarterUpdate {
7878
// Represents an action performed on a line starter.
7979
enum Action {
8080
ADD = 0; // A line starter was added.
81-
REMOVE = 1; // A line starter was removed.
81+
CHANGE = 1; // A line starter was changed.
82+
REMOVE = 2; // A line starter was removed.
8283
}
8384
CodeLineStarter line_starter = 1; // The line starter that was added or removed.
8485
Action action = 2; // The action performed.

src/main/proto/common/common_code.proto

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ message ChestReference {
6969
string name = 2; // The name of the action as a serialized component in JSON format.
7070
repeated string description = 3; // The description of the action icon as a list of serialized components in JSON format.
7171
repeated Note additional_info = 4; // The additional info field of the action icon as a list of serialized components in JSON format.
72-
int32 tags = 5; // The amount of tags the action has.
73-
repeated Argument arguments = 6; // The arguments for the chest.
74-
repeated ReturnValue return_values = 7; // The return values of the action.
72+
optional int32 tags = 5; // The amount of tags the action has, only for actions.
73+
repeated Argument arguments = 6; // The arguments for the chest, only for actions.
74+
repeated ReturnValue return_values = 7; // The return values of the action, only for actions.
75+
optional bool cancellable = 8; // Whether the action is cancellable, only for events.
76+
optional bool cancelled_automatically = 9; // Whether the event is cancelled by default, only for events.
7577
}

0 commit comments

Comments
 (0)