<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Colebot Blog</title><link>https://blog.colebot.com/</link><description>Recent content on Colebot Blog</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sat, 05 Dec 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://blog.colebot.com/index.xml" rel="self" type="application/rss+xml"/><item><title>About</title><link>https://blog.colebot.com/about/</link><pubDate>Sat, 05 Dec 2026 00:00:00 +0000</pubDate><guid>https://blog.colebot.com/about/</guid><description>&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;&#10;&lt;p&gt;Once upon a time, there was a magical unicorn. This unicorn had such a dull horn&#10;that everyone made fun of her. But when she grew older it became extra sparkly,&#10;so everyone started to become jealous of her. The end.&lt;/p&gt;&#10;&lt;h2 id="chapter-1"&gt;Chapter 1&lt;/h2&gt;&#10;&lt;p&gt;Wait, the story is already over. What am I supposed to put in the actual&#10;chapters if the story ended in the introduction??&lt;/p&gt;&#10;&lt;h2 id="chapter-2"&gt;Chapter 2&lt;/h2&gt;&#10;&lt;p&gt;Well, I guess we may as well get to know each other. I&amp;rsquo;m Cole, and I like&#10;computers and coding. This blog is going to be a place where I document&#10;literally anything and everything that I feel like documenting. It&amp;rsquo;s probably&#10;going to be about computers, but I&amp;rsquo;m not even going to impose that as a real&#10;limit on myself. Who knows what will happen?&lt;/p&gt;</description></item><item><title>Custom Attributes in Minecraft Forge</title><link>https://blog.colebot.com/posts/custom-attributes-minecraft-forge/</link><pubDate>Wed, 07 May 2025 00:00:00 +0000</pubDate><guid>https://blog.colebot.com/posts/custom-attributes-minecraft-forge/</guid><description>&lt;p&gt;In Minecraft Forge, registering custom attributes is one of the simplest things&#10;you can do! Let’s create a custom attribute &lt;code&gt;attack_range&lt;/code&gt; that we can apply to&#10;any entity and reference from other parts of the code.&lt;/p&gt;&#10;&lt;p&gt;First, we need a &lt;code&gt;ModAttributes&lt;/code&gt; class. Since there won’t be any additional&#10;files to go along with it, I like to put it in my &lt;code&gt;util&lt;/code&gt; folder. If you already&#10;have &lt;code&gt;ModItems&lt;/code&gt; or &lt;code&gt;ModBlocks&lt;/code&gt;, you will find the pattern to be very familiar.&lt;/p&gt;</description></item><item><title>Iterate forwards or backwards in a for loop</title><link>https://blog.colebot.com/posts/forward-backward-loop/</link><pubDate>Tue, 14 Nov 2023 00:00:00 +0000</pubDate><guid>https://blog.colebot.com/posts/forward-backward-loop/</guid><description>&lt;p&gt;It is trivial to write a for loop that counts upwards or that counts downwards,&#10;but what if you want to go upwards some of the time and downwards the rest of&#10;the time? Sure, you could use a function and switch between two different for&#10;loops each with the same function inside, but that’s not quite as elegant as&#10;what I’m about to show you today.&lt;/p&gt;&#10;&lt;p&gt;Normally, to count upwards, you start your loop at 0 and count up to the final&#10;element of the array. To count downwards, you start at the final element of the&#10;array and count down to 0. For this loop, though, we will always start at 0 and&#10;count either up or down. If we count up, we’re done after that. But if we count&#10;down, we end up with negative values for &lt;code&gt;i&lt;/code&gt;, which aren’t any good. That’s why&#10;we create a new value of &lt;code&gt;ix&lt;/code&gt;, which is offset upwards by one less than the&#10;array length only if we are counting downwards. We use this value of &lt;code&gt;ix&lt;/code&gt;&#10;wherever we would normally use &lt;code&gt;i&lt;/code&gt; inside the loop.&lt;/p&gt;</description></item><item><title>Javascript Async/Await Simplified</title><link>https://blog.colebot.com/posts/javascript-async-await/</link><pubDate>Fri, 08 Sep 2023 00:00:00 +0000</pubDate><guid>https://blog.colebot.com/posts/javascript-async-await/</guid><description>&lt;p&gt;For a long time, I’ve been confused about Async/Await syntax in JavaScript. I’d&#10;heard that these keywords were just syntactical sugar on top of Promises, but I&#10;didn’t know how exactly they worked. Well, I finally get it now, and it’s a lot&#10;simpler than I thought!&lt;/p&gt;&#10;&lt;h2 id="promises"&gt;Promises&lt;/h2&gt;&#10;&lt;p&gt;Promises on their own already help greatly with writing asynchronous code. Pass&#10;in a function to a new promise, then call .then() on the promise with a callback&#10;to execute once the function is done.&lt;/p&gt;</description></item></channel></rss>