Minecraftmodcustomstuff Wiki
(Major overhaul of this article.)
(Added CS1 Header. Will try to remember to update article later. Changed Category "Examples" to "Examples (CS1)".)
Line 1: Line 1:
  +
{{CS1}}
 
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.
 
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.
   
Line 51: Line 52:
 
'''pressureplatetrigger'''<br />This attribute defines which types of entities can activate the pressure plate. Without this attribute set, any entity will activate the 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.
 
[[Category:Block Types]]
 
[[Category:Block Types]]
[[Category:Examples]]
+
[[Category:Examples (CS1)]]

Revision as of 14:37, 30 April 2013

CS1 Custom Stuff 1

Information presented below this line is outdated syntax or information used for Custom Stuff 1. It will not work with Custom Stuff 2.

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.