Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ plugins {
tasks.named('wrapper', Wrapper).configure {
// Define wrapper values here so as to not have to always do so when updating gradlew.properties.
// Switching this to Wrapper.DistributionType.ALL will download the full gradle sources that comes with
// documentation attached on cursor hover of gradle classes and methods. However, this comes with increased
// documentation attached on cursor hover of gradle classes and methods.
// However, this comes with increased
// file size for Gradle. If you do switch this to ALL, run the Gradle wrapper task twice afterwards.
// (Verify by checking gradle/wrapper/gradle-wrapper.properties to see if distributionUrl now points to `-all`)
distributionType = Wrapper.DistributionType.BIN
Expand All @@ -20,10 +21,12 @@ group = mod_group_id

repositories {
mavenLocal()
// Add the Parchment Maven repository here
maven { url "https://maven.parchmentmc.org" }
}

base {
archivesName = mod_id
archivesName = "${mod_id}-${minecraft_version}"
}

// Mojang ships Java 21 to end users starting in 1.20.5, so mods should target Java 21.
Expand All @@ -48,7 +51,8 @@ neoForge {
client {
client()

// Comma-separated list of namespaces to load gametests from. Empty = all namespaces.
// Comma-separated list of namespaces to load gametests from.
// Empty = all namespaces.
systemProperty 'neoforge.enabledGameTestNamespaces', project.mod_id
}

Expand Down Expand Up @@ -187,4 +191,4 @@ idea {
downloadSources = true
downloadJavadoc = true
}
}
}
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false

minecraft_version=1.21
minecraft_version=1.21.1
minecraft_version_range=[1.21,1.22)
neo_version=21.0.157
neo_version=21.1.206
neo_version_range=[21.0.0-beta,)
loader_version_range=[4,)

parchment_minecraft_version=1.21
parchment_mappings_version=2024.07.28
parchment_minecraft_version=1.21.1
parchment_mappings_version=2024.11.17

mod_id=galosphere
mod_name=Galosphere
mod_license=All-Rights-Reserved
mod_version=1.4.2
mod_version=1.4.5
mod_group_id=net.orcinus.galosphere
mod_authors=Orcinus
mod_description=Galosphere aims to improve the underground by adding new biomes and feature
6 changes: 2 additions & 4 deletions src/generated/resources/data/c/tags/block/ores.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{
"values": [
"#forge:ores/silver"
]
}
"values": ["#c:ores/silver"]
}
7 changes: 2 additions & 5 deletions src/generated/resources/data/c/tags/block/storage_blocks.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"values": [
"#forge:storage_blocks/silver",
"#forge:storage_blocks/raw_silver"
]
}
"values": ["#c:storage_blocks/silver", "#c:storage_blocks/raw_silver"]
}
6 changes: 2 additions & 4 deletions src/generated/resources/data/c/tags/item/ingots.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{
"values": [
"#forge:ingots/silver"
]
}
"values": ["#c:ingots/silver"]
}
6 changes: 2 additions & 4 deletions src/generated/resources/data/c/tags/item/nuggets.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{
"values": [
"#forge:nuggets/silver"
]
}
"values": ["#c:nuggets/silver"]
}
6 changes: 2 additions & 4 deletions src/generated/resources/data/c/tags/item/ores.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{
"values": [
"#forge:ores/silver"
]
}
"values": ["#c:ores/silver"]
}
6 changes: 2 additions & 4 deletions src/generated/resources/data/c/tags/item/raw_materials.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{
"values": [
"#forge:raw_materials/silver"
]
}
"values": ["#c:raw_materials/silver"]
}
7 changes: 2 additions & 5 deletions src/generated/resources/data/c/tags/item/storage_blocks.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"values": [
"#forge:storage_blocks/silver",
"#forge:storage_blocks/raw_silver"
]
}
"values": ["#c:storage_blocks/silver", "#c:storage_blocks/raw_silver"]
}
14 changes: 8 additions & 6 deletions src/main/java/net/orcinus/galosphere/events/RegisterEvents.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
import net.orcinus.galosphere.network.handler.ClientEventsHandler;
import net.orcinus.galosphere.network.handler.ServerEventsHandler;

@EventBusSubscriber(modid = Galosphere.MODID, bus = EventBusSubscriber.Bus.MOD)

@EventBusSubscriber(modid = Galosphere.MODID)
public class RegisterEvents {

@SubscribeEvent
Expand All @@ -50,26 +51,27 @@ public static void registerSpawnPlacements(RegisterSpawnPlacementsEvent event) {
@SubscribeEvent
public static void registerPayloadHandler(RegisterPayloadHandlersEvent event) {
final PayloadRegistrar registrar = event.registrar("1");

registrar.playToClient(
BarometerPacket.TYPE,
BarometerPacket.CODEC,
ClientEventsHandler::sendBarometerInfo
ServerEventsHandler::sendBarometerInfo
);
registrar.playToClient(
PlayCooldownSoundPacket.TYPE,
PlayCooldownSoundPacket.CODEC,
ClientEventsHandler::playCooldownSound
ServerEventsHandler::playCooldownSound
);
registrar.playToClient(
SendParticlesPacket.TYPE,
SendParticlesPacket.CODEC,
ClientEventsHandler::handleSendParticles
ServerEventsHandler::handleSendParticles
);
registrar.playToClient(
SendPerspectivePacket.TYPE,
SendPerspectivePacket.CODEC,
ClientEventsHandler::sendPerspective
ServerEventsHandler::sendPerspective
);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@
import net.orcinus.galosphere.network.PlayCooldownSoundPacket;
import net.orcinus.galosphere.network.SendParticlesPacket;
import net.orcinus.galosphere.network.SendPerspectivePacket;
import net.neoforged.api.distmarker.Dist;
import net.neoforged.api.distmarker.OnlyIn;

import java.util.Optional;

@OnlyIn(Dist.CLIENT)
public class ClientEventsHandler {

public static void handleSendParticles(SendParticlesPacket packet, IPayloadContext ctx) {
Expand Down Expand Up @@ -66,4 +69,4 @@ public static void playCooldownSound(PlayCooldownSoundPacket packet, IPayloadCon
}
});
}
}
}