We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6407bc commit 23f7db2Copy full SHA for 23f7db2
src/index.ts
@@ -65,6 +65,16 @@ world.beforeEvents.itemUseOn.subscribe((ev) => {
65
safeCall(updateBlockProperty, player, ev.block);
66
});
67
68
+// Players should not be able to break blocks using
69
+// the debug stick in survival
70
+//
71
+// TODO: explore other alternatives
72
+world.beforeEvents.playerBreakBlock.subscribe((ev) => {
73
+ if (ev.itemStack?.typeId != DEBUG_STICK_ID)
74
+ return;
75
+ ev.cancel = true;
76
+})
77
+
78
79
/*============================================================================*\
80
+* Action functions
0 commit comments