Skip to content

Instantly share code, notes, and snippets.

View PrincessOfEvil's full-sized avatar
🖤

Princess PrincessOfEvil

🖤
View GitHub Profile
@PrincessOfEvil
PrincessOfEvil / xml.coder
Created May 27, 2021 05:32
Modified XML coder file for Akelpad
;----------------------------------------------;
; Coder plugin syntax file ;
;----------------------------------------------;
;Colors
; Color need to be in #RRGGBB or #RGB format.
; If color equal to zero, then color ignored.
;
;Font styles
; 0 ignored.
@PrincessOfEvil
PrincessOfEvil / animator.md
Created August 13, 2019 16:25 — forked from Silverfeelin/animator.md
Starbound 1.4 new Lua functions

Json animator.transformPoint(String partName, Vec2F point)

Applies the specified part's transformation on the given point.


Json animator.transformPoly(String partName, PolyF poly)

Applies the specified part's transformation on the given poly.

Fluid myFluid = new FluidColored("fluff", 0xFF00FF, new ResourceLocation("tconstruct:blocks/fluids/molten_metal"), new ResourceLocation("tconstruct:blocks/fluids/molten_metal_flow")); FluidRegistry.registerFluid(myFluid); FluidRegistry.addBucketForFluid(myFluid);
NBTTagList alloysTagList = new NBTTagList();
NBTTagCompound fluid = new NBTTagCompound();
fluid.setString("FluidName", "fluff");
fluid.setInteger("Amount", 1000);
alloysTagList.appendTag(fluid);
fluid = new NBTTagCompound();
fluid.setString("FluidName", "lava");
/*
Copyright © 2014 RainWarrior
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software.
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,