Skip to main content

Criterias

A ban entry may have multiple criterias that will be matched against when checking a block or item. Every criteria has to match for a ban entry to fit.

NameParametersDescription
IDString itemID

Match the item id (e.g. minecraft:stone).

Blocks without a corresponding item can't be matched

Metaint metaMatch the item meta or damage. 
DimensionString dimName

the world name where the entry should apply.

The id is also allowed

NbtString nbtJson

Matches the item's NBT tag. For blocks it matches to the tile entity's NBT.

For blocks without tile entity this criteria will be ignored.

PlayerString name

The playername of the player for which the the entry should be valid

ModString modid

The modID the item will be matched against. The modID is the first part of the item's resource location (e.g. minecraft for minecraft:stone)

   
NotCriteria crit

Negates a given criteria (e.g. Not(Dimension(0)) will be any dimension exept 0)

AndCriteria c1, Criteria c2

Combines two criterias with a logical AND. This is not very useful in the ban entry itself because the criterias in the ban entry are already linked to each other with AND

OrCriteria c1, Criteria c2

Combines two criterias with a logical OR