Skip to content

Instantly share code, notes, and snippets.

View LexManos's full-sized avatar

LexManos LexManos

  • Forge Development LLC
  • Oregon
View GitHub Profile
@LexManos
LexManos / CM3.lua
Last active January 2, 2020 08:55
Re-worked version of Computercraft control for Compact Machines.
-- APIs
local robot = require("robot")
local component = require("component")
local computer = require("computer")
local me = component.upgrade_me
local db = component.database
local event = require("event")
local filesystem = require("filesystem")
local sides = require("sides")
@LexManos
LexManos / post.txt
Created September 12, 2019 17:22
1.14.4 rb 1
[b]Forge Version:[/b] 1.14.4-28.1.0
[b]Minecraft Version:[/b] 1.14.4
[b]Downloads:[/b]
[ul]
[li]Changelog [url=https://files.minecraftforge.net/maven/net/minecraftforge/forge/1.14.4-28.1.0/forge-1.14.4-28.1.0-changelog.txt](Direct)[/url][/li]
[li]Installer [url=https://files.minecraftforge.net/maven/net/minecraftforge/forge/1.14.4-28.1.0/forge-1.14.4-28.1.0-installer.jar](Direct)[/url][/li]
[li]MDK [url=https://files.minecraftforge.net/maven/net/minecraftforge/forge/1.14.4-28.1.0/forge-1.14.4-28.1.0-mdk.zip](Direct)[/url][/li]
[/ul]
[b]Intro:[/b]
@LexManos
LexManos / 1_enum.tsrg
Last active May 9, 2019 18:30
1.14 Code Standards
net/minecraft/block/Block$EnumOffsetType net/minecraft/block/Block$OffsetType
net/minecraft/block/material/EnumPushReaction net/minecraft/block/material/PushReaction
net/minecraft/client/renderer/BlockModelRenderer$EnumNeighborInfo net/minecraft/client/renderer/BlockModelRenderer$NeighborInfo
net/minecraft/client/renderer/EnumFaceDirection net/minecraft/client/renderer/FaceDirection
net/minecraft/client/renderer/EnumFaceDirection$Constants net/minecraft/client/renderer/FaceDirection$Constants
net/minecraft/client/renderer/EnumFaceDirection$VertexInformation net/minecraft/client/renderer/FaceDirection$VertexInformation
net/minecraft/enchantment/EnumEnchantmentType net/minecraft/enchantment/EnchantmentType
net/minecraft/entity/Pose net/minecraft/entity/Pose
net/minecraft/entity/passive/EntityPanda$Type net/minecraft/entity/passive/PandaEntity$Type
net/minecraft/entity/player/EnumPlayerModelParts net/minecraft/entity/player/PlayerModelPart
@LexManos
LexManos / 1-THOUGHTS
Last active September 30, 2018 13:45
1.12 Recipe enhancements
Basic loading.
To be done on ServerInit. This means things will load multiple times on the client.
Benifits:
Allows us to just nuke the custom recipes every server init
Allows us to have save leve overrides.
Primes us for syncing recipe types/contents S->C {Not gunna happen in 1.12, but I expect Mojang to work twards this in 1.13+}
Cons:
Increases single player server load time. No known stats at the moment but shouldn't be TO bad
Loading Process:
@LexManos
LexManos / floating-point-fix.patch
Created August 19, 2018 06:43
Floating Point Fix
diff
diff -ENwbur old/net/minecraft/advancements/criterion/MinMaxBounds.java new/net/minecraft/advancements/criterion/MinMaxBounds.java
--- old/net/minecraft/advancements/criterion/MinMaxBounds.java 2018-07-23 18:25:54.000000000 -0700
+++ new/net/minecraft/advancements/criterion/MinMaxBounds.java 2018-07-23 18:27:16.000000000 -0700
@@ -178,7 +178,7 @@
if (this.field_192517_b != null && this.field_192517_b > p_211354_1_) {
return false;
} else {
- return this.field_192518_c == null || this.field_192518_c >= p_211354_1_;
+ return this.field_192518_c == null || !(this.field_192518_c < p_211354_1_);
Do not PM voiced/opped people unless explicitly given premission. We do not like being spammed.
If you can not talk it is most likely because you are using a Web client, stop using a web client.
Do not say Lex's full nick unless nessasary.
Stay on topic.
Don't Ask to ask a question, just ask the question. If anyone is around they will answer. http://sol.gfxile.net/dontask.html
Banned topics:
Release ETAs,
Official API,
'MC would be better in {insert language here}'
@LexManos
LexManos / script.cs
Last active April 21, 2018 02:16
SpaceEngineersSorting
//Basic Readme:
//Name your inventories with <ItemName!Priority#Count,ItemName2!Priority2#Count2>
//Name is the name of the item you want, leave it empty for all items, categories also work: ingot, ore, component, or whatever other categories Space Engineers has.
//Priority is optional, defaults to 0, higher priorities will get fed first.
//Count is optional, this will be the number of this item in the inventory for it to be 'satisfied'. And able to move the extra to lower priority inventories.
//I've included defaults for a few things, like refinearies, assemblers, o2 gens, gatling guns, etc..
//But you can always override them by manually specfying in the name.
//This is a major work in progress and i'll be tweaking it as I play. But it works for me... so have fun, no support/warranty/etc..
{
"type": "minecraft:crafting_shapeless",
"ingredients": [
{
"item": "minecraft:stone",
"data": 0
},
{
"item": "minecraft:stone",
"data": 0
@LexManos
LexManos / 00.Readme.txt
Last active October 19, 2017 05:52
UltimateSkyrim Mod List
This is a installer for Skyrim modpacks/Ultimate Skyrim. It is very much a work in progress.
It requires files downloaded and specific metadata files in the downloads folder. I've written a script to do all of this downloading for you, however as Nexus has no official API I will be keeping that script private as to not piss them off.
It also requires my fork of pylzma to be installed:
https://github.com/LexManos/pylzma
Clone that, and run py setup.py install
It also requires rarfile to be installed:
pip install rarfile
--- ../src-base/minecraft/net/minecraft/item/crafting/ShapedRecipes.java
+++ ../src-work/minecraft/net/minecraft/item/crafting/ShapedRecipes.java
@@ -19,10 +19,8 @@
import net.minecraft.util.NonNullList;
import net.minecraft.util.ResourceLocation;
import net.minecraft.world.World;
-import net.minecraftforge.fml.relauncher.Side;
-import net.minecraftforge.fml.relauncher.SideOnly;
-public class ShapedRecipes implements IRecipe