Revisions for untitled paste

View the changes made to this paste.

unlisted ⁨1⁩ ⁨file⁩ 2024-03-23 17:09:18 UTC

easterEggDisabler.js

@@ -0,0 +1,15 @@

+EntityEvents.spawned(e => {
+	let toCancel = [
+		'tombstone:easter_egg' // eat shit
+	]
+
+	let entity = e.entity
+	let item = entity.item
+
+	if (item) {
+		if (toCancel.includes(item.id)) {
+			//console.log(`prevented spawn of: ${item.id} at ${entity.x}, ${entity.y}, ${entity.z}`)
+			e.cancel()
+		}
+	}
+})
\ No newline at end of file