mirror of
https://github.com/architectury/architectury-api.git
synced 2026-03-28 03:56:59 -05:00
Close #18 Currently testing item / block addition, keybinds and creative tabs.
This commit is contained in:
36
testmod-forge/build.gradle
Normal file
36
testmod-forge/build.gradle
Normal 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
|
||||
}
|
||||
}
|
||||
1
testmod-forge/gradle.properties
Normal file
1
testmod-forge/gradle.properties
Normal file
@@ -0,0 +1 @@
|
||||
loom.forge=true
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
14
testmod-forge/src/main/resources/META-INF/mods.toml
Normal file
14
testmod-forge/src/main/resources/META-INF/mods.toml
Normal 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"
|
||||
6
testmod-forge/src/main/resources/pack.mcmeta
Normal file
6
testmod-forge/src/main/resources/pack.mcmeta
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"pack": {
|
||||
"description": "Architectury Test",
|
||||
"pack_format": 6
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user