Revisions for untitled paste

View the changes made to this paste.

unlisted ⁨1⁩ ⁨file⁩ 2024-03-23 17:26:50 UTC

easterEggDisabler.js

@@ -0,0 +1,16 @@

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