Skip to content

Instantly share code, notes, and snippets.

@Shazuli
Shazuli / nxdraw.lua
Created August 24, 2018 19:30 — forked from nexustix/nxdraw.lua
nxdraw - Simple rendering of geometric primitives for OpenComputers
--[[
name: nxdraw
version: 0.1.1
description: Simple rendering of geometric primitives for OpenComputers
author: nexustix
]]--
local nxdraw = {}
nxdraw.__index = nxdraw
This file has been truncated, but you can view the full file.
[23May2019 11:50:46.030] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmluserdevclient, --fml.mcpVersion, 20190213.203750, --fml.mcVersion, 1.13.2, --fml.forgeGroup, net.minecraftforge, --fml.forgeVersion, 25.0.209, --version, MOD_DEV, --assetIndex, 1.13.1, --assetsDir, /home/simon/.gradle/caches/forge_gradle/assets, --username, Dev, --accessToken, ❄❄❄❄❄❄❄❄, --userProperties, {}]
[23May2019 11:50:46.032] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher starting: java version 1.8.0_181
[23May2019 11:50:46.064] [main/DEBUG] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Found launch services [minecraft,fmldevclient,fmldevserver,fmluserdevserver,testharness,fmlclient,fmluserdevclient,fmlserver]
[23May2019 11:50:46.071] [main/DEBUG] [cpw.mods.modlauncher.TransformationServicesHandler/MODLAUNCHER]: Found transformer services : [fml]
crash-2019-12-11_18.22.48-client
@Shazuli
Shazuli / wood_oak_bucket.json
Created January 21, 2020 10:14
Bucket Model.
{
"__comment": "Model generated using MrCrayfish's Model Creator (https://mrcrayfish.com/tools?id=mc)",
"textures": {
"particle": "minecraft:block/oak_planks",
"side": "minecraft:block/oak_planks",
"bottom": "minecraft:block/spruce_planks",
"handle": "minecraft:block/spruce_log"
},
"elements": [
{
@Shazuli
Shazuli / BlockCableCase.java
Created February 22, 2020 18:39
Cuboid rotation problem.
private static final byte[] SIDE = {0,2,2,2,14,14}, SIDE_MOD = {0,0,2,2,16,16}; // The side shapes for connected and module hitbox.
public static final VoxelShape[] CONNECTION_SIDES = getSides(SIDE[0],SIDE[1],SIDE[2],SIDE[3],SIDE[4],SIDE[5]); // Get the sides.
public static final VoxelShape MIDDLE = Block.makeCuboidShape(2,2,2,14,14,14);
private static VoxelShape[] getSides(short x1, short y1, short z1, short x2, short y2, short z2)
{
VoxelShape[] t = new VoxelShape[6];
t[0] = Block.makeCuboidShape(x1,y1,z1,x2,y2,z2);
short[] k1 = {(short)(x1+8),(short)(y1+8),(short)(z1+8)}; // Transform it to the middle (16px/2 = 8).