Railgun Portal

Adds /railgunportal, a command that builds a Nether portal and fires a railgun-style barrage of arrows through it. Configurable speed, size, totems and knockback. Inspired by Unstable SMP.
After the portal fires, everything in front of it is dead and the loot piles up.

After the portal fires, everything in front of it is dead and the loot piles up.

Arrows spawn inside the portal and fly out in a straight line.

Arrows spawn inside the portal and fly out in a straight line.

Position, direction, arrow amount and fishing rod mode.

Position, direction, arrow amount and fishing rod mode.

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 &lt;x y z&gt; &lt;north|south|east|west&gt; &lt;arrows&gt; &lt;on|off&gt;</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 &lt;on/off&gt;</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 &lt;0.1-2500&gt;</code></td><td>Arrow speed</td><td>5.0</td></tr>
    <tr><td><code>/railgunportal config portalbreak &lt;on/off&gt;</code></td><td>Portal breaks after firing</td><td>off</td></tr>
    <tr><td><code>/railgunportal config size &lt;width&gt; &lt;height&gt;</code></td><td>Portal interior size (1-64)</td><td>2 x 3</td></tr>
    <tr><td><code>/railgunportal config knockback &lt;0.0-1.0&gt;</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>

Railgun Portal Team

profile avatar
  • 10
    Projects
  • 848
    Downloads

Hello

More from eclipseborn01View all