Skip to content

Commit 53b8e7b

Browse files
committed
Initiate
0 parents  commit 53b8e7b

File tree

12 files changed

+878
-0
lines changed

12 files changed

+878
-0
lines changed

.gitignore

Lines changed: 196 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,196 @@
1+
# Created by https://www.toptal.com/developers/gitignore/api/gradle,intellij+all,java,macos,visualstudiocode
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=gradle,intellij+all,java,macos,visualstudiocode
3+
4+
### Intellij+all ###
5+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
6+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
7+
8+
# User-specific stuff
9+
.idea/**/workspace.xml
10+
.idea/**/tasks.xml
11+
.idea/**/usage.statistics.xml
12+
.idea/**/dictionaries
13+
.idea/**/shelf
14+
15+
# AWS User-specific
16+
.idea/**/aws.xml
17+
18+
# Generated files
19+
.idea/**/contentModel.xml
20+
21+
# Sensitive or high-churn files
22+
.idea/**/dataSources/
23+
.idea/**/dataSources.ids
24+
.idea/**/dataSources.local.xml
25+
.idea/**/sqlDataSources.xml
26+
.idea/**/dynamic.xml
27+
.idea/**/uiDesigner.xml
28+
.idea/**/dbnavigator.xml
29+
30+
# Gradle
31+
.idea/**/gradle.xml
32+
.idea/**/libraries
33+
34+
# Gradle and Maven with auto-import
35+
# When using Gradle or Maven with auto-import, you should exclude module files,
36+
# since they will be recreated, and may cause churn. Uncomment if using
37+
# auto-import.
38+
# .idea/artifacts
39+
# .idea/compiler.xml
40+
# .idea/jarRepositories.xml
41+
# .idea/modules.xml
42+
# .idea/*.iml
43+
# .idea/modules
44+
# *.iml
45+
# *.ipr
46+
47+
# CMake
48+
cmake-build-*/
49+
50+
# Mongo Explorer plugin
51+
.idea/**/mongoSettings.xml
52+
53+
# File-based project format
54+
*.iws
55+
56+
# IntelliJ
57+
out/
58+
59+
# mpeltonen/sbt-idea plugin
60+
.idea_modules/
61+
62+
# JIRA plugin
63+
atlassian-ide-plugin.xml
64+
65+
# Cursive Clojure plugin
66+
.idea/replstate.xml
67+
68+
# SonarLint plugin
69+
.idea/sonarlint/
70+
71+
# Crashlytics plugin (for Android Studio and IntelliJ)
72+
com_crashlytics_export_strings.xml
73+
crashlytics.properties
74+
crashlytics-build.properties
75+
fabric.properties
76+
77+
# Editor-based Rest Client
78+
.idea/httpRequests
79+
80+
# Android studio 3.1+ serialized cache file
81+
.idea/caches/build_file_checksums.ser
82+
83+
### Intellij+all Patch ###
84+
# Ignore everything but code style settings and run configurations
85+
# that are supposed to be shared within teams.
86+
87+
.idea/*
88+
89+
!.idea/codeStyles
90+
!.idea/runConfigurations
91+
92+
### Java ###
93+
# Compiled class file
94+
*.class
95+
96+
# Log file
97+
*.log
98+
99+
# BlueJ files
100+
*.ctxt
101+
102+
# Mobile Tools for Java (J2ME)
103+
.mtj.tmp/
104+
105+
# Package Files #
106+
*.jar
107+
*.war
108+
*.nar
109+
*.ear
110+
*.zip
111+
*.tar.gz
112+
*.rar
113+
114+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
115+
hs_err_pid*
116+
replay_pid*
117+
118+
### macOS ###
119+
# General
120+
.DS_Store
121+
.AppleDouble
122+
.LSOverride
123+
124+
# Icon must end with two \r
125+
Icon
126+
127+
# Thumbnails
128+
._*
129+
130+
# Files that might appear in the root of a volume
131+
.DocumentRevisions-V100
132+
.fseventsd
133+
.Spotlight-V100
134+
.TemporaryItems
135+
.Trashes
136+
.VolumeIcon.icns
137+
.com.apple.timemachine.donotpresent
138+
139+
# Directories potentially created on remote AFP share
140+
.AppleDB
141+
.AppleDesktop
142+
Network Trash Folder
143+
Temporary Items
144+
.apdisk
145+
146+
### macOS Patch ###
147+
# iCloud generated files
148+
*.icloud
149+
150+
### VisualStudioCode ###
151+
.vscode/*
152+
!.vscode/settings.json
153+
!.vscode/tasks.json
154+
!.vscode/launch.json
155+
!.vscode/extensions.json
156+
!.vscode/*.code-snippets
157+
158+
# Local History for Visual Studio Code
159+
.history/
160+
161+
# Built Visual Studio Code Extensions
162+
*.vsix
163+
164+
### VisualStudioCode Patch ###
165+
# Ignore all local history of files
166+
.history
167+
.ionide
168+
169+
### Gradle ###
170+
.gradle
171+
**/build/
172+
!src/**/build/
173+
174+
# Ignore Gradle GUI config
175+
gradle-app.setting
176+
177+
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
178+
!gradle-wrapper.jar
179+
180+
# Avoid ignore Gradle wrappper properties
181+
!gradle-wrapper.properties
182+
183+
# Cache of project
184+
.gradletasknamecache
185+
186+
# Eclipse Gradle plugin generated files
187+
# Eclipse Core
188+
.project
189+
# JDT-specific (Eclipse Java Development Tools)
190+
.classpath
191+
192+
### Gradle Patch ###
193+
# Java heap dump
194+
*.hprof
195+
196+
# End of https://www.toptal.com/developers/gitignore/api/gradle,intellij+all,java,macos,visualstudiocode

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Hameln - The Minecraft Trident Innovation Plugin
2+
Hameln is a plugin compatible with Minecraft 1.20 versions, designed to make trident usage more intuitive and convenient. It works seamlessly with Paper, Purpur, and Folia server implementations.
3+
4+
## Key Features
5+
- **Hand Adaptability:** When a trident is thrown with the non-dominant hand (typically the left hand), it returns to that same hand. Similarly, tridents thrown with the dominant hand (typically the right hand) will return to it.
6+
- **Automatic Slot Return:** If you throw a trident with your dominant hand and then switch slots, the trident will return to the new selected slot, provided it is empty.
7+
- **Standard Behavior Retention:** If the trident’s designated slot is not empty upon its return, it will follow Minecraft’s default behavior.
8+
9+
## Installation Guide
10+
1. This plugin is compatible with Paper, Purpur, and Folia servers. Install one of these server types first.
11+
2. Copy the jar file into the 'plugins' folder of your server.
12+
3. Restart the server.
13+
14+
## License
15+
This plugin is distributed under the Unlicense, allowing free use, modification, and distribution.

UNLICENSE

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
This is free and unencumbered software released into the public domain.
2+
3+
Anyone is free to copy, modify, publish, use, compile, sell, or
4+
distribute this software, either in source code form or as a compiled
5+
binary, for any purpose, commercial or non-commercial, and by any
6+
means.
7+
8+
In jurisdictions that recognize copyright laws, the author or authors
9+
of this software dedicate any and all copyright interest in the
10+
software to the public domain. We make this dedication for the benefit
11+
of the public at large and to the detriment of our heirs and
12+
successors. We intend this dedication to be an overt act of
13+
relinquishment in perpetuity of all present and future rights to this
14+
software under copyright law.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+
OTHER DEALINGS IN THE SOFTWARE.
23+
24+
For more information, please refer to <https://unlicense.org/>

build.gradle

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
plugins {
2+
id "java"
3+
id "xyz.jpenilla.run-paper" version "2.2.2"
4+
}
5+
6+
group = "moe.minacle.minecraft"
7+
version = "0.2.0"
8+
9+
repositories {
10+
mavenCentral()
11+
maven {
12+
name "PaperMC"
13+
url "https://repo.papermc.io/repository/maven-public/"
14+
}
15+
maven {
16+
name "Sonatype"
17+
url "https://oss.sonatype.org/content/groups/public/"
18+
}
19+
}
20+
21+
dependencies {
22+
compileOnly "io.papermc.paper:paper-api:1.20.2-R0.1-SNAPSHOT"
23+
compileOnly "org.jetbrains:annotations:24.1.0"
24+
}
25+
26+
def targetJavaVersion = 17
27+
java {
28+
def javaVersion = JavaVersion.toVersion(targetJavaVersion)
29+
sourceCompatibility = javaVersion
30+
targetCompatibility = javaVersion
31+
if (JavaVersion.current() < javaVersion) {
32+
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
33+
}
34+
}
35+
36+
tasks.withType(JavaCompile).configureEach {
37+
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {
38+
options.release = targetJavaVersion
39+
}
40+
}
41+
42+
processResources {
43+
def props = [version: version]
44+
inputs.properties props
45+
filteringCharset "UTF-8"
46+
filesMatching("plugin.yml") {
47+
expand props
48+
}
49+
}
50+
51+
tasks {
52+
runServer {
53+
minecraftVersion "1.20.2"
54+
}
55+
}

gradle.properties

Whitespace-only changes.

gradle/wrapper/gradle-wrapper.jar

60.6 KB
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
4+
networkTimeout=10000
5+
zipStoreBase=GRADLE_USER_HOME
6+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)