Skip to content

Instantly share code, notes, and snippets.

View LemmaEOF's full-sized avatar

Lemma Brummel LemmaEOF

View GitHub Profile

Common Sense Balancing Standard (CSBS)

  • No ore tripling, quadrupling, quintupling, etc. Ever.
    • The absolute limit on ore multiplication is 2.6 ingots per ore block, with typical gains being closer to 1.6.
  • A single block can never store more than 36 stacks of items, even when it's part of a multiblock structure.
  • Furnace-burning fuels should produce no more than 30RF per furnace fuel tick.
    • It can produce this as slowly or as quickly as you want.
  • Wireless interactions are permissible, and a trivial wireless implementation generally performs well.
    • However, well-designed network-topography-aware systems (i.e. wires) often outstrip the performance of wireless systems, and occasionally even dumb cellular systems do. More importantly, wireless is unsatisfying gameplay.
  • Time is not a balancing mechanic.
@Dinnerbone
Dinnerbone / minecraft_commands.txt
Last active September 12, 2023 19:53
Minecraft Java Edition 1.13 changes
advancement grant <targets> everything
advancement grant <targets> from <advancement>
advancement grant <targets> only <advancement>
advancement grant <targets> only <advancement> <criterion>
advancement grant <targets> through <advancement>
advancement grant <targets> until <advancement>
advancement revoke <targets> everything
advancement revoke <targets> from <advancement>
advancement revoke <targets> only <advancement>
advancement revoke <targets> only <advancement> <criterion>

Smores - Canonical Colors

Metals

           Legacy    Modern
Steel      a4b6bd    888
Mithril    be94b2    b9c
Platinum   6fa9dd    9df
Zinc       c5d068 /  830
           ddd87f

Nickel 9f9285 dd9

@emilianavt
emilianavt / VRM.md
Last active July 8, 2024 15:48
Converting an avatar to VRM format

Converting an avatar to VRM format

In this guide, I assume you already know the basics of Unity and probably have previously uploaded an avatar to VRChat. If you haven't, you can still try to follow along, but some descriptions might be a bit too brief.

A more in-depth guide with screenshots can be found here.


Setup

Wearables API Concept

I wish to make a reusable, generic API for adding and accessing additional equipment slots to entities. My initial motivation for this comes from my backpacks (BetterStorage and later Wearable Backpacks), which should really just be able to make use of a "back" slot, ideally. Along with wanting to be able to carry certain other containers à la TerraFirmaCraft.

Existing Mods

  • Baubles defines a specific hardcoded set of extra slots: Amulet, head, 2x ring, body, charm, belt. Though I've noticed that some slots get little attention from the other mods, compared to the more popular ring and amulet slots.
    On the other hand, sometimes they're not enough - there's other mods that do the same thing as Baubles, offering even more extra equipment slots!
@RichardULZ
RichardULZ / Ascii_Windows1252_RefTable.md
Last active September 29, 2021 17:00
GBstudio Every character in the ascii png (table)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
! " # $ % & ' ( ) * + , - . /
0 1 2 3 4 5 6 7 8 9 : ; < = > ?
@ A B C D E F G H I J K L M N O
P Q R S T U V W X Y Z [ \ ] ^ _
` a b c d e f g h i j k l m n o
p q r s t u v w x y z { | } ~
@Juuxel
Juuxel / ImplementedInventory.java
Last active November 21, 2023 05:23
Implemented Inventory -- a simple SidedInventory implementation
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.inventory.Inventories;
import net.minecraft.inventory.Inventory;
import net.minecraft.inventory.SidedInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.CompoundTag;
import net.minecraft.util.collection.DefaultedList;
import net.minecraft.util.math.Direction;
import org.jetbrains.annotations.Nullable;
@deli73
deli73 / thtml.py
Created March 23, 2022 04:42
a simple script that parses ".thtml" files (html files with <include href="whatever.html"/> elements) into html files a la merge.js
### is this a mess? absolutely. do i care? only a little bit.
import argparse, re, time, watchdog.events
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler, FileModifiedEvent, FileCreatedEvent
from pathlib import Path, PurePath
def main():
parser = argparse.ArgumentParser()
parser.add_argument("-i", "--input", type=str,
@0xabad1dea
0xabad1dea / newspaper.html
Last active November 10, 2023 15:54
cohost newspaper template
<div style="width:100%; font-family:serif;font-size:16px;text-align:justify;">
<div style="font-weight:900;text-align:center;font-size:48px;border-bottom:3px solid black;font-variant:small-caps;margin-bottom:0px;">
The Eggbug Times
</div>
<div style="font-style:italic; font-size:18px;text-align:center;">
the fourth website to ever exist
</div>
<div style="text-transform:uppercase;font-size:48px;text-align:center;">
/**
* Lemma's Fancy Vanilla.js Date-Time Formatting Script!
* I'm actually pretty proud of this since I'm not a JS programmer lmao
*
* Available under MIT if you want to use this on your site!
*
* How to use:
* 1. Add this script to your HTML as a file marked defer
* 2. Create a <time> element somewhere in your code
* 3. Set the `datetime` property to be the ISO-8601 time code you want to use!