Skip to content

Instantly share code, notes, and snippets.

Gist of it:

  • Player swapped Apple for callo
  • People got angry about that and called out Player
  • Player responded by silencing people
  • People went crazy shit about silencing and started telling Player all his flaws to the face
  • Player went on a power trip and used the nuclear option: ban and mute 30+ people, he removed several hundreds of messages and managed to kick out of the team several big Fabric and Yarn contributors
  • modmuss left Fabric for a while
  • people are now actually preparing a Fabric fork with better and well defined governance a drop in replacement with decent governance at first, better tech afterwards

Result:

UpdatesFetcher.instance()
.updateFor("modid") // returns an optional or maybe a future
.ifPresent(update -> {
System.out.println(update.url());
});
import com.google.common.base.Preconditions;
import net.fabricmc.fabric.api.transfer.v1.storage.Storage;
import net.fabricmc.fabric.api.transfer.v1.storage.StorageView;
import net.fabricmc.fabric.api.transfer.v1.transaction.Participant;
import net.fabricmc.fabric.api.transfer.v1.transaction.Transaction;
import net.fabricmc.fabric.api.transfer.v1.transaction.TransactionResult;
import org.jetbrains.annotations.Nullable;
public class SimpleStorage<T> implements Storage<T>, StorageView<T>, Participant<Long> {
private final long maxAmount;
{
"schemaVersion": 1,
"id": "example",
"version": "<unix timestamp>",
"metadata": {
"displayName": "Example",
"version": "1.0.0-pre.2"
},
"components": [
{
@falseresync
falseresync / stylus.css
Last active October 23, 2021 09:56
Fabric Wiki Fixer
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');
body {
background: #f6f5f3;
font-family: Inter;
font-size: 16px !important;
}
#dokuwiki__site {
max-width: 90em;
@falseresync
falseresync / data.txt
Created December 4, 2020 20:05
DFS power grid net average
0 0 0 0 0 0 -3 0 0
0 0 0 0 0 0 x 0 0
0 0 x x x x x x 2
0 0 x 0 x 0 x 0 0
0 0 x 0 x x x x 2
-3 x x 0 0 x 0 0 0
0 0 x x x x 0 0 0
0 0 0 0 0 3 0 0 0
@falseresync
falseresync / dependency.manifesto.packbrew.jsonc
Last active December 4, 2020 15:15
Universal modpack format by false :)
{
"formatVersion": "1.0.0-alpha.1",
"id": "lambdabettergrass",
"meta": {
"name": "LambdaBetterGrass",
"latest": "1.0.1",
"authors": [
{
"name": "LambdAurora",
Caused by: java.lang.NullPointerException
at net.dblsaiko.hctm.client.render.model.UnbakedWireModel.<init>(UnbakedWireModel.java:102) ~[73edc91a-5f81-4419-8c17-8c2bd2b968f0.jar:?]
at net.dblsaiko.rswires.client.RSWiresClient$onInitializeClient$1.apply(RSWiresClient.java:22) ~[rswires-4.0.8-standalone.jar:?]
at net.dblsaiko.rswires.client.RSWiresClient$onInitializeClient$1.apply(RSWiresClient.java:16) ~[rswires-4.0.8-standalone.jar:?]
at net.fabricmc.fabric.impl.client.model.ModelLoadingRegistryImpl$LoaderInstance.lambda$new$0(ModelLoadingRegistryImpl.java:66) ~[e5c6b1ce-cbbc-4f44-9bf8-936f28df90c1.jar:?]
at net.fabricmc.fabric.impl.client.model.ModelLoadingRegistryImpl$LoaderInstance$$Lambda$2517/0000000000000000.apply(Unknown Source) ~[?:?]
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) ~[?:1.8.0_252]
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382) ~[?:1.8.0_252]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:497) ~[
// Note: remove all comments, Minecraft doesn't support them
// File: src/main/resources/assets/my_mod/models/item/my_item.json
{
// You can extend any existing model
// Minecraft's item/generated is a simple generic item
"parent": "item/generated",
"textures": {
// You can have layers!
// Each value is a texture identifier
// Path to texture for this must be following:
public class MyMod implements ModInitializer {
@Override
public void onInitialize() {
Registry.register(
// You want to register an item
Registry.ITEM,
// Your item ID will be my_mod:my_item
new Identifier("my_mod", "my_item"),
// Your item will appear in Miscellaneous tab
// There're more settings, take a look at those using