Skip to content

Commit e07ccad

Browse files
committed
Initial commit
0 parents  commit e07ccad

Some content is hidden

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

49 files changed

+2841
-0
lines changed

.editorconfig

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
tab_width = 4
8+
trim_trailing_whitespace = true
9+
10+
[*.md]
11+
trim_trailing_whitespace = false
12+
13+
[*.gradle]
14+
indent_style = tab
15+
16+
[*.java]
17+
indent_style = tab
18+
19+
[*.json]
20+
indent_style = space
21+
indent_size = 2
22+
23+
[quilt.mod.json]
24+
indent_style = tab
25+
tab_width = 2
26+
27+
[*.toml]
28+
indent_style = tab
29+
tab_width = 2
30+
31+
[*.properties]
32+
indent_style = space
33+
indent_size = 2

.gitattributes

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
*.java text eol=lf diff=java
2+
*.gradle text eol=lf diff=java
3+
*.kt text eol=lf diff=kotlin
4+
*.kts text eol=lf diff=kotlin
5+
gradlew text eol=lf
6+
*.bat text eol=crlf
7+
8+
*.md text eol=lf diff=markdown
9+
10+
.editorconfig text eol=lf
11+
12+
*.json text eol=lf
13+
*.json5 text eol=lf
14+
*.properties text eol=lf
15+
*.toml text eol=lf
16+
*.xml text eol=lf diff=html
17+
18+
# Modding specific
19+
*.accesswidener text eol=lf
20+
21+
# These files are binary and should be left untouched
22+
# (binary is a macro for -text -diff)
23+
*.class binary
24+
*.dll binary
25+
*.ear binary
26+
*.jar binary
27+
*.jks binary
28+
*.png binary
29+
*.so binary
30+
*.war binary

.gitignore

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Gradle
2+
.gradle/
3+
build/
4+
out/
5+
classes/
6+
7+
# Quilt Loom
8+
remappedSrc/
9+
run/
10+
11+
# Eclipse
12+
*.launch
13+
14+
# IntelliJ Idea
15+
.idea/
16+
*.iml
17+
*.ipr
18+
*.iws
19+
20+
# Fleet
21+
.fleet/
22+
23+
# Visual Studio Code
24+
.settings/
25+
.vscode/
26+
bin/
27+
.classpath
28+
.project
29+
30+
# Eclipse JDT LS
31+
workspace/
32+
33+
# macOS
34+
*.DS_Store

LICENSE

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

README.md

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Beta CMP mod for b1.8.1
2+
This is a mod that was made for the Slimeless Tech Hub. It uses Ornithe b1.8.1 to run and acts similarly to mods such as Carpet.
3+
4+
## Using
5+
You need to grab a copy of the [Ornithe installer](https://ornithemc.net/) and follow the steps below.
6+
1. Head to the `Server` tab and enable `Show snapshots`.
7+
2. Wait for it to load, then find `b1.8.1`.
8+
3. Leave everything else as default, you can change the directory of the server files if you want.
9+
4. Click the `Install` button.
10+
5. Run the server with `fabric-server-launch.jar` at least once.
11+
6. Place the Beta CMP mod onto the `mods` folder.
12+
7. You're done! :)
13+
14+
## Commands
15+
| Command | Description |
16+
|---------------------------------------|-----------------------------------------------------|
17+
| `clear` | Clears your inventory |
18+
| `give <item name/id> <amount> [meta]` | Enhanced give command |
19+
| `ping [player]` | View ping (half works due to b1.8.1 pinging slowly) |
20+
| `player <name> <action>` | Fake player command, similar to Carpet mod's |
21+
| `rule [args...]` | View and set rules (more info below) |
22+
| `setblock <x> <y> <z> <block> [meta]` | Set block backport |
23+
| `summon <entity> [x] [y] [z]` | Summon backport |
24+
| `toggledownfall` | Toggle weather |
25+
26+
## Rules
27+
You can set rules with the `/rule` command, which will print all available subcommands.
28+
<br>The easiest way to change a rule is `/rule <rule> <value>`.
29+
<br>If you want to change it permanently, use `/rule setDefault <rule> <value>`.
30+
31+
`disableRailTick`
32+
* Disables detector rail random ticking
33+
* Type: `boolean`
34+
* Default: `false`
35+
36+
`lazyRails`
37+
* Makes all detector rails powered by default
38+
* Acts similarly to redstone blocks
39+
* Type: `boolean`
40+
* Default: `false`

build.gradle

+102
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
plugins {
2+
id 'java'
3+
id 'maven-publish'
4+
id 'fabric-loom' version '1.5-SNAPSHOT' apply false
5+
id 'ploceus' version '1.5-SNAPSHOT' apply false
6+
// stuck on loom 1.5 cause it is able to gen sources
7+
}
8+
9+
def configure(project) {
10+
project.apply plugin: 'java'
11+
project.apply plugin: 'maven-publish'
12+
project.apply plugin: 'fabric-loom'
13+
project.apply plugin: 'ploceus'
14+
15+
project.base {
16+
archivesName = "${project.rootProject.archives_base_name}"
17+
}
18+
project.version = "${project.rootProject.version}+${project.rootProject.minecraft_version}"
19+
project.maven_group = project.rootProject.maven_group
20+
21+
project.repositories {
22+
// Add repositories to retrieve artifacts from in here.
23+
// You should only use this when depending on other mods because
24+
// Loom adds the essential maven repositories to download Minecraft and libraries from automatically.
25+
// See https://docs.gradle.org/current/userguide/declaring_repositories.html
26+
// for more information about repositories.
27+
}
28+
29+
project.dependencies {
30+
minecraft "com.mojang:minecraft:${project.rootProject.minecraft_version}"
31+
mappings project.loom.layered {
32+
mappings "net.ornithemc:feather:${project.rootProject.minecraft_version}-${project.environment}+build.${project.feather_build}:v2"
33+
addLayer project.ploceus.nestedMappings() // remove this line if not using nests
34+
}
35+
nests "net.ornithemc:nests:${project.rootProject.minecraft_version}-${project.environment}+build.${project.nests_build}" // remove this line if not using nests
36+
37+
modImplementation "net.fabricmc:fabric-loader:${project.rootProject.loader_version}"
38+
39+
project.ploceus.addCommonLibraries();
40+
project.ploceus.dependOsl(project.osl_version, project.environment)
41+
}
42+
43+
project.sourceSets {
44+
main {
45+
java {
46+
srcDirs += project.rootProject.sourceSets.main.java.srcDirs
47+
}
48+
resources {
49+
srcDirs += project.rootProject.sourceSets.main.resources.srcDirs
50+
}
51+
}
52+
}
53+
54+
project.processResources {
55+
filesMatching('fabric.mod.json') {
56+
expand project.properties
57+
}
58+
}
59+
60+
project.tasks.withType(JavaCompile).configureEach {
61+
it.options.encoding = 'UTF-8'
62+
it.options.release = 8
63+
}
64+
65+
project.java {
66+
// Still required by IDEs such as Eclipse and Visual Studio Code
67+
sourceCompatibility = JavaVersion.VERSION_1_8
68+
targetCompatibility = JavaVersion.VERSION_1_8
69+
70+
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task if it is present.
71+
// If you remove this line, sources will not be generated.
72+
withSourcesJar()
73+
74+
// If this mod is going to be a library, then it should also generate Javadocs in order to aid with development.
75+
// Uncomment this line to generate them.
76+
// withJavadocJar()
77+
}
78+
79+
// If you plan to use a different file for the license, don't forget to change the file name here!
80+
project.jar {
81+
from('LICENSE') {
82+
rename { "${it}_${project.base.archivesName.get()}" }
83+
}
84+
}
85+
86+
// Configure the maven publication
87+
project.publishing {
88+
publications {
89+
mavenJava(MavenPublication) {
90+
from project.components.java
91+
}
92+
}
93+
94+
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
95+
repositories {
96+
// Add repositories to publish to here.
97+
// Notice: This block does NOT have the same function as the block in the top level.
98+
// The repositories here will be used for publishing your artifact, not for
99+
// retrieving dependencies.
100+
}
101+
}
102+
}

gradle.properties

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Gradle Properties
2+
org.gradle.jvmargs = -Xmx1G
3+
org.gradle.parallel = true
4+
5+
# Mod Properties
6+
version = 1.0.0
7+
maven_group = me.kimovoid
8+
archives_base_name = betacmp
9+
10+
# Dependencies - check https://ornithemc.net/develop for the latest versions
11+
minecraft_version = b1.8.1
12+
loader_version = 0.15.3
13+
14+
osl_version = 0.12.0

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.6-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
6+
zipStoreBase=GRADLE_USER_HOME
7+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)