Skip to content

Commit

Permalink
Refractor code, change versions, change mod names/descriptions, add S…
Browse files Browse the repository at this point in the history
…teamworks4J
  • Loading branch information
Permdog99 committed Nov 22, 2024
1 parent a272797 commit 5c27d94
Show file tree
Hide file tree
Showing 13 changed files with 33 additions and 36 deletions.
4 changes: 3 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,11 @@ dependencies {
}

minecraft("com.mojang:minecraft:$mcVersion")
mappings("net.fabricmc:yarn:$mcVersion+build.${deps["yarn_build"]}:v2")
mappings(loom.officialMojangMappings())
modImplementation("net.fabricmc:fabric-loader:${deps["fabric_loader"]}")

implementation("com.code-disaster.steamworks4j:${deps["steamworks4j"]}")

fapi(
// Add modules from https://github.com/FabricMC/fabric
"fabric-lifecycle-events-v1",
Expand Down
7 changes: 4 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ org.gradle.configureondemand=true

# Mod properties
mod.version=0.1.0
mod.group=com.example
mod.id=template
mod.name=Template Mod
mod.group=permdog99.steam_integration
mod.id=mc-steam-integration
mod.name=Steam Integration

# for fabric.mod.json
mod.mc_dep=[VERSIONED]
Expand All @@ -20,6 +20,7 @@ mod.mc_targets=[VERSIONED]

# Global dependencies
deps.fabric_loader=0.16.3
deps.steamworks4j=steamworks4j:1.9.0

# Versioned dependencies
deps.yarn_build=[VERSIONED]
Expand Down
4 changes: 2 additions & 2 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ stonecutter {
centralScript = "build.gradle.kts"

shared {
versions("1.20.1", "1.20.4", "1.20.6", "1.21.1")
versions("1.20.1", "1.21.1", "1.21.3")
}
create(rootProject)
}

rootProject.name = "Template"
rootProject.name = "MC Steam Integration"
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.example;
package permdog99.steam_integration;

import net.fabricmc.api.ClientModInitializer;

public class TemplateModClient implements ClientModInitializer {
public class SteamIntegrationClient implements ClientModInitializer {
@Override
public void onInitializeClient() {
// This entrypoint is suitable for setting up client-specific logic, such as rendering.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.mixin.client;
package permdog99.steam_integration.mixin.client;

import net.minecraft.client.MinecraftClient;
import org.spongepowered.asm.mixin.Mixin;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"required": true,
"package": "com.example.mixin.client",
"package": "permdog99.steam_integration.mixin.client",
"compatibilityLevel": "JAVA_17",
"client": [
"ExampleClientMixin"
"ExampleClientMixin"
],
"injectors": {
"defaultRequire": 1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.example;
package permdog99.steam_integration;

import net.fabricmc.api.ModInitializer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class TemplateMod implements ModInitializer {
public class SteamIntegration implements ModInitializer {
// This logger is used to write text to the console and the log file.
// It is considered best practice to use your mod id as the logger's name.
// That way, it's clear which mod wrote info, warnings, and errors.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.mixin;
package permdog99.steam_integration.mixin;

import net.minecraft.server.MinecraftServer;
import org.spongepowered.asm.mixin.Mixin;
Expand Down
18 changes: 9 additions & 9 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,29 @@
"id": "${id}",
"version": "${version}",
"name": "${name}",
"description": "This is an example description! Tell everyone what your mod is about!",
"description": "A mod for NeoForge(WIP) and Fabric that adds Steam integration, making P2P and more possible!",
"authors": [
"Me!"
"Permdog99"
],
"contact": {
"homepage": "https://fabricmc.net/",
"sources": "https://github.com/FabricMC/fabric-example-mod"
"homepage": "https://modrinth.com/",
"sources": "https://github.com/Permdog99/MC-Steam-Integration"
},
"license": "CC0-1.0",
"license": "PolyForm Shield License 1.0.0",
"icon": "assets/template/icon.png",
"environment": "*",
"entrypoints": {
"main": [
"com.example.TemplateMod"
"permdog99.steam_integration.SteamIntegration"
],
"client": [
"com.example.TemplateModClient"
"permdog99.steam_integration.SteamIntegrationClient"
]
},
"mixins": [
"template.mixins.json",
"mc-steam-integration.mixins.json",
{
"config": "template.client.mixins.json",
"config": "mc-steam-integration.client.mixins.json",
"environment": "client"
}
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"required": true,
"package": "com.example.mixin",
"package": "permdog99.steam_integration.mixin",
"compatibilityLevel": "JAVA_17",
"mixins": [
"ExampleMixin"
Expand Down
6 changes: 0 additions & 6 deletions versions/1.20.4/gradle.properties

This file was deleted.

6 changes: 0 additions & 6 deletions versions/1.20.6/gradle.properties

This file was deleted.

6 changes: 6 additions & 0 deletions versions/1.21.3/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
deps.yarn_build=3
deps.fabric_api=0.108.0+1.21.3

mod.mc_dep=>=1.21.2 <=1.21.3
mod.mc_title=1.21.3
mod.mc_targets=1.21.2 1.21.3

0 comments on commit 5c27d94

Please sign in to comment.