repo for my hex addons :3
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

set up hexdoc again

+61 -36
+8 -8
.gitignore
··· 129 129 !libs/*.jar 130 130 131 131 # Hexdoc 132 - *.egg-info 133 - .hexdoc/ 134 - .vscode/ 135 - __pycache__/ 136 - _site/ 137 - doc/src/hexdoc_hexic/__version__.py 138 - doc/src/hexdoc_hexic/__gradle_version__.py 139 - doc/src/hexdoc_hexic/_export/generated/ 132 + **/*.egg-info 133 + **/.hexdoc/ 134 + **/.vscode/ 135 + **/__pycache__/ 136 + **/_site/ 137 + **/doc/src/hexdoc_*/__version__.py 138 + **/doc/src/hexdoc_*/__gradle_version__.py 139 + **/doc/src/hexdoc_*/_export/generated/ 140 140 141 141 # Chloebuild 142 142 .cb_cache
+7 -1
build.gradle.kts
··· 132 132 val langRoot = destinationDir.resolve("assets/$modid/lang") 133 133 134 134 doLast { 135 + println("rewriting book references in $bookRoot…") 135 136 bookRoot.list()?.forEach { lang -> 136 137 val langFile = langRoot.resolve("$lang.json") 138 + println("• considering $lang ($langFile)") 137 139 if (langFile.exists()) { 138 140 val entries = JsonSlurper().parseText(langFile.readText()) as MutableMap<String, String> 139 141 var n = 0 140 - for (bookFile in bookRoot.resolve(lang).walkTopDown()) { 142 + for (bookFile in bookRoot.resolve("$lang/entries").walkTopDown()) { 141 143 if (bookFile.isFile) { 144 + println(" • reading entry at $bookFile") 142 145 val json = JsonSlurper().parseText(bookFile.readText()) 143 146 if (json !is Map<*, *>) continue 144 147 json as MutableMap<Any, Any> 145 148 val name = json["name"] 146 149 if (name is String) { 150 + println(" • name: $name") 147 151 entries["text.$modid.book.${n}"] = name 148 152 json["name"] = "text.$modid.book.${n}" 149 153 n++ ··· 154 158 for (i in pages.indices) { 155 159 val page = pages[i] 156 160 if (page is String) { 161 + println(" • pages.$i: ${page.take(80)}") 157 162 entries["text.$modid.book.${n}"] = page 158 163 pages[i] = "text.$modid.book.${n}" 159 164 n++ ··· 162 167 for (key in listOf("text", "title", "header")) { 163 168 val text = page[key] 164 169 if (text != null && text is String) { 170 + println(" • pages.$i.$key: ${text.take(80)}") 165 171 entries["text.$modid.book.${n}"] = text 166 172 page[key] = "text.$modid.book.${n}" 167 173 n++
+11 -5
doc/hexdoc.toml project/hexic/doc/hexdoc.toml
··· 4 4 default_branch = "main" 5 5 6 6 resource_dirs = [ 7 - "resources", 8 7 "../build2001/resources/main", 8 + "resources", 9 9 { modid="hexcasting" }, 10 10 { modid="minecraft" }, 11 11 { modid="hexdoc" }, ··· 32 32 33 33 [template.args] 34 34 mod_name = "Hexic" 35 - author = "PoolloverNathan" 35 + author = "pool" 36 36 show_landing_text = false 37 37 38 38 [[template.args.navbar.center]] 39 - text = "Download" 39 + text = "Modrinth" 40 40 href = "https://modrinth.com/mod/hexic" 41 41 [[template.args.navbar.center]] 42 - text = "Source" 43 - href = "https://codeberg.org/poollovernathan/hexic" 42 + text = "Codeberg" 43 + href = "https://pool.net.eu.org/git/hex-addons" 44 + [[template.args.navbar.center]] 45 + text = "Radicle" 46 + href = "https://radicle.network/nodes/seed.lama2923.dev/rad:zChmxddnxPemALy4RuZ7zQgzDxYv" 47 + [[template.args.navbar.center]] 48 + text = "Tangled" 49 + href = "https://tangled.sh/pool.net.eu.org/hex-addons" 44 50 45 51 [textures.override] 46 52 "hexic:preferred_mediaweave" = { texture = "hexic:textures/item/magenta_mediaweave.png" }
doc/resources/assets/hexcasting/patchouli_books/thehexbook/en_us/entries/addon/hexic/appendix.json project/hexic/doc/resources/assets/hexcasting/patchouli_books/thehexbook/en_us/entries/addon/hexic/appendix.json
doc/resources/assets/hexcasting/patchouli_books/thehexbook/zh_cn/entries/addon/hexic/appendix.json project/hexic/doc/resources/assets/hexcasting/patchouli_books/thehexbook/zh_cn/entries/addon/hexic/appendix.json
doc/resources/assets/hexic/models/item/preferred_mediaweave.json project/hexic/doc/resources/assets/hexic/models/item/preferred_mediaweave.json
doc/resources/assets/hexic/models/item/preferred_pen.json project/hexic/doc/resources/assets/hexic/models/item/preferred_pen.json
doc/resources/assets/hexic/models/item/preferred_stringworm.json project/hexic/doc/resources/assets/hexic/models/item/preferred_stringworm.json
doc/resources/assets/hexic/models/item/small_preferred_bundle.json project/hexic/doc/resources/assets/hexic/models/item/small_preferred_bundle.json
doc/src/hexdoc_hexic/__init__.py project/hexic/doc/src/hexdoc_hexic/__init__.py
+1 -1
doc/src/hexdoc_hexic/_hooks.py project/hexic/doc/src/hexdoc_hexic/_hooks.py
··· 17 17 class HexicModPlugin(ModPluginWithBook): 18 18 modid = "hexic" 19 19 full_version = FULL_VERSION 20 - mod_version = MOD_VERSION 20 + mod_version = VERSION 21 21 plugin_version = PY_VERSION 22 22 def resource_dirs(self): 23 23 from ._export import generated
doc/src/hexdoc_hexic/_templates/__init__.py project/hexic/doc/src/hexdoc_hexic/_templates/__init__.py
+24
project/hexic/README.md
··· 1 + <center> 2 + 3 + <img height="200" src="https://hexic.pool.net.eu.org/v/1.4.5/1.0/en_us/favicon-180x180.png" title="hexic icon: a blue stringworm" width="200"/> 4 + 5 + <h1 style="margin-top: 0">hexic</h1> 6 + 7 + [![badge linking to documentation](https://img.shields.io/endpoint?url=https://hexxy.media/api/v0/badge/hexdoc/)](https://files.pool.net.eu.org/docs/hexic) 8 + 9 + </center> 10 + 11 + a small [hex casting][hexcasting] addon adding whatever features i find neat or that feel interesting, as well as some bugfixes. 12 + 13 + ## new features 14 + * **mediaweave**, can be worn on shoulders and lets you easily cast up to two hexes 15 + * **shardcasting**, letting echo shards work as single-use reusable casting devices for e.g. raycasts 16 + * **stringworms**, little creatures to accompany you while hexxing 17 + * **casting pouches**, convenient & efficient media storage that recycles wasted media 18 + * **greater reveal**, permanently displays a list of iotas in chat & deletes them when re-executed (for e.g. status indicators) 19 + * **lani gambits**, allowing casting items to access your staffcasting stack 20 + * i need to update this at some point 21 + 22 + it's been so long since i last updated this readme 23 + 24 + [hexcasting]: https://modrinth.com/mod/hex-casting
+4 -15
project/hexic/build.gradle.kts
··· 385 385 386 386 open class Hexdoc: Exec() { 387 387 init { 388 - environment["GITHUB_PAGES_URL"] = "https://hexic.pool.net.eu.org/" 389 - environment["GITHUB_REPOSITORY"] = "https://codeberg.org/poollovernathan/hexic" 388 + environment["GITHUB_PAGES_URL"] = "https://files.pool.net.eu.org/docs/hexic/" 389 + environment["GITHUB_REPOSITORY"] = "https://tangled.org/pool.net.eu.org/hex-addons" 390 390 environment["DEBUG_GITHUBUSERCONTENT"] = P.contentRoot 391 391 environment["GITHUB_SHA"] = (project.ext["p"] as P).commit_id 392 392 } ··· 401 401 var docsPrefix = project.file(".") 402 402 } 403 403 404 - tasks.register<GradleBuild>("processWithDatagen") { 405 - dependsOn("runDatagen") 406 - tasks = listOf("processResources") 407 - } 408 - 409 - tasks.named("runDatagen") { 410 - doLast { 411 - 412 - } 413 - } 414 - 415 404 val Hexdoc.docsRoot get() = file("$docsPrefix/v/${if (release) "$version/$py_version" else "latest/${p.change_id}"}") 416 405 fun Hexdoc.cleanPrefix() { 417 406 doFirst { ··· 430 419 fun includeContent(text: String) = 431 420 text.replace(Regex("$contentRoot/*([\\w/.-]+?\\.png)")) { 432 421 val path = it.groups[1]!!.value.replace(contentRoot, "").trimStart('/') 433 - val b64 = `java.util`.Base64.getEncoder().encodeToString(file(path).readBytes()) 422 + val b64 = `java.util`.Base64.getEncoder().encodeToString(rootProject.file(path).readBytes()) 434 423 println("\t$it\t$path") 435 424 "data:image/png;base64,$b64" 436 425 } ··· 444 433 commandLine("env", "pip", "install", "-e", ".") 445 434 } 446 435 val hexdoc by tasks.register<Hexdoc>("hexdoc") { 447 - dependsOn(syncPip, "processWithDatagen") 436 + dependsOn(syncPip) 448 437 docsPrefix = file("_site/src/docs") 449 438 cleanPrefix() 450 439 hexdocArgs = listOf("build", "--branch", p.change_id)
+2 -2
project/hexic/src/main/resources/assets/hexcasting/patchouli_books/thehexbook/en_us/entries/addon/hexic/world.json
··· 4 4 "category": "hexcasting:patterns", 5 5 "icon": "minecraft:white_carpet", 6 6 "pages": [ 7 - "the world under my control nature is mine na$(bold)ture is MI/$NE the world $(underline)the world NO LONGER/$ will $(bold)the OVerworld rule me/$ My $(media)mind is going/$ My $(media)mind/$ is going $(o)THE PAIN OF THOUGHT/$ my mind my $(o)mind/$ my a nine by nine room to myself SOLELY MYE$(bold)LF NO ONE ELSE/$ a $(bold)burst/$ of _media to Shatter the $(media)world/$ nearly $(media)six allays $(bold)sewn/$ into $(underline)the walls/$ for eternity oh how it must hurt $(bold)IT HURTS IT/$ $(k)TORTUES/$", 7 + "the world under my control nature is mine na$(bold)ture is MI/$NE the world $(m)the world NO LONGER/$ will $(bold)the OVerworld rule me/$ My $(media)mind is going/$ My $(media)mind/$ is going $(o)THE PAIN OF THOUGHT/$ my mind my $(o)mind/$ my a nine by nine room to myself SOLELY MYE$(bold)LF NO ONE ELSE/$ a $(bold)burst/$ of _media to Shatter the $(media)world/$ nearly $(media)six allays $(bold)sewn/$ into $(m)the walls/$ for eternity oh how it must hurt $(bold)IT HURTS IT/$ $(k)TORTUES/$", 8 8 { 9 9 "type": "hexcasting:pattern", 10 10 "op_id": "hexic:makeworld", ··· 13 13 "output": "imprint", 14 14 "text": "Creates a fresh cuboid with a 9x9x9 interior, as well as a dimension to hold it in. Costs six quenched allays (720 dust)." 15 15 }, 16 - "fragments of space the $(media)world/$ falling apart crumpling a $(o)fine powder/$ to the _media tie my plane TIE IT DOWN WELL bindings of $(media)thought/$ to keep it safe safe from others safe from $(media)me/$ only $(bold)a sliver of an allay's mind for the price/$ eternally trapped n$(underline)ot alive not dead mer/$ely floating Form the $(media)allay into bindings f/$rom some point outside must $(underline)hurry/$ now $(o)I feel it slipping away/$ $(bold)the cost of tying it to itself $(o)disasterous/$ the plane slipping away $(media)my/$ mind slipping away", 16 + "fragments of space the $(media)world/$ falling apart crumpling a $(o)fine powder/$ to the _media tie my plane TIE IT DOWN WELL bindings of $(media)thought/$ to keep it safe safe from others safe from $(media)me/$ only $(bold)a sliver of an allay's mind for the price/$ eternally trapped n$(m)ot alive not dead mer/$ely floating Form the $(media)allay into bindings f/$rom some point outside must $(m)hurry/$ now $(o)I feel it slipping away/$ $(bold)the cost of tying it to itself $(o)disasterous/$ the plane slipping away $(media)my/$ mind slipping away", 17 17 { 18 18 "type": "hexcasting:pattern", 19 19 "op_id": "hexic:attachworld",
+4 -4
pyproject.toml project/hexic/pyproject.toml
··· 15 15 requires-python = ">=3.12" 16 16 17 17 [[project.authors]] 18 - name = "PoolloverNathan" 18 + name = "pool" 19 19 20 20 [project.urls] 21 21 Homepage = "https://modrinth.com/mod/hexic" 22 - Source = "https://codeberg.org/PoolloverNathan/hexic" 23 - Issues = "https://codeberg.org/PoolloverNathan/hexic/issues" 22 + Source = "https://tangled.org/pool.net.eu.org/hex-addons/tree/main/project/hexic" 23 + Issues = "https://tangled.sh/pool.net.eu.org/hex-addons/issues" 24 24 25 25 [tool.uv.sources] 26 26 hexdoc-hexal = { url = "https://github.com/FallingColors/Hexal/raw/a5d1dbc6528e4a6c7c8f67ba3adc4c143dafb6e5/docs/v/latest/main/dist/hexdoc_hexal-0.3.0.1.0rc4.dev0-py3-none-any.whl" } ··· 42 42 scheme = "gradle" 43 43 source = "gradle-properties" 44 44 py-path = "doc/src/hexdoc_hexic/__version__.py" 45 - key = "mod_version" 45 + key = "version" 46 46 47 47 # directory inclusion 48 48