Skip to content

Commit 3df0ade

Browse files
committed
upload
1 parent ea82507 commit 3df0ade

49 files changed

Lines changed: 2486 additions & 2 deletions

Some content is hidden

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

.gitattributes

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#
2+
# https://help.github.com/articles/dealing-with-line-endings/
3+
#
4+
# Linux start script should use lf
5+
/gradlew text eol=lf
6+
7+
# These are Windows script files and should use crlf
8+
*.bat text eol=crlf
9+

.github/workflows/build.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: build
2+
on: [ pull_request, push ]
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-22.04
7+
steps:
8+
- name: checkout repository
9+
uses: actions/checkout@v4
10+
- name: validate gradle wrapper
11+
uses: gradle/actions/wrapper-validation@v4
12+
- name: setup jdk
13+
uses: actions/setup-java@v4
14+
with:
15+
java-version: 21
16+
distribution: "microsoft"
17+
- name: make gradle wrapper executable
18+
run: chmod +x ./gradlew
19+
- name: build
20+
run: ./gradlew build
21+
- name: capture build artifacts - fabric
22+
uses: actions/upload-artifact@v4
23+
with:
24+
name: Artifacts - Fabric
25+
path: fabric/build/libs/
26+
- name: capture build artifacts - forge
27+
uses: actions/upload-artifact@v4
28+
with:
29+
name: Artifacts - Forge
30+
path: forge/build/libs/
31+
- name: capture build artifacts - neoforge
32+
uses: actions/upload-artifact@v4
33+
with:
34+
name: Artifacts - NeoForge
35+
path: neoforge/build/libs/

.gitignore

Lines changed: 40 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2025 Myitian
3+
Copyright (c) 2025-2026 Myitian
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,14 @@
11
# BlockyFile
2-
Use blocks to store files in the Minecraft world.
2+
Use blocks to store files in the Minecraft world. Supports Minecraft 1.21.4~1.21.11, Fabric/NeoForge/Forge.
3+
4+
In-game configuration is supported when Cloth-Config is installed.
5+
6+
## Thanks
7+
8+
Thanks to [Xiamo-vip/WoolFileStorage-1.21.10](https://github.com/Xiamo-vip/WoolFileStorage-1.21.10) for the inspiration.
9+
10+
Its video on Bilibili: [将文件转储在我的世界里_哔哩哔哩bilibili_Minecraft_游戏集锦](https://www.bilibili.com/video/BV1bKmnBdEBb)
11+
12+
## TODOs
13+
- [ ] Localization for `en_us` and `zh_cn`
14+
- [ ] Full test on MC 1.21.4~1.21.11

build.gradle

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
plugins {
2+
id "architectury-plugin" version "3.4-SNAPSHOT"
3+
id "dev.architectury.loom" version "1.11-SNAPSHOT" apply false
4+
}
5+
6+
ext {
7+
props = [
8+
mod_id : project.mod_id,
9+
mod_version : project.mod_version,
10+
mod_name : project.mod_name,
11+
mod_description : project.mod_description,
12+
mod_license : project.mod_license,
13+
mod_author : project.mod_author,
14+
mod_source : project.mod_source,
15+
mod_icon : project.mod_icon,
16+
maven_group : project.maven_group,
17+
supported_minecraft_version_fabric : project.supported_minecraft_version_fabric,
18+
supported_minecraft_version_forge : project.supported_minecraft_version_forge,
19+
supported_minecraft_version_neoforge: project.supported_minecraft_version_neoforge,
20+
]
21+
}
22+
23+
architectury {
24+
minecraft = rootProject.main_minecraft_version
25+
}
26+
27+
subprojects {
28+
apply plugin: "dev.architectury.loom"
29+
30+
dependencies {
31+
minecraft "com.mojang:minecraft:${project.main_minecraft_version}"
32+
mappings loom.layered {
33+
officialMojangMappings()
34+
parchment("org.parchmentmc.data:parchment-${project.main_parchment_mappings}@zip")
35+
}
36+
}
37+
}
38+
39+
allprojects {
40+
apply plugin: "java"
41+
apply plugin: "architectury-plugin"
42+
apply plugin: "maven-publish"
43+
44+
version = project.mod_version
45+
group = project.maven_group
46+
47+
repositories {
48+
maven { url "https://maven.shedaniel.me" }
49+
maven { url "https://maven.architectury.dev" }
50+
maven { url "https://maven.neoforged.net" }
51+
maven { url "https://maven.parchmentmc.org" }
52+
maven { url "https://maven.terraformersmc.com" }
53+
}
54+
55+
tasks.withType(JavaCompile).configureEach {
56+
options.encoding = "UTF-8"
57+
options.release = 21
58+
}
59+
60+
java {
61+
withSourcesJar()
62+
}
63+
}

common/build.gradle

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
architectury {
2+
common(rootProject.enabled_platforms.split(","))
3+
}
4+
5+
base {
6+
archivesName = project.mod_id
7+
}
8+
9+
dependencies {
10+
modImplementation "net.fabricmc:fabric-loader:${project.fabric_loader_version}"
11+
modImplementation "me.shedaniel.cloth:cloth-config-fabric:${project.main_cloth_config_version}"
12+
}
13+
14+
publishing {
15+
publications {
16+
mavenCommon(MavenPublication) {
17+
artifactId = rootProject.mod_id
18+
from components.java
19+
}
20+
}
21+
repositories {
22+
}
23+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package net.myitian.blockyfile;
2+
3+
public enum AxisOrder {
4+
xyz,
5+
xzy,
6+
yxz,
7+
yzx,
8+
zxy,
9+
zyx
10+
}

0 commit comments

Comments
 (0)