Fandom

Minecraft Mod Custom Stuff Wiki

Trigger

175pages on
this wiki
Add New Page
Comments0 Share
This Article is up to date with Custom Stuff 2 CS2

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

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.