Skip to content

Commit 548e4b9

Browse files
committed
Initial commit
0 parents  commit 548e4b9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+2030
-0
lines changed

.github/workflows/build.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Automatically build the project and run any configured tests for every push
2+
# and submitted pull request. This can help catch issues that only occur on
3+
# certain platforms or Java versions, and provides a first line of defence
4+
# against bad commits.
5+
6+
name: build
7+
on: [pull_request, push]
8+
9+
jobs:
10+
build:
11+
strategy:
12+
matrix:
13+
# Use these Java versions
14+
java: [
15+
17, # Current Java LTS & minimum supported by Minecraft
16+
21, # Current Java LTS
17+
]
18+
# and run on both Linux and Windows
19+
os: [ubuntu-22.04, windows-2022]
20+
runs-on: ${{ matrix.os }}
21+
steps:
22+
- name: checkout repository
23+
uses: actions/checkout@v4
24+
- name: validate gradle wrapper
25+
uses: gradle/wrapper-validation-action@v1
26+
- name: setup jdk ${{ matrix.java }}
27+
uses: actions/setup-java@v4
28+
with:
29+
java-version: ${{ matrix.java }}
30+
distribution: 'microsoft'
31+
- name: make gradle wrapper executable
32+
if: ${{ runner.os != 'Windows' }}
33+
run: chmod +x ./gradlew
34+
- name: build
35+
run: ./gradlew build
36+
- name: capture build artifacts
37+
if: ${{ runner.os == 'Linux' && matrix.java == '21' }} # Only upload artifacts built from latest java on one OS
38+
uses: actions/upload-artifact@v3
39+
with:
40+
name: Artifacts
41+
path: build/libs/

.gitignore

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# gradle
2+
3+
.gradle/
4+
build/
5+
out/
6+
classes/
7+
8+
# eclipse
9+
10+
*.launch
11+
12+
# idea
13+
14+
.idea/
15+
*.iml
16+
*.ipr
17+
*.iws
18+
19+
# vscode
20+
21+
.settings/
22+
.vscode/
23+
bin/
24+
.classpath
25+
.project
26+
27+
# macos
28+
29+
*.DS_Store
30+
31+
# fabric
32+
33+
run/
34+
35+
# java
36+
37+
hs_err_*.log
38+
replay_*.log
39+
*.hprof
40+
*.jfr

LICENSE

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Copyright 2024 Acrogenous
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
8+
9+
Join Us

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Valkyrien Pirates
2+
3+
adds moving pirate ship structures to your world, equipped with pirates and cannons
4+
5+
6+
7+
![The Ship](https://cdn.discordapp.com/attachments/1107778211632390267/1205147497111232553/vsg.gif)

build.gradle

+94
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
plugins {
2+
id 'fabric-loom' version '1.4-SNAPSHOT'
3+
id 'maven-publish'
4+
id "org.jetbrains.kotlin.jvm" version "1.9.22"
5+
}
6+
7+
version = project.mod_version
8+
group = project.maven_group
9+
10+
base {
11+
archivesName = project.archives_base_name
12+
}
13+
14+
repositories {
15+
// Add repositories to retrieve artifacts from in here.
16+
// You should only use this when depending on other mods because
17+
// Loom adds the essential maven repositories to download Minecraft and libraries from automatically.
18+
// See https://docs.gradle.org/current/userguide/declaring_repositories.html
19+
// for more information about repositories.
20+
repositories {
21+
exclusiveContent {
22+
forRepository {
23+
maven {
24+
name = "Modrinth"
25+
url = "https://api.modrinth.com/maven"
26+
}
27+
}
28+
filter {
29+
includeGroup "maven.modrinth"
30+
}
31+
}
32+
}
33+
}
34+
35+
dependencies {
36+
// To change the versions see the gradle.properties file
37+
minecraft "com.mojang:minecraft:${project.minecraft_version}"
38+
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
39+
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
40+
// Fabric API. This is technically optional, but you probably want it anyway.
41+
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
42+
modImplementation "maven.modrinth:valkyrien-skies:1.18.2-fabric-2.1.1-beta.4"
43+
modImplementation "maven.modrinth:eureka:1.18.2-fabric-1.4.0-beta.1"
44+
modImplementation "net.fabricmc:fabric-language-kotlin:${project.fabric_kotlin_version}"
45+
// Uncomment the following line to enable the deprecated Fabric API modules.
46+
// These are included in the Fabric API production distribution and allow you to update your mod to the latest modules at a later more convenient time.
47+
48+
// modImplementation "net.fabricmc.fabric-api:fabric-api-deprecated:${project.fabric_version}"
49+
}
50+
51+
processResources {
52+
inputs.property "version", project.version
53+
54+
filesMatching("fabric.mod.json") {
55+
expand "version": project.version
56+
}
57+
}
58+
59+
tasks.withType(JavaCompile).configureEach {
60+
it.options.release = 17
61+
}
62+
63+
java {
64+
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
65+
// if it is present.
66+
// If you remove this line, sources will not be generated.
67+
withSourcesJar()
68+
69+
sourceCompatibility = JavaVersion.VERSION_17
70+
targetCompatibility = JavaVersion.VERSION_17
71+
}
72+
73+
jar {
74+
from("LICENSE") {
75+
rename { "${it}_${project.base.archivesName.get()}"}
76+
}
77+
}
78+
79+
// configure the maven publication
80+
publishing {
81+
publications {
82+
mavenJava(MavenPublication) {
83+
from components.java
84+
}
85+
}
86+
87+
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
88+
repositories {
89+
// Add repositories to publish to here.
90+
// Notice: This block does NOT have the same function as the block in the top level.
91+
// The repositories here will be used for publishing your artifact, not for
92+
// retrieving dependencies.
93+
}
94+
}

gradle.properties

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Done to increase the memory available to gradle.
2+
org.gradle.jvmargs=-Xmx1G
3+
org.gradle.parallel=true
4+
5+
# Fabric Properties
6+
# check these on https://fabricmc.net/develop
7+
minecraft_version=1.18.2
8+
yarn_mappings=1.18.2+build.4
9+
loader_version=0.15.3
10+
11+
# Mod Properties
12+
mod_version=1.0.0
13+
maven_group=com.loremv
14+
archives_base_name=Valkryrien Pirates
15+
16+
# Dependencies
17+
fabric_version=0.77.0+1.18.2
18+
fabric_kotlin_version=1.10.17+kotlin.1.9.22

gradle/wrapper/gradle-wrapper.jar

42.4 KB
Binary file not shown.
+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
6+
zipStoreBase=GRADLE_USER_HOME
7+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)