Close #18 Currently testing item / block addition, keybinds and creative tabs.

This commit is contained in:
shedaniel
2021-01-20 20:28:15 +08:00
parent 5df13d4179
commit 9c6101835d
30 changed files with 431 additions and 41 deletions

View File

@@ -0,0 +1,36 @@
plugins {
id "com.github.johnrengelman.shadow" version "5.0.0"
id "com.matthewprenger.cursegradle"
}
loom {
mixinConfig = "architectury.mixins.json"
localMods {
it.add(project(":forge").sourceSets.main)
}
}
architectury {
platformSetupLoomIde()
}
dependencies {
minecraft "com.mojang:minecraft:${gradle.rootProject.architectury.minecraft}"
mappings loom.officialMojangMappings()
forge "net.minecraftforge:forge:${gradle.rootProject.architectury.minecraft}-${rootProject.forge_version}"
implementation project(path: ":forge", configuration: "dev")
compileOnly(project(path: ":common")) {
transitive = false
}
runtimeOnly(project(path: ":common", configuration: "transformDevelopmentForge")) {
transitive = false
}
compileOnly(project(path: ":testmod-common")) {
transitive = false
}
runtimeOnly(project(path: ":testmod-common", configuration: "transformDevelopmentForge")) {
transitive = false
}
}

View File

@@ -0,0 +1 @@
loom.forge=true

View File

@@ -0,0 +1,32 @@
/*
* This file is part of architectury.
* Copyright (C) 2020, 2021 shedaniel
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package me.shedaniel.architectury.test;
import me.shedaniel.architectury.platform.forge.EventBuses;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
@Mod(TestMod.MOD_ID)
public class TestModForge {
public TestModForge() {
EventBuses.registerModEventBus(TestMod.MOD_ID, FMLJavaModLoadingContext.get().getModEventBus());
TestMod.initialize();
}
}

View File

@@ -0,0 +1,14 @@
modLoader = "javafml"
loaderVersion = "[33,)"
issueTrackerURL = "https://github.com/shedaniel/architectury/issues"
license = "LGPL-3"
[[mods]]
modId = "architectury-test"
version = "${version}"
displayName = "Architectury Test"
authors = "shedaniel"
description = '''
A intermediary api aimed to ease developing multiplatform mods.
'''
license = "LGPL-3"

View File

@@ -0,0 +1,6 @@
{
"pack": {
"description": "Architectury Test",
"pack_format": 6
}
}