Skip to content

Instantly share code, notes, and snippets.

def SetSDL(varName, newval):
import Plasma
ageSDL = Plasma.PtGetAgeSDL()
oldval = ageSDL[varName][0]
if newval == oldval:
print "xCheat.SetSDL(): won't change, %s is already = %d" % (varName,newval)
return
ageName = Plasma.PtGetAgeName()
if ageName == "Personal":
vault = Plasma.ptVault()
public static void sendUpdateToAllTrackers(Entity tag, Packet packet) {
final World w = tag.worldObj;
Preconditions.checkArgument(w instanceof WorldServer, "This method can only be executed on server side");
WorldServer server = (WorldServer)w;
server.getEntityTracker().sendPacketToAllPlayersTrackingEntity(tag, packet);
}
public static void sendPacketToWatchers(WorldServer server, int x, int z, Packet packet) {
int chunkX = x >> 4;
int chunkZ = z >> 4;
@boq
boq / gist:7272206
Last active December 27, 2015 05:09
package cpw.mods.fml.common.asm.transformers;
import java.util.Map;
import java.util.Set;
import net.minecraft.launchwrapper.IClassTransformer;
import org.objectweb.asm.*;
import org.objectweb.asm.commons.Method;
args = table.concat({...}, " ")
print("f(x,y) = " .. args)
f = loadstring('return ' .. args)
env = {}
setmetatable(env, {["__index"] = math})
setfenv(f, env)
p = peripheral.wrap("right") --hardcoded :P
p.clearMap()
Moon40
Bluest
Bock242
bethora Temphra53
Chadowvain
williamerior
Vison97
jammiet
dator
munause
2014-01-02 13:45:57 [FINE] [ForgeModLoader] Found API openperipheral.api (owned by OpenPeripheralCore providing OpenPeripheralApi) embedded in OpenPeripheralCore
2014-01-02 13:45:57 [INFO] [ForgeModLoader] Found mod(s) [ExtraUtilities] containing declared API package openperipheral.api (owned by OpenPeripheralCore) without associated API reference
2014-01-02 13:45:57 [FINE] [ForgeModLoader] Creating API container dummy for API OpenPeripheralApi: owner: OpenPeripheralCore, dependents: [ExtraUtilities]
...
2014-01-02 13:45:58 [FINE] [ForgeModLoader] Mod sorting data
2014-01-02 13:45:58 [FINE] [ForgeModLoader] ComputerCraft(ComputerCraft:1.57): ComputerCraft1.57.zip ()
2014-01-02 13:45:58 [FINE] [ForgeModLoader] CCTurtle(ComputerCraft Turtles:1.57): ComputerCraft1.57.zip (after:ComputerCraft)
2014-01-02 13:45:58 [FINE] [ForgeModLoader] OpenMods(OpenMods:0.1): OpenModsLib-0.1-snapshot-75.jar ()
2014-01-02 13:45:58 [FINE] [ForgeModLoader] OpenPeripheralCore(OpenPeripheralCore:0.2.1): OpenPeripheralCore-0.2.1-s
OpenBlock/Peripheral/etc FAQ/EAQ/Whatever
* I have strange problem with OpenPeripheral...
Check you version. Is it OpenPeripheral 0.2.1 pre8? Then it's not our problem
* Where is peripheral documentation? I don't see it on site.
It was moved in-game. Use openp/docs to access, usage:
- openp/docs <side> - list methods
- opens/docs <side> <method name> - list informaction about single method
Also, every peripheral has method .listMethods() that returns brief list of methods.
@boq
boq / gist:8887832
Created February 8, 2014 18:20
openp/docs
--[[
Made by SinZ and boq
--]]
local args = {...}
if #args == 0 then
print("usage: docs <side> (function)")
return
end
local side = args[1]
ᚠ.ᛒ.net
java.lang.NullPointerException 373
cpw.mods.fml.common.LoaderException 189
java.lang.NoClassDefFoundError 156
java.lang.IllegalArgumentException 146
java.lang.RuntimeException 109
java.lang.OutOfMemoryError 72
java.lang.ArrayIndexOutOfBoundsException 63
java.lang.IndexOutOfBoundsException 54
java.lang.ClassCastException 52
java.lang.NoSuchMethodError 32