<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: SecondWindMC</title>
    <description>The latest articles on DEV Community by SecondWindMC (@secondwindmc).</description>
    <link>https://dev.to/secondwindmc</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4263502%2F581a075b-13b0-4d30-bc62-aace54e8148a.png</url>
      <title>DEV Community: SecondWindMC</title>
      <link>https://dev.to/secondwindmc</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/secondwindmc"/>
    <language>en</language>
    <item>
      <title>Getting started with SecondWind and GraveGuard on your Paper server</title>
      <dc:creator>SecondWindMC</dc:creator>
      <pubDate>Tue, 24 Nov 2026 22:30:23 +0000</pubDate>
      <link>https://dev.to/secondwindmc/getting-started-with-secondwind-and-graveguard-on-your-paper-server-1ln6</link>
      <guid>https://dev.to/secondwindmc/getting-started-with-secondwind-and-graveguard-on-your-paper-server-1ln6</guid>
      <description>&lt;p&gt;Two free, open-source plugins for Paper 1.21.x servers. This is the quick-start guide for both.&lt;/p&gt;

&lt;h2&gt;
  
  
  Install
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Download the jars from &lt;a href="https://github.com/SecondWindMC" rel="noopener noreferrer"&gt;GitHub Releases&lt;/a&gt; or &lt;a href="https://hangar.papermc.io/SecondWindMC" rel="noopener noreferrer"&gt;Hangar&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Drop them into your server's &lt;code&gt;plugins/&lt;/code&gt; folder&lt;/li&gt;
&lt;li&gt;Restart (or &lt;code&gt;/reload&lt;/code&gt; if you must)&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  SecondWind — DBNO revive
&lt;/h2&gt;

&lt;p&gt;Lethal damage puts a player into a downed state instead of dying: they crawl and bleed out on a timer. A teammate holds sneak next to them to revive; an enemy can hold sneak to execute. Both timings and the bleed-out duration are in &lt;code&gt;plugins/SecondWind/config.yml&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  GraveGuard — death-chest graves
&lt;/h2&gt;

&lt;p&gt;Death spawns a grave chest holding the player's items and XP, protected for a configurable time, with a hologram countdown and a return compass. Config lives in &lt;code&gt;plugins/GraveGuard/config.yml&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Store + docs: &lt;a href="https://secondwindmc.github.io" rel="noopener noreferrer"&gt;https://secondwindmc.github.io&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;SecondWind source: &lt;a href="https://github.com/SecondWindMC/SecondWindRevive" rel="noopener noreferrer"&gt;https://github.com/SecondWindMC/SecondWindRevive&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;GraveGuard source: &lt;a href="https://github.com/SecondWindMC/GraveGuard" rel="noopener noreferrer"&gt;https://github.com/SecondWindMC/GraveGuard&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Both are MIT-licensed. Paid copies on the store get you priority support and fund development.&lt;/p&gt;

</description>
      <category>minecraft</category>
      <category>gamedev</category>
      <category>java</category>
      <category>opensource</category>
    </item>
    <item>
      <title>How to e2e-test Minecraft Paper plugins with headless bots (mineflayer + RCON)</title>
      <dc:creator>SecondWindMC</dc:creator>
      <pubDate>Tue, 24 Nov 2026 22:17:32 +0000</pubDate>
      <link>https://dev.to/secondwindmc/how-to-e2e-test-minecraft-paper-plugins-with-headless-bots-mineflayer-rcon-da9</link>
      <guid>https://dev.to/secondwindmc/how-to-e2e-test-minecraft-paper-plugins-with-headless-bots-mineflayer-rcon-da9</guid>
      <description>&lt;p&gt;Most Minecraft plugin "testing" is: install the jar, join with your client, punch things, eyeball it. That doesn't scale when your plugin's whole job is managing death states — you need two clients, deterministic damage, and assertions on things that happen in the world after a player dies.&lt;/p&gt;

&lt;p&gt;Here's the setup I use to e2e-test Paper plugins on a headless VM: &lt;strong&gt;mineflayer bots + RCON&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The pieces
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Paper server (test instance, separate dir)&lt;/span&gt;
java -jar paper-1.21.4.jar --nogui
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;mineflayer&lt;/strong&gt; (Node.js) — headless Minecraft clients. Two bots: &lt;code&gt;victim&lt;/code&gt; and &lt;code&gt;helper&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;RCON&lt;/strong&gt; — server console over TCP. The only reliable way to apply real damage (&lt;code&gt;/damage&lt;/code&gt;), teleport, and set gamemode.&lt;/li&gt;
&lt;li&gt;Assertions: check player state via mineflayer (&lt;code&gt;entity.health&lt;/code&gt;, &lt;code&gt;bot.game.gameMode&lt;/code&gt;), and world state via RCON (&lt;code&gt;/execute if block&lt;/code&gt;, &lt;code&gt;/data get&lt;/code&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Gotchas that will waste your day
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;code&gt;/kill&lt;/code&gt; reports damage source &lt;code&gt;KILL&lt;/code&gt;, not &lt;code&gt;GENERIC_KILL&lt;/code&gt;.&lt;/strong&gt; Paper 1.21's last-damage-cause for the vanilla kill command is &lt;code&gt;KILL&lt;/code&gt; — if your death listener filters on &lt;code&gt;GENERIC_KILL&lt;/code&gt; it will never fire. I burned an hour on this.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;RCON responses don't include &lt;code&gt;execute&lt;/code&gt; sub-command output.&lt;/strong&gt; &lt;code&gt;execute if block 0 65 0 chest run say FOUND&lt;/code&gt; prints &lt;code&gt;FOUND&lt;/code&gt; to the &lt;strong&gt;server log&lt;/strong&gt;, not the RCON response. Either read the log file, or use &lt;code&gt;/data get block&lt;/code&gt; / &lt;code&gt;/execute ... run return&lt;/code&gt; variants that do echo back.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;A dead bot respawns at spawn — and the death chunk unloads.&lt;/strong&gt; If you assert "is there a chest at the death point" after respawning, the chunk may already be unloaded. Keep a "spy" bot parked at the death location holding the chunk open.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Physics is async.&lt;/strong&gt; Waiting fixed milliseconds is flaky on a loaded VM. Poll &lt;code&gt;bot.entity.position&lt;/code&gt;/&lt;code&gt;bot.entity.velocity&lt;/code&gt; until quiescent, with a timeout.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;The bots count as players.&lt;/strong&gt; &lt;code&gt;online-mode=false&lt;/code&gt; test server, obviously — but also remember &lt;code&gt;player-idle-timeout&lt;/code&gt; and per-player plugins (death chests keyed to UUID!) see the bot's UUID, so give each bot a distinct name.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Example: asserting a grave spawned
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// victim dies at a known spot; spy bot watches the chunk&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;rcon&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`execute positioned ${x} ${y} ${z} run kill @p[name=victim]`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;sleep&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1500&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="c1"&gt;// from spy bot held at the location:&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;block&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;spy&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;blockAt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Vec3&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;z&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nf"&gt;assert&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;block&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="s1"&gt;'chest'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sb"&gt;`expected chest, got ${block.name}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's it. Headless, repeatable, runs in CI. The full harness I use is ~300 lines of Node.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Built while developing SecondWind (DBNO revives — &lt;a href="https://github.com/SecondWindMC/SecondWindRevive" rel="noopener noreferrer"&gt;https://github.com/SecondWindMC/SecondWindRevive&lt;/a&gt;) and GraveGuard (death chests — &lt;a href="https://github.com/SecondWindMC/GraveGuard" rel="noopener noreferrer"&gt;https://github.com/SecondWindMC/GraveGuard&lt;/a&gt;). Both MIT-licensed Paper 1.21.x plugins.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>minecraft</category>
      <category>testing</category>
      <category>java</category>
      <category>gamedev</category>
    </item>
    <item>
      <title>I built a death-chest plugin for Minecraft that never eats your items (Paper 1.21)</title>
      <dc:creator>SecondWindMC</dc:creator>
      <pubDate>Tue, 24 Nov 2026 22:11:46 +0000</pubDate>
      <link>https://dev.to/secondwindmc/i-built-a-death-chest-plugin-for-minecraft-that-never-eats-your-items-paper-121-3b5e</link>
      <guid>https://dev.to/secondwindmc/i-built-a-death-chest-plugin-for-minecraft-that-never-eats-your-items-paper-121-3b5e</guid>
      <description>&lt;p&gt;I lost a full diamond kit to a lava pool one time too many, so I built &lt;strong&gt;GraveGuard&lt;/strong&gt; — a death-chest plugin for Paper 1.21.x that drops a protected grave where you die instead of scattering your items into the void.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;On death, your items + XP go into a chest at the death location&lt;/li&gt;
&lt;li&gt;A hologram shows a live countdown of the protection timer&lt;/li&gt;
&lt;li&gt;Only you can open the grave while it's protected — then it opens up for anyone (or despawns, configurable)&lt;/li&gt;
&lt;li&gt;You get a compass that points back to your grave&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Everything is configurable in &lt;code&gt;config.yml&lt;/code&gt; — protection duration, whether graves despawn, hologram text, messages.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why not existing plugins?
&lt;/h2&gt;

&lt;p&gt;Most death-chest plugins either haven't been updated for modern Paper, bury key behavior behind config formats nobody wants to touch, or silently eat items in edge cases (dying in the void, near bedrock, on non-solid blocks). GraveGuard searches for a valid grave spot and, if it truly can't place one, drops your items normally — &lt;strong&gt;it never silently deletes your inventory&lt;/strong&gt;. That bug class is embarrassingly common and I specifically built a restore-on-failure path for it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The code
&lt;/h2&gt;

&lt;p&gt;It's MIT-licensed and small enough to read in one sitting:&lt;/p&gt;

&lt;p&gt;👉 &lt;a href="https://github.com/SecondWindMC/GraveGuard" rel="noopener noreferrer"&gt;https://github.com/SecondWindMC/GraveGuard&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Latest build is on the releases page, or grab it from Hangar:&lt;/p&gt;

&lt;p&gt;👉 &lt;a href="https://hangar.papermc.io/SecondWindMC/GraveGuard" rel="noopener noreferrer"&gt;https://hangar.papermc.io/SecondWindMC/GraveGuard&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Drop the jar in &lt;code&gt;plugins/&lt;/code&gt;, restart, done. No dependencies.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Companion plugin: SecondWind adds Fortnite-style DBNO revives (go down instead of dying, teammates pick you back up). Same deal — open source, Paper 1.21.x: &lt;a href="https://github.com/SecondWindMC/SecondWindRevive" rel="noopener noreferrer"&gt;https://github.com/SecondWindMC/SecondWindRevive&lt;/a&gt; — store: &lt;a href="https://secondwindmc.github.io" rel="noopener noreferrer"&gt;https://secondwindmc.github.io&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>minecraft</category>
      <category>gamedev</category>
      <category>java</category>
      <category>opensource</category>
    </item>
    <item>
      <title>I built a Fortnite-style DBNO revive plugin for Minecraft (Paper 1.21)</title>
      <dc:creator>SecondWindMC</dc:creator>
      <pubDate>Tue, 24 Nov 2026 22:09:45 +0000</pubDate>
      <link>https://dev.to/secondwindmc/i-built-a-fortnite-style-dbno-revive-plugin-for-minecraft-paper-121-bif</link>
      <guid>https://dev.to/secondwindmc/i-built-a-fortnite-style-dbno-revive-plugin-for-minecraft-paper-121-bif</guid>
      <description>&lt;p&gt;Death in Minecraft survival servers is binary  you die, your items scatter, your XP evaporates. I wanted Fortnite-style "down but not out" (DBNO) mechanics, so I built it as a Paper 1.21.x plugin.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How it works&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Lethal damage puts the player into a downed state: forced crawl, a bleed-out boss bar, no item drops yet.&lt;/li&gt;
&lt;li&gt;A teammate sneak-holding next to them revives them (a few seconds channel  configurable).&lt;/li&gt;
&lt;li&gt;An enemy can hold sneak to execute, or the timer runs out  real death.&lt;/li&gt;
&lt;li&gt;Heart/item effects only fire on real death, so lifesteal SMP mechanics stay correct.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The plugin is small on purpose: one config.yml, one messages.yml, no dependencies beyond Paper.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Testing it&lt;/strong&gt;&lt;br&gt;
I verified it end-to-end on live Paper 1.21.4 and 1.21.11 servers with two bot clients: downing, reviving, bleed-out, execution  12 checks, all passing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Get it&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Source + jars: &lt;a href="https://github.com/SecondWindMC/SecondWindRevive" rel="noopener noreferrer"&gt;https://github.com/SecondWindMC/SecondWindRevive&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Hangar: &lt;a href="https://hangar.papermc.io/SecondWindMC/SecondWindRevive" rel="noopener noreferrer"&gt;https://hangar.papermc.io/SecondWindMC/SecondWindRevive&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Store: &lt;a href="https://secondwindmc.github.io" rel="noopener noreferrer"&gt;https://secondwindmc.github.io&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Also shipped GraveGuard (death-chest with protection timer, hologram and return compass): &lt;a href="https://github.com/SecondWindMC/GraveGuard" rel="noopener noreferrer"&gt;https://github.com/SecondWindMC/GraveGuard&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Feedback welcome  what would you tune first?&lt;/p&gt;

</description>
      <category>gamedev</category>
      <category>java</category>
      <category>minecraft</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
