Skip to content

Instantly share code, notes, and snippets.

View Devan-Kerman's full-sized avatar

Devan-Kerman Devan-Kerman

View GitHub Profile
This file has been truncated, but you can view the full file.
> Configure project :
Fabric Loom: 0.2.7-SNAPSHOT Build(jenkins #20)
:setting up loom dependencies
:setting up mappings (yarn 1.15.2+build.7)
> Task :compileJava
:setting java compiler args
Could not find refmap definition, will be using default name: fukkit-refmap.json
java.lang.ClassNotFoundException: com.github.fukkitmc.fukkit.access.CraftHandled
/**
* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
* binary, for any purpose, commercial or non-commercial, and by any
* means.
*
* In jurisdictions that recognize copyright laws, the author or authors
* of this software dedicate any and all copyright interest in the
@Devan-Kerman
Devan-Kerman / StaccMixin.java
Last active June 11, 2020 18:29
Stacc mixin
package net.devtech.stacc.mixin;
import io.netty.buffer.ByteBuf;
import org.spongepowered.asm.mixin.Final;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Mutable;
import org.spongepowered.asm.mixin.Overwrite;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.Unique;
import org.spongepowered.asm.mixin.injection.At;

Quanitity Types

This is how amounts of fluids are represented, there are a few contenders

Fractions

An object that stores a numerator and denominator.

What it does right
Fractions can represent any fraction, so if your mod needs 1/543, then u can do that.

Problems\

@Devan-Kerman
Devan-Kerman / FOA.md
Last active January 10, 2023 04:55
A proposal for a new type of magic mod

Github

https://github.com/Foundations-of-Alchemy DM me on discord ueaj#0086

tl;dr

So, every mod has lore that explains how the mod functions, and usually the mod follows the logic outlined in the lore. In this mod, the content of the mod is finding out the lore.

The mod

You make up theories, kindof how in minecraft people like to make up lore (even though there is none), and based on those theories you experiment. For example if u think the mod operates on a doodle god (greek elements) like system, you'd put fire and water together an expect alcohol. If your theory is right, you're rewarded with alcohol, if it's not, you get nothing. But, to draw out the discovery process, we can make the lore undiscoverable with vanilla items, you need to make incomplete theories first. And in testing those incomplete theories, you will find things that agree with it, and things that don't. When you find something that isn't explained by your theory, you need to make a new one. If you truely understand your theory

A terrible language that could pass as a real thing if you gave it to a webdev.

Values functions (func param1) objects (package, class, int, etc.)

Variable Declaration
There is no explicit variable declaration, nor type safety

hello = 5

Sandboxed Java Bytecode

pros:
   easy to use, can write in the same language the rest of the code is in
   performant, no extra runtime needed
   smol, no need to package a runtime
cons:
   possibility of sandbox escape (unlikely, but it might happen)
   may allow OEEL to be used as a DRM