Minecraftmodcustomstuff Wiki
Advertisement
This Article is up to date with Custom Stuff 2 "Denotes content compatible with Custom Stuff 2"

The pressureplatetrigger attribute is an attribute exclusive to pressure plates. This attribute govers what can trigger the pressure plate. In vanilla Minecraft, any entity can trigger a wooden pressure plate, but only creatures can trigger stone pressure plates. This attribute allows you to give your pressure plates even more interesting and unique triggers.

By default, pressure plates will be triggered any entity passing over it. Add the following line to your block's .js file to alter the default attribute.

trigger="players";     //Activates only when players step on it.

Here's a table of valid values, and what causes them to trigger:

Pressure Plate Triggers
Items / XP Orbs Player Aggressive Mobs Passive Mobs
all
players
hostiles
animals
mobs
items
noplayers
nohostiles
noanimals
nomobs
noitems

CS1
Older Examples and Information for Custom Stuff 1.


Add the following line to your .block file to add a pressure plate trigger:

pressureplatetrigger="all";

This is a table of values to replace "all" with, and what will activate a pressure plate with that trigger:

Pressure Plate Triggers
Items / XP Orbs Player Aggressive Mobs Passive Mobs
all
player
monster
animal
creature
item
noplayer
nomonster
noanimal
nocreature
noitem
Advertisement