Skip to content

Commit

Permalink
Setup done???
Browse files Browse the repository at this point in the history
  • Loading branch information
kckarnige committed Jun 21, 2024
1 parent 80bb0c0 commit f309e6a
Show file tree
Hide file tree
Showing 15 changed files with 56 additions and 95 deletions.
9 changes: 0 additions & 9 deletions README.md

This file was deleted.

12 changes: 2 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,8 @@ repositories {
// for more information about repositories.
}

loom {
splitEnvironmentSourceSets()

mods {
"modid" {
sourceSet sourceSets.main
sourceSet sourceSets.client
}
}

fabricApi {
configureDataGeneration()
}

dependencies {
Expand Down
5 changes: 3 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Done to increase the memory available to gradle.
org.gradle.jvmargs=-Xmx1G
org.gradle.parallel=true
org.gradle.java.home=C:\\Program Files\\Eclipse Adoptium\\jdk-21.0.3.9-hotspot

# Fabric Properties
# check these on https://fabricmc.net/develop
Expand All @@ -10,8 +11,8 @@ loader_version=0.15.11

# Mod Properties
mod_version=1.0.0
maven_group=com.example
archives_base_name=modid
maven_group=com.kckarnige
archives_base_name=slowbronze

# Dependencies
fabric_version=0.100.3+1.21
10 changes: 0 additions & 10 deletions src/client/java/com/example/ExampleModClient.java

This file was deleted.

15 changes: 0 additions & 15 deletions src/client/java/com/example/mixin/client/ExampleClientMixin.java

This file was deleted.

11 changes: 0 additions & 11 deletions src/client/resources/modid.client.mixins.json

This file was deleted.

22 changes: 0 additions & 22 deletions src/main/java/com/example/ExampleMod.java

This file was deleted.

16 changes: 16 additions & 0 deletions src/main/java/com/kckarnige/slowbronze/SlowBronze.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package com.kckarnige.slowbronze;

import net.fabricmc.api.ModInitializer;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class SlowBronze implements ModInitializer {
public static final String MOD_ID = "slowbronze";
public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);

@Override
public void onInitialize() {
LOGGER.info("Hello Fabric world!");
}
}
9 changes: 9 additions & 0 deletions src/main/java/com/kckarnige/slowbronze/SlowBronzeClient.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package com.kckarnige.slowbronze;

import net.fabricmc.api.ClientModInitializer;

public class SlowBronzeClient implements ClientModInitializer {
public void onInitializeClient() {

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.kckarnige.slowbronze;

import net.fabricmc.fabric.api.datagen.v1.DataGeneratorEntrypoint;
import net.fabricmc.fabric.api.datagen.v1.FabricDataGenerator;

public class SlowBronzeDataGenerator implements DataGeneratorEntrypoint {
@Override
public void onInitializeDataGenerator(FabricDataGenerator fabricDataGenerator) {

}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.mixin;
package com.kckarnige.slowbronze.mixin;

import net.minecraft.server.MinecraftServer;
import org.spongepowered.asm.mixin.Mixin;
Expand Down
Binary file removed src/main/resources/assets/modid/icon.png
Binary file not shown.
Binary file added src/main/resources/assets/slowbronze/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 13 additions & 14 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,32 @@
{
"schemaVersion": 1,
"id": "modid",
"id": "slowbronze",
"version": "${version}",
"name": "Example mod",
"description": "This is an example description! Tell everyone what your mod is about!",
"name": "Slow your Roll!: Bronze Compat",
"description": "This is a compatibility mod for the 'Bronze' mod to make in compatible with 'Slow Your Roll!'",
"authors": [
"Me!"
"KayoticCarnige"
],
"contact": {
"homepage": "https://fabricmc.net/",
"sources": "https://github.com/FabricMC/fabric-example-mod"
"sources": "https://github.com/kckarnige/SlowBronze"
},
"license": "CC0-1.0",
"icon": "assets/modid/icon.png",
"license": "MIT",
"icon": "assets/slowbronze/icon.png",
"environment": "*",
"entrypoints": {
"main": [
"com.example.ExampleMod"
"com.kckarnige.slowbronze.SlowBronze"
],
"client": [
"com.example.ExampleModClient"
"com.kckarnige.slowbronze.SlowBronzeClient"
],
"fabric-datagen": [
"com.kckarnige.slowbronze.SlowBronzeDataGenerator"
]
},
"mixins": [
"modid.mixins.json",
{
"config": "modid.client.mixins.json",
"environment": "client"
}
"slowbronze.mixins.json"
],
"depends": {
"fabricloader": ">=0.15.11",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"required": true,
"package": "com.example.mixin",
"package": "com.kckarnige.slowbronze.mixin",
"compatibilityLevel": "JAVA_21",
"mixins": [
"ExampleMixin"
Expand Down

0 comments on commit f309e6a

Please sign in to comment.