Description
<h1>Railgun Portal</h1>
<p>Opens a Nether portal anywhere you want and fires a massive, perfectly straight barrage of arrows through it, like a railgun. Inspired by Unstable SMP.</p>
<h2>Features</h2>
<ul>
<li><strong>One command setup:</strong> pick a position, a direction and an arrow count, and the portal builds itself (obsidian frame included)</li>
<li><strong>Guaranteed hits:</strong> everything standing in front of the portal inside the beam (up to 200 blocks) is hit, no matter how fast the arrows fly. Solid blocks stop the beam</li>
<li><strong>Fishing rod trigger:</strong> instead of firing instantly, you get a special "Railgun Rod". Reel it in and the portal opens. Rods survive server restarts</li>
<li><strong>Totem control:</strong> choose whether the volley pops two totems and kills, or only pops one and lets the player survive</li>
<li><strong>Armor damage:</strong> armor takes durability damage based on arrow speed and how many arrows would realistically hit</li>
<li><strong>Fully configurable:</strong> speed, portal size, knockback, and whether the portal breaks after firing</li>
<li>Creative and spectator players are not affected</li>
</ul>
<h2>Commands</h2>
<p>All commands require operator permission (gamemaster level).</p>
<h3>Fire a railgun</h3>
<p><code>/railgunportal <x y z> <north|south|east|west> <arrows> <on|off></code></p>
<ul>
<li><code>x y z</code>: bottom-left interior block of the portal</li>
<li>direction: where the arrows are fired</li>
<li>arrows: 1 to 5000</li>
<li>last argument: <code>on</code> gives you a Railgun Rod, <code>off</code> fires immediately</li>
</ul>
<h3>Config</h3>
<table>
<thead>
<tr><th>Command</th><th>Description</th><th>Default</th></tr>
</thead>
<tbody>
<tr><td><code>/railgunportal config</code></td><td>Shows current settings</td><td>-</td></tr>
<tr><td><code>/railgunportal config 2totem <on/off></code></td><td>on: pops 2 totems and kills. off: pops 1 totem and the player survives</td><td>on</td></tr>
<tr><td><code>/railgunportal config speed <0.1-2500></code></td><td>Arrow speed</td><td>5.0</td></tr>
<tr><td><code>/railgunportal config portalbreak <on/off></code></td><td>Portal breaks after firing</td><td>off</td></tr>
<tr><td><code>/railgunportal config size <width> <height></code></td><td>Portal interior size (1-64)</td><td>2 x 3</td></tr>
<tr><td><code>/railgunportal config knockback <0.0-1.0></code></td><td>1.0 = vanilla knockback, 0.0 = none</td><td>0.25</td></tr>
</tbody>
</table>
<p>Settings are saved in <code>config/railgunportal.properties</code>.</p>
<h2>Requirements</h2>
<ul>
<li>Minecraft 26.2</li>
<li>Fabric Loader 0.20.1 or newer</li>
<li>Fabric API</li>
<li>Java 25</li>
</ul>


