Skip to content

Commit 0761746

Browse files
committed
Added code to create screenshakes, Updated the dual handed just requiring it to now be an implement, instead of an extension and only working for swords, added a pride beacon beam, added supporter checking.
1 parent ca61c29 commit 0761746

25 files changed

+1380
-51
lines changed

build.gradle

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,28 @@ base {
1010
archivesName = project.archives_base_name
1111
}
1212

13+
loom {
14+
accessWidenerPath = file("src/main/resources/lumicode.accesswidener")
15+
}
16+
1317
repositories {
14-
// Add repositories to retrieve artifacts from in here.
15-
// You should only use this when depending on other mods because
16-
// Loom adds the essential maven repositories to download Minecraft and libraries from automatically.
17-
// See https://docs.gradle.org/current/userguide/declaring_repositories.html
18-
// for more information about repositories.
18+
maven {
19+
name = "TerraformersMC"
20+
url = "https://maven.terraformersmc.com/"
21+
}
22+
maven {
23+
name = "CurseForge"
24+
url = "https://cursemaven.com"
25+
}
1926
}
2027

2128
dependencies {
22-
// To change the versions see the gradle.properties file
2329
minecraft "com.mojang:minecraft:${project.minecraft_version}"
2430
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
2531
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
26-
27-
// Fabric API. This is technically optional, but you probably want it anyway.
2832
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
29-
33+
modImplementation("com.terraformersmc:modmenu:${project.modmenu_version}")
34+
modImplementation "curse.maven:catalogue-fabric-667377:4766089"
3035
}
3136

3237
processResources {
@@ -42,9 +47,6 @@ tasks.withType(JavaCompile).configureEach {
4247
}
4348

4449
java {
45-
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
46-
// if it is present.
47-
// If you remove this line, sources will not be generated.
4850
withSourcesJar()
4951

5052
sourceCompatibility = JavaVersion.VERSION_17
@@ -59,7 +61,6 @@ jar {
5961
}
6062
}
6163

62-
// configure the maven publication
6364
publishing {
6465
publications {
6566
create("mavenJava", MavenPublication) {
@@ -68,11 +69,7 @@ publishing {
6869
}
6970
}
7071

71-
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
7272
repositories {
73-
// Add repositories to publish to here.
74-
// Notice: This block does NOT have the same function as the block in the top level.
75-
// The repositories here will be used for publishing your artifact, not for
76-
// retrieving dependencies.
73+
7774
}
7875
}

gradle.properties

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ loader_version=0.16.14
1010
loom_version=1.10-SNAPSHOT
1111

1212
# Mod Properties
13-
mod_version=1.0.0
13+
mod_version=1.20.1-v0.2
1414
maven_group=dev.prangell.lumicode
1515
archives_base_name=lumicode
1616

1717
# Dependencies
18-
fabric_version=0.92.5+1.20.1
18+
fabric_version=0.92.5+1.20.1
19+
modmenu_version=7.0.1
20+
catalogue_version=1.8.0

src/main/java/dev/prangell/lumicode/Lumicode.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
11
package dev.prangell.lumicode;
22

3+
import dev.prangell.lumicode.init.LumicodeItems;
4+
import dev.prangell.lumicode.util.LumicodeRegistries;
5+
import dev.prangell.lumicode.util.PlayerURLData;
36
import net.fabricmc.api.ModInitializer;
47

58
import net.minecraft.util.Identifier;
69
import org.slf4j.Logger;
710
import org.slf4j.LoggerFactory;
811

12+
import java.util.Random;
13+
914
public class Lumicode implements ModInitializer {
1015
public static final String MOD_ID = "lumicode";
1116
public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);
17+
public static final Random RANDOM = new Random();
1218

1319
@Override
1420
public void onInitialize() {
15-
21+
LumicodeRegistries.init();
22+
PlayerURLData.init();
1623
}
1724

1825
public static Identifier id(String path) {
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
package dev.prangell.lumicode;
22

3+
import dev.prangell.lumicode.util.LumicodeRegistries;
34
import net.fabricmc.api.ClientModInitializer;
45

56
public class LumicodeClient implements ClientModInitializer {
67

78
@Override
89
public void onInitializeClient() {
9-
10+
LumicodeRegistries.clientInit();
1011
}
1112
}

0 commit comments

Comments
 (0)