Skip to content

Instantly share code, notes, and snippets.

View AbrarSyed's full-sized avatar

Abrar Syed AbrarSyed

View GitHub Profile
@AbrarSyed
AbrarSyed / build.gradle
Last active August 30, 2020 04:37
A custom script to build custom MCP snapshots.
apply plugin: "java"
apply plugin: "maven"
// edit this area only.
// the build.gradle would have the patttern minecraft { mappings = "channel_dlVersion" }
ext.channel = "SomeRandomName"
ext.dlVersion = "custom"
ext.mcVersion = "1.7.10" // the targetted MC version
group = "de.oceanlabs.mcp"
@AbrarSyed
AbrarSyed / bootstrap.gradle
Last active January 18, 2018 00:36
This makes gradle compile java6 stuff with the actual java 6 classpath. --- Usage: Drop this file in USER_HOME/.gradle/init.d --- You will probably want to change the path to your java6 instance.
allprojects {
afterEvaluate {
def versions = [
'1.6' : "/usr/lib/jvm/java-6-jdk/jre/lib/",
'1.7' : "/usr/lib/jvm/java-7-openjdk/jre/lib/",
//'1.7' : "C:/Program Files/java/jre7/lib", // windows example (I think)
'1.8' : "/usr/lib/jvm/java-8-openjdk/jre/lib/"
]
// convert map to classpaths
/**
* Generates a TeamCity XML changelog via the REST API.
*/
task("createChangelog").doLast {
def teamCityURL = "http://ci.calclavia.com/"
/**
* Create a new file
*/
@AbrarSyed
AbrarSyed / gist:7244604
Last active July 24, 2017 11:54
New features planned for SecretRoomsMod

FE support

Storing the owner of a Secret Block (username). This can be used for permission checking in the /srm-show command... This should also be used in the CamoGate, where the setting of the blocks can post block events.

New Features

  • Anti-Camo Dust Thrown in the air. Shows camo blocks for a limited amount of time (5 seconds? 10 seconds?)
  • Anti-Camo Cannon Shoots camo dust (high consumption, a stack a second?) and permanently shows camo blocks, until they are re-camoed by right-clicking with camo-paste.
@AbrarSyed
AbrarSyed / build.gradle
Created October 28, 2015 15:22
tweaker-server example
plugins {
id "net.minecraftforge.gradle.tweaker-server" version "2.0.2"
}
version = "1.0"
group= "com.yourname.modid" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "modid"
minecraft {
version = "1.8"
{
"versions": [
{
"status": "fine",
"docUrl": "https://forgegradle.readthedocs.org",
"version": "2.0.0",
"changes": [
"Massive update fro ForgeGradle 1.2"
],
"bugs": [
@AbrarSyed
AbrarSyed / ideafix.gradle
Last active August 29, 2015 14:18
Put this in ~/.gradle/init.d
afterEvaluate {
allprojects { project ->
if (project.plugins.hasPlugin("idea"))
{
idea { module { inheritOutputDirs = true } }
}
}
}

Keybase proof

I hereby claim:

  • I am abrarsyed on github.
  • I am abrarsyed (https://keybase.io/abrarsyed) on keybase.
  • I have a public key whose fingerprint is 2139 56E2 A661 F2A2 BAC3 2420 5E79 01F7 D085 FF5F

To claim this, I am signing this object:

#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
##################################################
# Fancy PWD display function
##################################################