Skip to content

Entity Filters

Corgi Taco edited this page Aug 17, 2022 · 3 revisions

Use Entity Filters to determine the type of entity.

Any Entity Filter

{
	"config": { },
	"type": "enhancedcelestials:any"
}

By Entity Type Filter

  • Filters an entity by its registry ID.
{
	"config": {
		"id": "minecraft:ghast"
	},
	"type": "enhancedcelestials:by_type"
}

By Type Tag Filter

  • Filters an entity by any tag it's in.
{
	"config": {
		"tag": "#minecraft:skeletons"
	},
	"type": "enhancedcelestials:by_tag"
}

By Mob Category Filter

  • Filters entities by their mob category.
{
	"config": {
		"mob_category": "monster"
	},
	"type": "enhancedcelestials:by_mob_category"
}

Multi Filter

  • Filter comprised of other filters.
{
	"config": {
		"filters": [
			{
			  "config": {
				"mob_category": "monster"
			  },
			  "type": "enhancedcelestials:by_mob_category"
			},
			{
			  "config": {
				"id": "minecraft:ghast"
			  },
			  "type": "enhancedcelestials:by_type"
			}
		]
	},
	"type": "enhancedcelestials:multi"
}

Inverse Filter

  • Flips a filter.
{
	"config": {
		"filter": {
			"config": {
				"tag": "#minecraft:skeletons"
			},
			"type": "enhancedcelestials:by_tag"
		}
	}
	"type": "enhancedcelestials:inverse"
}