mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-21 11:54:22 +01:00
First run at forge port
This commit is contained in:
parent
0fb1c77137
commit
af88f75de7
2 changed files with 31 additions and 37 deletions
58
build.gradle
58
build.gradle
|
@ -16,7 +16,7 @@ buildscript {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'net.minecraftforge.gradle.liteloader'
|
apply plugin: 'net.minecraftforge.gradle.forge'
|
||||||
apply plugin: 'org.spongepowered.mixin'
|
apply plugin: 'org.spongepowered.mixin'
|
||||||
|
|
||||||
group = 'com.minelittlepony'
|
group = 'com.minelittlepony'
|
||||||
|
@ -27,8 +27,8 @@ targetCompatibility = 1.8
|
||||||
sourceCompatibility = 1.8
|
sourceCompatibility = 1.8
|
||||||
|
|
||||||
minecraft {
|
minecraft {
|
||||||
version = "1.12.2"
|
version = "1.12.2-14.23.4.2705"
|
||||||
mappings = 'snapshot_20170919'
|
mappings = 'snapshot_20180606'
|
||||||
runDir = 'run'
|
runDir = 'run'
|
||||||
replace '@VERSION@', project.version
|
replace '@VERSION@', project.version
|
||||||
}
|
}
|
||||||
|
@ -43,50 +43,44 @@ sourceSets {
|
||||||
ext.refMap = 'minelp.mixin.refmap.json'
|
ext.refMap = 'minelp.mixin.refmap.json'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
repositories {
|
||||||
litemod.json {
|
maven {
|
||||||
mcversion = '1.12.r2'
|
url = 'https://repo.spongepowered.org/maven'
|
||||||
author = 'Verdana, Rene_Z, Mumfrey, Killjoy1221'
|
}
|
||||||
description = 'Mine Little Pony turns players and mobs into ponies'
|
|
||||||
description.minelittlepony = '''\
|
|
||||||
Mine Little Pony turns players and mobs into ponies
|
|
||||||
Press F9 ingame to access settings'''.stripIndent()
|
|
||||||
description.hdskinsmod = '''\
|
|
||||||
Separate skin server for Mine Little Pony that also supports HD skins.
|
|
||||||
Access via button on the main menu.'''.stripIndent()
|
|
||||||
|
|
||||||
mixinConfigs += [
|
|
||||||
'minelp.mixin.json',
|
|
||||||
'hdskins.mixin.json'
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
dependencies {
|
||||||
|
compile('org.spongepowered:mixin:0.7.8-SNAPSHOT') {transitive = false}
|
||||||
|
}
|
||||||
|
//litemod.json {
|
||||||
|
// mcversion = '1.12.r2'
|
||||||
|
// author = 'Verdana, Rene_Z, Mumfrey, Killjoy1221'
|
||||||
|
// description = 'Mine Little Pony turns players and mobs into ponies'
|
||||||
|
// description.minelittlepony = '''\
|
||||||
|
// Mine Little Pony turns players and mobs into ponies
|
||||||
|
// Press F9 ingame to access settings'''.stripIndent()
|
||||||
|
// description.hdskinsmod = '''\
|
||||||
|
// Separate skin server for Mine Little Pony that also supports HD skins.
|
||||||
|
// Access via button on the main menu.'''.stripIndent()
|
||||||
|
//
|
||||||
|
// mixinConfigs += [
|
||||||
|
// 'minelp.mixin.json',
|
||||||
|
// 'hdskins.mixin.json'
|
||||||
|
// ]
|
||||||
|
//}
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
from sourceSets.hdskins.output
|
from sourceSets.hdskins.output
|
||||||
from litemod
|
|
||||||
}
|
}
|
||||||
sourceJar {
|
sourceJar {
|
||||||
// add hdskins sources
|
// add hdskins sources
|
||||||
from sourceSets.hdskins.allSource
|
from sourceSets.hdskins.allSource
|
||||||
}
|
}
|
||||||
task srgJar(type: Jar) {
|
|
||||||
from sourceSets.main.output
|
|
||||||
from sourceSets.hdskins.output
|
|
||||||
from litemod
|
|
||||||
classifier "mc$minecraft.version-srg"
|
|
||||||
baseName "mod-${project.name.toLowerCase()}"
|
|
||||||
}
|
|
||||||
task skinZip(type: Zip) {
|
task skinZip(type: Zip) {
|
||||||
from fileTree('skins')
|
from fileTree('skins')
|
||||||
baseName 'Pony Skin Resources'
|
baseName 'Pony Skin Resources'
|
||||||
version 'v1'
|
version 'v1'
|
||||||
}
|
}
|
||||||
|
|
||||||
reobf {
|
|
||||||
srgJar {
|
|
||||||
mappingType = 'SEARGE'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
mixin {
|
mixin {
|
||||||
defaultObfuscationEnv notch
|
defaultObfuscationEnv notch
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,6 +20,7 @@ import org.lwjgl.input.Keyboard;
|
||||||
/**
|
/**
|
||||||
* Static MineLittlePony singleton class. Everything's controlled from up here.
|
* Static MineLittlePony singleton class. Everything's controlled from up here.
|
||||||
*/
|
*/
|
||||||
|
@Mod(modid = "minelittlepony", name = MineLittlePony.MOD_NAME, version = MineLittlePony.MOD_VERSION, clientSideOnly = true)
|
||||||
public class MineLittlePony {
|
public class MineLittlePony {
|
||||||
|
|
||||||
public static final Logger logger = LogManager.getLogger("MineLittlePony");
|
public static final Logger logger = LogManager.getLogger("MineLittlePony");
|
||||||
|
@ -38,7 +39,8 @@ public class MineLittlePony {
|
||||||
|
|
||||||
private final PonyRenderManager renderManager;
|
private final PonyRenderManager renderManager;
|
||||||
|
|
||||||
MineLittlePony() {
|
@Mod.EventHandler
|
||||||
|
public void preInit(FMLPreInitializationEvent event) {
|
||||||
instance = this;
|
instance = this;
|
||||||
|
|
||||||
LiteLoader.getInput().registerKeyBinding(SETTINGS_GUI);
|
LiteLoader.getInput().registerKeyBinding(SETTINGS_GUI);
|
||||||
|
@ -60,10 +62,8 @@ public class MineLittlePony {
|
||||||
SkinServer.defaultServers.add(MINELP_LEGACY_SERVER);
|
SkinServer.defaultServers.add(MINELP_LEGACY_SERVER);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
@Mod.EventHandler
|
||||||
* Called when the game is ready.
|
public void postInit(FMLPostInitializationEvent event) {
|
||||||
*/
|
|
||||||
void postInit(Minecraft minecraft) {
|
|
||||||
|
|
||||||
HDSkinManager manager = HDSkinManager.INSTANCE;
|
HDSkinManager manager = HDSkinManager.INSTANCE;
|
||||||
// manager.setSkinUrl(SKIN_SERVER_URL);
|
// manager.setSkinUrl(SKIN_SERVER_URL);
|
||||||
|
|
Loading…
Reference in a new issue