{{about|the powered rail|other types of rails|Rail (disambiguation)}}
{{Block 
|image=Powered Rail.png
|image2=Powered Powered Rail.png
|transparent=Yes
|light=No
|tool=pickaxe
|renewable=Yes
|stackable=Yes (64)
|flammable=No
|lavasusceptible=No
}}

A '''powered rail''' is a type of [[rail]] that either increases or decreases the velocity of [[minecart]]s that move over it, depending on its power state.

== Obtaining ==
=== Breaking ===
Powered rails can be crafted, and previously placed powered rails can be broken with any tool or by hand, dropping themselves as items.
{{breaking row|horizontal=1|Powered Rail|Pickaxe}}

A powered rail also drops as an item when the block beneath it is removed or a [[piston]] moves it into a space with no floor below it. 

=== Chest loot ===
{{LootChestItem|powered-rail}}

=== Crafting ===
{{Crafting
|A1= Gold Ingot |B1=               |C1= Gold Ingot
|A2= Gold Ingot |B2= Stick         |C2= Gold Ingot
|A3= Gold Ingot |B3= Redstone Dust |C3= Gold Ingot
|Output= Powered Rail,6
|type= Transportation
}}

== Usage ==
{{see also|Tutorials/Minecarts}}
A powered rail can be used as a [[rail]] and as a [[redstone component]].

To place a powered rail, {{control|use}} a powered rail item while pointing at a surface facing the space the powered rail should occupy. A powered rail can be placed on:

* the '''top''' of any full solid [[opaque]] block (stone, dirt, blocks of gold, etc.), including full-block mechanism components ([[command block]]s, [[dispenser]]s, [[dropper]]s, [[note block]]s, and [[redstone lamp]]s)
* the '''top''' of a [[hopper]], upside-down [[slab]], or upside-down [[stairs]].

A powered rail cannot be attached to the side or bottom of any block, but attempting to make such an attachment may cause the powered rail to attach to the top of a block under the destination space. For example, if a fence is on the ground, attempting to attach a powered rail to the side of the fence causes the powered rail to be attached to the top of the ground next to the fence instead.

When placed, a powered rail configures itself to line up with any adjacent [[rail]]s (including [[activator rail]]s, [[detector rail]]s, and other [[powered rail]]s), as well as adjacent rails one block up. If there are two adjacent rails on non-opposite sides, or three or more adjacent rails, a powered rail lines up in the east-west direction. If there are no adjacent rails, a powered rail lines up in the north-south direction (but if a rail is later placed to the east or west, the powered rail re-orients itself in the east-west direction even if it is already connected to another rail to the north or south). If a rail it would line up with is one block up, a powered rail slants upward toward it (with multiple options to slant upward to, a powered rail "prefers", in order: west, east, south, and north). Other configurations can be created by placing and removing various rails. Unlike their unpowered counterparts, and like detector and activator rails, powered rails are always straight.

It cannot be placed suspended in midair, even with commands, which is not unintentional.<ref>{{bug|MC-182709}}</ref>

=== Rail ===
{{main|Rail}}

Powered rails (and other rails) can be used as "roads" for [[minecart]]s. A minecart that enters a powered rail's space from either end of the powered rail continues to move in the direction the powered rail is facing, but its speed may change depending on whether the powered rail is active or not (see below). A minecart that enters a powered rail's space from the side turns east or south (depending on the powered rail's orientation), or in the downward direction for a slanted powered rail.

=== Redstone component ===
{{see also|Redstone circuit}}

Powered rails can be used to affect the speed of minecarts that travel over them.

;Activation

: A powered rail is a [[Redstone components#Mechanism components|redstone mechanism]] and can be activated by:
:* an adjacent active '''[[power component]]''' (for example, a [[redstone torch]], a [[block of redstone]], a [[daylight sensor]], etc.)
:* an adjacent '''powered block''' (strongly-powered or weakly-powered)
:* a powered '''[[redstone comparator]]''' or '''[[redstone repeater]]''' facing the powered rail
:* powered '''[[redstone dust]]''' configured to point at the powered rail; a powered rail is ''not'' activated by adjacent powered redstone dust that is a directionless "dot" or configured to point in another direction.

: An activated powered rail also activates any adjacent powered rails it is connected to, up to eight away from the original activation source. Thus a single activation source can activate up to 17 rails (one original in the middle and eight on either side). An activated powered rail does not activate non-connected adjacent rails.

;Behavior

: An ''active'' powered rail:
:* increases the speed of a moving minecart in the direction it is already moving. Specifically, let the speed in both the X and Z directions (meters / tick) combined be "speed". If speed > 0.01, then every tick the minecart is passing over the powered rail, its x velocity is increased by (xspeed * 0.06 / speed) and its z velocity is increased by (zspeed * 0.06 / speed)
:* accelerate a non-moving minecart away from a solid opaque block the powered rail is facing (so a non-moving minecart moves away from the block when the powered rail activates, and a moving minecart bounces off a block an active powered rail is facing because it stops and then gets accelerated away)

: An ''inactive'' powered rail reduces the speed of a moving minecart, usually stopping it within one block's distance even on a downward-slanted track. If a slanted powered rail activates with a non-moving minecart on it, the minecart starts moving downward (because it is no longer being braked by an inactive powered rail) and is then accelerated downward.

: Powered rails cannot increase the speed of a minecart to more than 8 blocks per second on either the north-south or east-west axis. The speeds that can be achieved with varying numbers of powered rails or intervals of normal rails between powered rails is complex -- for a thorough discussion, see [[Tutorials/Minecarts]].

== Sounds ==
{{Sound table/Block/Metal}}

== Data values ==
=== ID ===
{{edition|java}}:
{{ID table
|edition=java
|showblocktags=y
|showitemtags=y
|showforms=y
|generatetranslationkeys=y
|displayname=Powered Rail
|spritetype=block
|nameid=powered_rail
|blocktags=prevent_mob_spawning_inside, rails
|itemtags=rails
|foot=1}}

{{edition|bedrock}}:
{{ID table
|edition=bedrock
|shownumericids=y
|showforms=y
|generatetranslationkeys=y
|displayname=Powered Rail
|spritetype=block
|nameid=golden_rail
|id=27
|foot=1}}

=== Block states ===
{{see also|Block states}}
{{/BS}}

== Video ==
<div style="text-align:center">{{yt|BqSNAD9CtTI}}</div>

== History ==
{{History|java beta}}
{{History||1.5|[[File:Powered Rail (NS) JE1 BE1.png|32px]] [[File:Powered Rail (EW) JE1 BE1.png|32px]] [[File:Powered Rail (nS) JE1 BE1.png|32px]] [[File:Powered Rail (Ew) JE1 BE1.png|32px]] [[File:Powered Rail (Ns) JE1 BE1.png|32px]] [[File:Powered Rail (eW) JE1 BE1.png|32px]]<br>[[File:Powered Powered Rail (NS) JE1 BE1.png|32px]] [[File:Powered Powered Rail (EW) JE1 BE1.png|32px]] [[File:Powered Powered Rail (nS) JE1 BE1.png|32px]] [[File:Powered Powered Rail (Ew) JE1 BE1.png|32px]] [[File:Powered Powered Rail (Ns) JE1 BE1.png|32px]] [[File:Powered Powered Rail (eW) JE1 BE1.png|32px]]<br>Added powered rails.}}
{{History||1.6|snap=Test Build 3|The effectiveness of powered rails has now been increased as [[notchtweet:68693850062995456|a response]] to fixing the [[Tutorials/Minecart booster|minecart booster]] bug.}}
{{History|java}}
{{History||1.0.0|snap=Beta 1.9 Prerelease 6|Powered Rails are now broken faster using a [[pickaxe]].}}
{{History||1.1|snap=11w49a|Fixed powered rail bug.{{more info}}}}
{{History||1.5|snap=13w02a|The item form of the powered rail has changed from [[File:On Powered Rail (texture) JE1 BE1.png|32px]] to [[File:Off Powered Rail (texture) JE1 BE1.png|32px]].}}
{{History||1.9|snap=15w44a|Powered rails can now be found in [[mineshaft]] [[chest minecarts]].}}
{{History||1.11|snap=16w32b|All [[rail]] types' hitbox heights are decreased from a full block to a half block.}}
{{History||1.14|snap=18w43a|[[File:Powered Rail (NS) JE2 BE2.png|32px]] [[File:Powered Rail (EW) JE2 BE2.png|32px]] [[File:Powered Rail (nS) JE2 BE2.png|32px]] [[File:Powered Rail (Ew) JE2 BE2.png|32px]] [[File:Powered Rail (Ns) JE2 BE2.png|32px]] [[File:Powered Rail (eW) JE2 BE2.png|32px]]<br>[[File:Powered Powered Rail (NS) JE2 BE2.png|32px]] [[File:Powered Powered Rail (EW) JE2 BE2.png|32px]] [[File:Powered Powered Rail (nS) JE2 BE2.png|32px]] [[File:Powered Powered Rail (Ew) JE2 BE2.png|32px]] [[File:Powered Powered Rail (Ns) JE2 BE2.png|32px]] [[File:Powered Powered Rail (eW) JE2 BE2.png|32px]]<br>The textures of powered rails has now been changed.}}
{{History|||snap=19w12b|Powered rails can now be placed on [[glass]], [[ice]], [[glowstone]] and [[sea lantern]].}}
{{History||1.17|snap=20w45a|All rail types can now be waterlogged.}}

{{History|pocket alpha}}
{{History||v0.8.0|snap=build 1|[[File:Powered Powered Rail (NS) JE1 BE1.png|32px]] Added powered rails, which are always powered.}}
{{History||v0.13.0|snap=build 1|[[File:Powered Rail (NS) JE1 BE1.png|32px]] Powered rails no longer have intrinsic power, and now need to be powered by an external power source.}}
{{History||v0.14.0|snap=build 1|Powered rails can now be found in [[minecart with chest]]s inside of [[mineshaft]]s.}}
{{History|bedrock}}
{{History||1.10.0|snap=beta 1.10.0.3|[[File:Powered Rail (NS) JE2 BE2.png|32px]] [[File:Powered Powered Rail (NS) JE2 BE2.png|32px]] The textures of powered rails has now been changed.}}

{{History|console}}
{{History||xbox=TU1|xbone=CU1|ps=1.0|wiiu=Patch 1|switch=1.0.1|[[File:Powered Rail (NS) JE1 BE1.png|32px]] [[File:Powered Powered Rail (NS) JE1 BE1.png|32px]] Added powered rails.}}
{{History||xbox=none|xbone=none|ps=1.90|wiiu=none|switch=none|[[File:Powered Rail (NS) JE2 BE2.png|32px]] [[File:Powered Powered Rail (NS) JE2 BE2.png|32px]] The textures of powered rails has now been changed.}}

{{History|new 3ds}}
{{History||0.1.0|[[File:Powered Rail (NS) JE1 BE1.png|32px]] [[File:Powered Powered Rail (NS) JE1 BE1.png|32px]] Added powered rails.}}
{{History|foot}}

=== Data history ===
{{History|java}}
{{History||1.8|snap=14w10a|Powered rails with [[Java Edition data values/Pre-flattening/Block IDs/Before 14w25a|numerical metadata variants]] 6, 7, 14 and 15, which are inaccessible through normal gameplay or even commands and as such require the use of external editors to exist, now have [[Missing model|no model]] [[File:Missing Model JE2.png|32px]]. Their appearances prior to this point were unknown.}}
{{History|||snap=14w25a|Powered rails are now defined via [[block states]] rather than by numerical metadata. Prior to this version, the numerical metadata variants of the powered rail were as follows:
{{dvt|spritetype=block|sprite=powered-rail|Unpowered north-south}}
{{dvt|spritetype=block|sprite=powered-rail|Unpowered east-west}}
{{dvt|spritetype=block|sprite=powered-rail|Unpowered ascending east}}
{{dvt|spritetype=block|sprite=powered-rail|Unpowered ascending west}}
{{dvt|spritetype=block|sprite=powered-rail|Unpowered ascending north}}
{{dvt|spritetype=block|sprite=powered-rail|Unpowered ascending south}}
{{dvt|spritetype=block|sprite=missing-texture-block|dv=6-7|[[Java Edition removed blocks/Metadata variants#Boring variants|Inaccessible - behavior unknown]]}}
{{dvt|spritetype=block|sprite=powered-rail|dv=8|Powered north-south}}
{{dvt|spritetype=block|sprite=powered-rail|Powered east-west}}
{{dvt|spritetype=block|sprite=powered-rail|Powered ascending east}}
{{dvt|spritetype=block|sprite=powered-rail|Powered ascending west}}
{{dvt|spritetype=block|sprite=powered-rail|Powered ascending north}}
{{dvt|spritetype=block|sprite=powered-rail|Powered ascending south}}
{{dvt|spritetype=block|sprite=missing-texture-block|dv=14-15|[[Java Edition removed blocks/Metadata variants#Boring variants|Inaccessible - behavior unknown]]|foot=1}}}}
{{History|||snap=14w26a|Powered rails with metadata values 6, 7, 14 and 15 have now been completely removed from the game.}}
{{History||1.13|snap=17w47a|The ID of powered rails has been changed from <code>golden_rail</code> to <code>powered_rail</code>.
|Prior to [[Java Edition 1.13/Flattening|''The Flattening'']], this block's numeral ID was 27.}}
{{History|foot}}

== Issues ==

{{issue list}}

== Trivia ==

* Powered rails were originally [[jebtweet:55523573774823424|a suggestion]] for golden tracks.

== Gallery ==

<gallery>
Power on.png|Power on.
Power off.png|Power off.
</gallery>

== See also ==

* [[Rail]]
* [[Activator Rail]]
* [[Detector Rail]]

== References ==
{{reflist}}

{{Redstone}}
{{Blocks|Utility}}

[[Category:Mechanics]]
[[Category:Non-solid blocks]]
[[Category:Redstone mechanics]]
[[Category:Mechanisms]]
[[Category:Manufactured blocks]]

[[de:Antriebsschiene]]
[[es:Raíl propulsor]]
[[fr:Rails de propulsion]]
[[ja:パワードレール]]
[[ko:전동 레일]]
[[nl:Aandrijfspoor]]
[[pl:Zasilane tory]]
[[ru:Электрические рельсы]]
[[zh:动力铁轨]]
