Description: This is a very simple script that keeps monsters from dropping any experience or loot if they aren't killed by a player. Players often make grinding machines that can drown or suffocate mobs. This prevents that from happening.
AntiFarm:
type: world
debug: false
events:
on entity dies:
- if <context.entity.is_player> queue clear
- if li@CONTACT|DROWNING|FALL|SUFFOCATION contains <context.cause> {
- determine NO_DROPS_OR_XP
}