Minecraftmodcustomstuff Wiki
(Major overhaul of this article.)
Line 1: Line 1:
  +
A Pressure Plate is a relatively flat block that activates when an entity occupies its space, sending out a redstone signal to all adjacent spaces. In the vanilla game, there are two pressure plates: wood and stone. The notible difference between the two is whether or not drops can activate the pressure plate, with only the sooner of the two being activated.
pressureplate is a block that when stepped on it sends a redstone signal this is an example for a "player pressureplate".
 
   
  +
With Custom Stuff, it is possible to create several more interesting and unique pressure plates that are activated only by specific classes of entities, as defined by the [[pressureplatetrigger]] attribute.
name="player pressureplate";
 
  +
==Example Pressure Plate - Iron Pressure Plate==
  +
Here's an example of a pressure plate that will only activate when a player steps on it, making it an effective 'welcome mat' for doors since mobs can't activate it.
  +
  +
name="Iron Pressure Plate";
 
id=222;
 
id=222;
 
texturefile="terrain.png";
 
texturefile="terrain.png";
Line 13: Line 17:
 
harvestlevel=1;
 
harvestlevel=1;
 
pressureplatetrigger="player";
 
pressureplatetrigger="player";
  +
==Pressure Plate Block Attributes==
  +
Below is a table of attributes available to pressure plate-type blocks, including information on notable attributes.
  +
{| border="0" cellpadding="0" cellspacing="0" width="100%"
  +
| valign="top" width="50%"|
  +
'''Required Attributes'''
  +
*[[Name|name]]
  +
*[[Id|id]]
  +
*[[Type|type]]
  +
*[[Icon and Texture Files|texturefile]]
  +
*[[Icon and Texture Files|textureindex]]
  +
*[[harvestlevel]]
  +
*[[toolclass]]
  +
*[[pressureplatetrigger]]
  +
| valign="top" width="50%"|
  +
'''Optional Attributes'''
  +
*[[Material|material]]
  +
*[[Stepsound|stepsound]]
  +
*[[Hardness|hardness]]
  +
*[[Resistance|resistance]]
  +
*[[Icon and Texture Files|textureindex]]
  +
*[[Light|light]]
  +
*[[Dropped|iddropped]]
  +
*[[Dropped|quantitydropped]]
  +
*[[Dropped|damagedropped]]
  +
*[[Transparent|transparent]]
  +
*[[Opacity|opacity]]
  +
*[[Addtocreative|addtocreative]]
  +
*[[Color|color]]
  +
*[[maxstack]]
  +
|}
  +
'''type'''<br />This must be set to 'pressureplate' in order for the block to function as a pressure plate.
   
  +
'''pressureplatetrigger'''<br />This attribute defines which types of entities can activate the pressure plate. Without this attribute set, any entity will activate the plate.
==Bugs==
 
 
[[Category:Block Types]]
 
[[Category:Block Types]]
 
[[Category:Examples]]
 
[[Category:Examples]]

Revision as of 07:51, 8 June 2012

A Pressure Plate is a relatively flat block that activates when an entity occupies its space, sending out a redstone signal to all adjacent spaces. In the vanilla game, there are two pressure plates: wood and stone. The notible difference between the two is whether or not drops can activate the pressure plate, with only the sooner of the two being activated.

With Custom Stuff, it is possible to create several more interesting and unique pressure plates that are activated only by specific classes of entities, as defined by the pressureplatetrigger attribute.

Example Pressure Plate - Iron Pressure Plate

Here's an example of a pressure plate that will only activate when a player steps on it, making it an effective 'welcome mat' for doors since mobs can't activate it.

name="Iron Pressure Plate";
id=222;
texturefile="terrain.png";
textureindex=22;
material="iron";
type="pressureplate";
stepsound="metal";
transparent="true";
opacity=0;
toolclass="pickaxe";
harvestlevel=1;
pressureplatetrigger="player";

Pressure Plate Block Attributes

Below is a table of attributes available to pressure plate-type blocks, including information on notable attributes.

Required Attributes

Optional Attributes

type
This must be set to 'pressureplate' in order for the block to function as a pressure plate.

pressureplatetrigger
This attribute defines which types of entities can activate the pressure plate. Without this attribute set, any entity will activate the plate.