Skip to content

Instantly share code, notes, and snippets.

View CAD97's full-sized avatar

Crystal Durham CAD97

View GitHub Profile
@CAD97
CAD97 / Notes.md
Created September 8, 2015 16:56
Custom low hertz clock in Minecraft

First, let me explain the syntax I've used above. REPEAT/CHAIN/(IM)PULSE should be self explaining. The commands following are what's in the cmd block. Indent of a block means that it's chaining from previous.

BLOCK means it is conditional on the previous block in the chain.

The test score is the number of ticks between pulses. You could make it a score of its own for on-the-fly editing. !IMPORTANT! Make sure that the IMPULSE block is {auto:0b} when you leave it, otherwise it won't trigger again (as it's an impulse.)

I think as an idiom, if line is meant to be pulsed once, then rest a number of ticks, then it should be pulsed by an IMPULSE.

@CAD97
CAD97 / TextController.cs
Created May 15, 2015 12:28
My implementation of the Udemy Unity Course "Text101" game.
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class TextController : MonoBehaviour {
#region Unity editor fields
[SerializeField]
private State startingState;
#endregion
@CAD97
CAD97 / NumberWizard.cs
Created May 13, 2015 16:55
My implementation of the NumberWizard game from the Udemy Unitycourse
using UnityEngine;
using System.Collections;
public class NumberWizard : MonoBehaviour {
int max;
int min;
int guess;
void Start () {
package com.cad97.spawnercraft;
import net.minecraft.block.BlockMobSpawner;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityList;
import net.minecraft.item.ItemStack;
import net.minecraftforge.event.entity.living.LivingDropsEvent;
import net.minecraftforge.event.world.BlockEvent.HarvestDropsEvent;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;