Block Attributes

trigger

This attribute defines what objects can trigger the pressure plate. The attribute is a combination of including and excluding entities or entity classes. You can use entity names (Creeper, Spider, etc), entity ids (for example the Creeper has id 50) or the following:

  • all
  • mobs
  • players
  • hostiles
  • animals
  • items
You can also use multiple ones by separating them with a ','.

Examples

// Default value
trigger = "include(all)";

trigger = "include(mobs)";

trigger = "include(all) exclude(items,players)";

trigger = "include(hostiles) exclude(Creeper)";