-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 4a88587
Showing
21 changed files
with
1,025 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
tab_width = 4 | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[*.gradle] | ||
indent_style = tab | ||
|
||
[*.java] | ||
indent_style = tab | ||
|
||
[*.json] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[quilt.mod.json] | ||
indent_style = tab | ||
tab_width = 2 | ||
|
||
[*.toml] | ||
indent_style = tab | ||
tab_width = 2 | ||
|
||
[*.properties] | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
*.java text eol=lf diff=java | ||
*.gradle text eol=lf diff=java | ||
*.kt text eol=lf diff=kotlin | ||
*.kts text eol=lf diff=kotlin | ||
gradlew text eol=lf | ||
*.bat text eol=crlf | ||
|
||
*.md text eol=lf diff=markdown | ||
|
||
.editorconfig text eol=lf | ||
|
||
*.json text eol=lf | ||
*.json5 text eol=lf | ||
*.properties text eol=lf | ||
*.toml text eol=lf | ||
*.xml text eol=lf diff=html | ||
|
||
# Modding specific | ||
*.accesswidener text eol=lf | ||
|
||
# These files are binary and should be left untouched | ||
# (binary is a macro for -text -diff) | ||
*.class binary | ||
*.dll binary | ||
*.ear binary | ||
*.jar binary | ||
*.jks binary | ||
*.png binary | ||
*.so binary | ||
*.war binary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Gradle | ||
.gradle/ | ||
build/ | ||
out/ | ||
classes/ | ||
|
||
# Quilt Loom | ||
remappedSrc/ | ||
run/ | ||
|
||
# Eclipse | ||
*.launch | ||
|
||
# IntelliJ Idea | ||
.idea/ | ||
*.iml | ||
*.ipr | ||
*.iws | ||
|
||
# Fleet | ||
.fleet/ | ||
|
||
# Visual Studio Code | ||
.settings/ | ||
.vscode/ | ||
bin/ | ||
.classpath | ||
.project | ||
|
||
# Eclipse JDT LS | ||
workspace/ | ||
|
||
# macOS | ||
*.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# MIT License | ||
|
||
### Copyright (c) 2022-2023 Prismwork | ||
|
||
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: | ||
|
||
> The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Flexible Arms | ||
|
||
A Quilt mod (potentially Fabric & NeoForge too but I don't have time to do a multi-platform setup and I'm too lazy to handle this as well) allowing adjusting arm positions in item JSON models. | ||
|
||
This mod is inspired by the great [Blåhaj](https://modrinth.com/mod/blahaj) mod. | ||
|
||
### Getting Started | ||
|
||
It's pretty simple! You just need to add a few lines into your existing JSON model files. | ||
|
||
```json | ||
{ | ||
// ... | ||
"arms": { | ||
"right": { // Adjust the right arm | ||
"pitch": -0.95, // Any float value is valid | ||
"yaw": -0.39, // Here too | ||
"follow_sight": false // Optional - Whether this arm will move according to the holder's sight (Think bows and crossbows) | ||
}, | ||
"left": { // Left arm too | ||
"pitch": -0.90, | ||
"yaw": 0.39, | ||
"follow_sight": false | ||
} | ||
// If any field above (except for "follow_sight") is presented, | ||
// the game will not try to adjust the model with vanilla mechanics. | ||
// You'd better configure both pitch and yaw for each arm at the same time. | ||
} | ||
} | ||
``` | ||
|
||
> JSON does not support comments, you'll need to remove the comments before you put them into a real JSON file! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
plugins { | ||
id 'maven-publish' | ||
alias libs.plugins.quilt.loom | ||
} | ||
|
||
base.archivesName = project.archives_base_name | ||
version = "$project.version+${libs.versions.minecraft.get()}" | ||
group = project.maven_group | ||
|
||
repositories { | ||
maven { | ||
url "https://jitpack.io/" | ||
} | ||
} | ||
|
||
// All the dependencies are declared at gradle/libs.version.toml and referenced with "libs.<id>" | ||
// See https://docs.gradle.org/current/userguide/platforms.html for information on how version catalogs work. | ||
dependencies { | ||
minecraft libs.minecraft | ||
mappings variantOf(libs.quilt.mappings) { classifier 'intermediary-v2' } | ||
// Replace the above line with the block below if you want to use Mojang mappings as your primary mappings, falling back on QM for parameters and Javadocs | ||
/* | ||
mappings loom.layered { | ||
mappings "org.quiltmc:quilt-mappings:${libs.versions.quilt.mappings.get()}:intermediary-v2" | ||
officialMojangMappings() | ||
} | ||
*/ | ||
modImplementation libs.quilt.loader | ||
|
||
// QSL is not a complete API; You will need Quilted Fabric API to fill in the gaps. | ||
// Quilted Fabric API will automatically pull in the correct QSL version. | ||
modImplementation libs.quilted.fabric.api | ||
// modImplementation libs.bundles.quilted.fabric.api // If you wish to use Fabric API's deprecated modules, you can replace the above line with this one | ||
|
||
include(implementation(annotationProcessor("com.github.llamalad7.mixinextras:mixinextras-fabric:0.2.0-beta.9"))) | ||
} | ||
|
||
processResources { | ||
inputs.property 'version', version | ||
|
||
filesMatching('quilt.mod.json') { | ||
expand 'version': version | ||
} | ||
} | ||
|
||
tasks.withType(JavaCompile).configureEach { | ||
it.options.encoding = 'UTF-8' | ||
// Minecraft 1.18 (1.18-pre2) upwards uses Java 17. | ||
it.options.release = 17 | ||
} | ||
|
||
java { | ||
// Still required by IDEs such as Eclipse and Visual Studio Code | ||
sourceCompatibility = JavaVersion.VERSION_17 | ||
targetCompatibility = JavaVersion.VERSION_17 | ||
|
||
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task if it is present. | ||
// If you remove this line, sources will not be generated. | ||
withSourcesJar() | ||
|
||
// If this mod is going to be a library, then it should also generate Javadocs in order to aid with development. | ||
// Uncomment this line to generate them. | ||
// withJavadocJar() | ||
} | ||
|
||
// If you plan to use a different file for the license, don't forget to change the file name here! | ||
jar { | ||
from('LICENSE.md') { | ||
rename { "${it}_${base.archivesName.get()}.md" } | ||
} | ||
} | ||
|
||
// Configure the maven publication | ||
publishing { | ||
publications { | ||
mavenJava(MavenPublication) { | ||
from components.java | ||
} | ||
} | ||
|
||
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing. | ||
repositories { | ||
// Add repositories to publish to here. | ||
// Notice: This block does NOT have the same function as the block in the top level. | ||
// The repositories here will be used for publishing your artifact, not for | ||
// retrieving dependencies. | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Gradle Properties | ||
org.gradle.jvmargs = -Xmx1G | ||
org.gradle.parallel = true | ||
|
||
# Mod Properties | ||
version = 1.0.0 | ||
maven_group = io.github.prismwork | ||
archives_base_name = flexible-arms | ||
|
||
# Dependencies are managed at gradle/libs.versions.toml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[versions] | ||
# The latest versions are available at https://lambdaurora.dev/tools/import_quilt.html | ||
minecraft = "1.20.1" | ||
quilt_mappings = "1.20.1+build.1" | ||
quilt_loader = "0.19.1" | ||
|
||
quilted_fabric_api = "7.0.3+0.83.1-1.20.1" | ||
|
||
[libraries] | ||
minecraft = { module = "com.mojang:minecraft", version.ref = "minecraft" } | ||
quilt_mappings = { module = "org.quiltmc:quilt-mappings", version.ref = "quilt_mappings" } | ||
quilt_loader = { module = "org.quiltmc:quilt-loader", version.ref = "quilt_loader" } | ||
|
||
quilted_fabric_api = { module = "org.quiltmc.quilted-fabric-api:quilted-fabric-api", version.ref = "quilted_fabric_api" } | ||
quilted_fabric_api_deprecated = { module = "org.quiltmc.quilted-fabric-api:quilted-fabric-api-deprecated", version.ref = "quilted_fabric_api" } | ||
|
||
# If you have multiple similar dependencies, you can declare a dependency bundle and reference it on the build script with "libs.bundles.example". | ||
[bundles] | ||
quilted_fabric_api = ["quilted_fabric_api", "quilted_fabric_api_deprecated"] | ||
|
||
[plugins] | ||
quilt_loom = { id = "org.quiltmc.loom", version = "1.2.+" } |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip | ||
networkTimeout=10000 | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.