Skip to content

Commit

Permalink
Add base mod
Browse files Browse the repository at this point in the history
  • Loading branch information
Quantum64 committed Sep 11, 2016
1 parent 7dee2b9 commit 79b7412
Show file tree
Hide file tree
Showing 7 changed files with 348 additions and 0 deletions.
236 changes: 236 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,239 @@ $RECYCLE.BIN/
Network Trash Folder
Temporary Items
.apdisk

##########################################################################################
My stuff
gradlew*
gradle/
.gradle/


#################
## Custom
#################

*settings.xml
build.number
build.number
site/

#################
## Eclipse and IntelliJ
#################
.idea/
test/
*.pydevproject
.metadata
bin/
tmp/
target/
production/
META-INF/
*.class
*.iml
*.tmp
*.bak
*.swp
*~.nib
local.properties
.settings/
.loadpath
# External tool builders
.externalToolBuilders/
# Locally stored "Eclipse launch configurations"
*.launch
*.jar

#Eclipse Juno Project Files
.project
.classpath

# CDT-specific
.cproject

# PDT-specific
.buildpath


#################
## Visual Studio
#################

## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# User-specific files
*.suo
*.user
*.sln.docstates

# Build results

[Rr]elease/
x64/
build/
[Bb]in/
[Oo]bj/

# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*

*_i.c
*_p.c
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.scc

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf
*.cachefile

# Visual Studio profiler
*.psess
*.vsp
*.vspx

# Guidance Automation Toolkit
*.gpState

# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper

# TeamCity is a build add-in
_TeamCity*

# DotCover is a Code Coverage Tool
*.dotCover

# NCrunch
*.ncrunch*
.*crunch*.local.xml

# Installshield output folder
[Ee]xpress/

# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html

# Click-Once directory
publish/

# Publish Web Output
*.Publish.xml
*.pubxml

# NuGet Packages Directory
##
#packages/

# Windows Azure Build Output
csx
*.build.csdef

# Windows Store app package directory
AppPackages/

# Others
sql/
*.Cache
ClientBin/
[Ss]tyle[Cc]op.*
~$*
*~
*.dbmdl
*.[Pp]ublish.xml
*.pfx
*.publishsettings

# RIA/Silverlight projects
Generated_Code/

# Backup & report files from converting an old project file to a newer
# Visual Studio version. Backup files are not needed, because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm

# SQL Server files
App_Data/*.mdf
App_Data/*.ldf

#############
## Windows detritus
#############

# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Mac crap
.DS_Store


#############
## Python
#############

*.py[co]

# Packages
*.egg
*.egg-info
eggs/
parts/
var/
sdist/
develop-eggs/
.installed.cfg

# Installer logs
pip-log.txt

# Unit test / coverage reports
.coverage
.tox

#Translations
*.mo

#Mr Developer
.mr.developer.cfg
/.idea/

63 changes: 63 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
buildscript {
repositories {
mavenCentral()
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
}
}

apply plugin: 'forge'

version = "1.0"
group= "co.q64.exgregilo" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "exgregilo"

minecraft {
version = "1.7.10-10.13.4.1558-1.7.10"
runDir = "eclipse"
}

dependencies {
// you may put jars on which you depend on in ./libs
// or you may define them like so..
//compile "some.group:artifact:version:classifier"
//compile "some.group:artifact:version"

// real examples
//compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env
//compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env

// for more info...
// http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
// http://www.gradle.org/docs/current/userguide/dependency_management.html

}

processResources
{
// this will ensure that this task is redone when the versions change.
inputs.property "version", project.version
inputs.property "mcversion", project.minecraft.version

// replace stuff in mcmod.info, nothing else
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info'

// replace version and mcversion
expand 'version':project.version, 'mcversion':project.minecraft.version
}

// copy everything else, thats not the mcmod.info
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
}
18 changes: 18 additions & 0 deletions src/main/java/co/q64/exgregilo/ExGregilo.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package co.q64.exgregilo;

import net.minecraft.init.Blocks;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.event.FMLInitializationEvent;

@Mod(modid = ExGregilo.MODID, version = ExGregilo.VERSION)
public class ExGregilo {
public static final String MODID = "exgregilo";
public static final String VERSION = "1.0";

@EventHandler
public void init(FMLInitializationEvent event) {
// some example code
System.out.println("DIRT BLOCK >> " + Blocks.dirt.getUnlocalizedName());
}
}
5 changes: 5 additions & 0 deletions src/main/java/co/q64/exgregilo/proxy/ClientProxy.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package co.q64.exgregilo.proxy;

public class ClientProxy extends CommonProxy {

}
5 changes: 5 additions & 0 deletions src/main/java/co/q64/exgregilo/proxy/CommonProxy.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package co.q64.exgregilo.proxy;

public abstract class CommonProxy {

}
5 changes: 5 additions & 0 deletions src/main/java/co/q64/exgregilo/proxy/ServerProxy.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package co.q64.exgregilo.proxy;

public class ServerProxy extends CommonProxy {

}
16 changes: 16 additions & 0 deletions src/main/resources/mcmod.info
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"modid": "exgregilo",
"name": "ExGregilo",
"description": "GregTech addon for Ex Nihlo",
"version": "${version}",
"mcversion": "${mcversion}",
"url": "",
"updateUrl": "",
"authorList": ["Quantum64"],
"credits": "The r/feedthebeast subreddit",
"logoFile": "",
"screenshots": [],
"dependencies": []
}
]

0 comments on commit 79b7412

Please sign in to comment.