Compare commits

...
17 Commits
Author SHA1 Message Date
FulldroperandClaude Opus 5.5 238543e411 0.16.17: the items of phases 2–7 (terrain brush, road layer, debug tools, police, papers); client mod 0.3.10 (clipboard ghost, bridge monitor) (#63–#68)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 11:37:22 +01:00
FulldroperandClaude Sonnet 5.5 b7a33a8cee 0.16.16: the builder's frame for admins; client mod 0.3.8 (#62)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-16 10:24:01 +01:00
FulldroperandClaude Opus 5.5 9c89c5acec 0.16.15: the tender tablet for admins
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 09:46:34 +01:00
FulldroperandClaude Opus 5.5 4c3c1281eb 0.16.14: the state seal and the steward's wand for admins
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 09:04:10 +01:00
FulldroperandClaude Opus 5.5 d4ba1ec4cb 0.16.13: the regenerator's tablet for admins (item, chunk frame outline)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 08:12:17 +01:00
FulldroperandClaude Opus 5.5 1a4188a8b2 README: cover, how to join, public links (#49)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 09:10:09 +03:00
FulldroperandClaude Opus 5.5 5a345c2a52 0.16.12: standard project schematics (Create draws holograms from schematics/)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 08:13:54 +03:00
FulldroperandClaude Opus 5.5 eece418627 0.16.11: Ars Nouveau and GeckoLib out; New Visual Keybing instead of Keymap
The arcane ponder scene keeps Hex Casting only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 07:42:52 +03:00
FulldroperandClaude Opus 5.5 85d8cbb4fb 0.16.10: client mod 0.3.7 (price on the tablet's bar, not in chat)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 07:29:49 +03:00
FulldroperandClaude Opus 5.5 503d54af8b 0.16.9: client mod 0.3.6 (tool choice bar); fitter's clipboard item and its point highlight; tablet hints
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 07:20:16 +03:00
FulldroperandClaude Opus 5.5 673038f09e Analog Audio: cassettes accept any address (blacklist with a placeholder)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 15:49:12 +03:00
FulldroperandClaude Opus 5.5 b489b5670f 0.16.8: client mod 0.3.5 (radio stations)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 15:35:00 +03:00
FulldroperandClaude Opus 5.5 ae77ecbcd3 0.16.7: yt-dlp and FFmpeg come with the pack (no AnalogLib setup download)
external-files.json lists non-mod files the .mrpack downloads; FFmpeg 9.0.2 essentials
and a yt-dlp mirror live in the org's generic packages on Gitea.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 14:53:18 +03:00
FulldroperandClaude Opus 5.5 7944a61dc3 0.16.6: Analog Audio 0.1.5-hotfix.1 (SoundCloud plays again)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 14:43:35 +03:00
FulldroperandClaude Opus 5.5 df73f49622 0.16.5: EMI buttons fixed (each rebuilt within its own rectangle)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 14:31:38 +03:00
FulldroperandClaude Opus 5.5 f10a6ff1b4 0.16.4: client mod 0.3.4 (the server load warning works)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 11:14:23 +03:00
FulldroperandClaude Opus 5.5 638f001de3 0.16.3: version only — to check the update screen
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 11:09:25 +03:00
29 changed files with 563 additions and 110 deletions
+23 -14
View File
@@ -1,26 +1,35 @@
![Create RP — держава пари й шестерень](https://git.fulldroper.ks.ua/Pinecraft-CreateRP/assets/raw/branch/main/branding/banners/wiki-cover.png)
# Create RP — клієнт
Клієнтська збірка для сервера **Create RP** (`create.fulldroper.ks.ua`): Minecraft **1.21.1**, NeoForge **21.1.259**, 117 модів.
**Держава пари й шестерень.** Сервер рольової гри на Minecraft з модом Create: держава купує працю й товар,
здає землю, дає кредити й замовляє будівництво, а гравці наймаються на роботу, відкривають бізнеси й будують заводи.
## Встановлення
Адреса сервера: **`create.fulldroper.ks.ua`** · Minecraft **1.21.1**, NeoForge **21.1.259**, 119 модів.
**Modrinth App (найпростіше):** завантажити `CreateRP-<версія>.mrpack` з [релізів](../client/releases) →
Modrinth App → «+» → «Import from file». Збірка сама підтягне NeoForge 21.1.259 і всі моди.
## Як приєднатися
**Prism Launcher / packwiz-installer (автооновлення):** профіль NeoForge 1.21.1 / 21.1.259, у pre-launch команді
1. Завантаж останній `CreateRP-<версія>.mrpack` із [релізів](https://git.fulldroper.ks.ua/Pinecraft-CreateRP/client/releases/latest).
2. Modrinth App → «+» → «Import from file» → вибери файл. Збірка сама підтягне NeoForge і всі моди.
3. Запусти гру й натисни «Грати» в головному меню.
```
"$INST_JAVA" -jar packwiz-installer-bootstrap.jar http://git.no.ra/Pinecraft-CreateRP/client/raw/branch/main/pack.toml
```
Далі збірка оновлюється сама: коли вийде нова версія, гра запропонує її на головному екрані, завантажить і
поставить після перезапуску. Докладніше — у вікі: [Встановлення](https://git.fulldroper.ks.ua/Pinecraft-CreateRP/client/wiki/Встановлення),
[Як грати](https://git.fulldroper.ks.ua/Pinecraft-CreateRP/client/wiki/Як-грати), [Відомі проблеми](https://git.fulldroper.ks.ua/Pinecraft-CreateRP/client/wiki/Відомі-проблеми).
Знайшов помилку — у грі `/bug <що сталося>`, вона потрапить сюди в [задачі](https://git.fulldroper.ks.ua/Pinecraft-CreateRP/client/issues).
## Для мейнтейнера
- Після зміни `mods/` чи `config/`: `node tools/reindex.mjs`, коміт.
- Новий `.mrpack`: підняти `version` у `pack.toml`, `node tools/export-mrpack.mjs` → `dist/`, завантажити в реліз.
- Після зміни `mods/`, `config/`, `kubejs/` чи `schematics/`: `node tools/reindex.mjs`, коміт.
- Новий реліз: підняти `version` у `pack.toml`, перегенерувати меню (`assets/tools/branding/fancymenu.py`),
`node tools/export-mrpack.mjs` → `dist/`, завантажити в реліз Gitea.
## Склад
- `mods/*.pw.toml` — посилання на Modrinth з sha512 (jar у репозиторії немає).
- `config/` — конфіги модів.
- Клієнтські моди (Sodium, Iris, Distant Horizons та ін.) працюють лише у гравця;
обов'язкові на обох боках (Create, Aeronautics, Sable, Hex Casting …) мають збігатися з сервером.
- `mods/*.pw.toml` — посилання на Modrinth з sha512 (jar у репозиторії немає; виняток — наш `createrp_client`).
- `external-files.json` — інші файли, що завантажуються разом зі збіркою (yt-dlp і FFmpeg для Analog Audio).
- `config/`, `kubejs/` — конфіги модів, меню FancyMenu, ресурси інтерфейсу.
- `schematics/` — типові проекти держави (Create малює з них голограми).
- Клієнтські моди (Sodium, Iris, Distant Horizons та ін.) працюють лише у гравця; обов'язкові на обох боках
(Create, Aeronautics, Sable, Hex Casting …) мають збігатися з сервером.
+4 -2
View File
@@ -3,10 +3,12 @@
# ============================================================
# List of website domains allowed for cassette writing. (e.g., youtube.com)
whitelistedUrls = ["youtube.com", "youtu.be", "soundcloud.com", "bandcamp.com"]
# Create RP: a blacklist with a placeholder that never matches = any address is allowed (an empty blacklist would
# refuse everything on the server, an empty whitelist only direct audio files on the client).
whitelistedUrls = ["blocked.invalid"]
# If enabled, the URL whitelist will be treated instead as a blacklist.
whitelistAsBlacklist = false
whitelistAsBlacklist = true
# Enables the static effect for walkie talkies and speakers.
enableWalkieFiltering = true
Binary file not shown.

Before

Width:  |  Height:  |  Size: 398 B

After

Width:  |  Height:  |  Size: 413 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 359 B

After

Width:  |  Height:  |  Size: 368 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 384 B

After

Width:  |  Height:  |  Size: 394 B

@@ -1218,7 +1218,7 @@ element {
anchor_point = bottom-left
x = 2
y = -12
width = 82
width = 88
height = 10
stay_on_screen = true
element_loading_requirement_container_identifier = da1ec2c9-b037-52ff-8630-9bcb1f2711cd-1791960000000
@@ -1278,7 +1278,7 @@ element {
auto_sizing_base_screen_height = 1355
sticky_anchor = false
anchor_point = bottom-left
x = 90
x = 96
y = -12
width = 88
height = 10
@@ -1326,7 +1326,7 @@ element {
rounding_radius_top_right = 0.0
rounding_radius_bottom_right = 0.0
rounding_radius_bottom_left = 0.0
[loading_requirement:fancymenu_visibility_requirement_is_text][requirement_mode:if][req_id:91c9e906-7f6c-52e8-a560-68607073f5b2-1791960000000] = ["mode":"equals","text":"{"placeholder":"json","values":{"source":"https://git.fulldroper.ks.ua/api/v1/repos/Pinecraft-CreateRP/client/releases/latest","json_path":"$.tag_name"}}","compare_with":"v0.16.2"]$
[loading_requirement:fancymenu_visibility_requirement_is_text][requirement_mode:if][req_id:91c9e906-7f6c-52e8-a560-68607073f5b2-1791960000000] = ["mode":"equals","text":"{"placeholder":"json","values":{"source":"https://git.fulldroper.ks.ua/api/v1/repos/Pinecraft-CreateRP/client/releases/latest","json_path":"$.tag_name"}}","compare_with":"v0.16.17"]$
}
element {
@@ -1360,7 +1360,7 @@ element {
auto_sizing_base_screen_height = 1355
sticky_anchor = false
anchor_point = bottom-left
x = 90
x = 96
y = -12
width = 122
height = 10
@@ -1409,7 +1409,7 @@ element {
description = Нова версія збірки: {"placeholder":"json","values":{"source":"https://git.fulldroper.ks.ua/api/v1/repos/Pinecraft-CreateRP/client/releases/latest","json_path":"$.tag_name"}}. Натисни, щоб відкрити сторінку завантаження.
[executable_action_instance:e3201eb9-9957-5172-961e-6a0a3efa8ea8-1791960000000][action_type:openlink] = https://git.fulldroper.ks.ua/Pinecraft-CreateRP/client/releases/latest
[loading_requirement:fancymenu_visibility_requirement_is_text][requirement_mode:if][req_id:8eb26843-5898-5897-a340-cffc49fb58a3-1791960000000] = ["mode":"starts-with","text":"{"placeholder":"json","values":{"source":"https://git.fulldroper.ks.ua/api/v1/repos/Pinecraft-CreateRP/client/releases/latest","json_path":"$.tag_name"}}","compare_with":"v"]$
[loading_requirement:fancymenu_visibility_requirement_is_text][requirement_mode:if_not][req_id:65d764d6-cd1d-5920-a629-9a2662a23dd7-1791960000000] = ["mode":"equals","text":"{"placeholder":"json","values":{"source":"https://git.fulldroper.ks.ua/api/v1/repos/Pinecraft-CreateRP/client/releases/latest","json_path":"$.tag_name"}}","compare_with":"v0.16.2"]$
[loading_requirement:fancymenu_visibility_requirement_is_text][requirement_mode:if_not][req_id:65d764d6-cd1d-5920-a629-9a2662a23dd7-1791960000000] = ["mode":"equals","text":"{"placeholder":"json","values":{"source":"https://git.fulldroper.ks.ua/api/v1/repos/Pinecraft-CreateRP/client/releases/latest","json_path":"$.tag_name"}}","compare_with":"v0.16.17"]$
}
vanilla_button {
+29
View File
@@ -0,0 +1,29 @@
[
{
"path": ".analoglib/bin/yt-dlp.exe",
"note": "yt-dlp 2026.08.19 (Analog Audio streams links through it)",
"side": "client",
"hashes": {
"sha1": "dac56edc61cc7cab31741c937f5d9067bc2cb13a",
"sha512": "d742483ef2f1077f0ef25d4b2f64c7e1355a0c0f271a644d4a354f7b51fbde18d94c76539114beb2a383af6d84008dd93fee5d2388cb95c6a2dd460ad1160b21"
},
"fileSize": 17840399,
"downloads": [
"https://github.com/yt-dlp/yt-dlp/releases/download/2026.08.19/yt-dlp.exe",
"https://git.fulldroper.ks.ua/api/packages/Pinecraft-CreateRP/generic/yt-dlp/2026.08.19/yt-dlp.exe"
]
},
{
"path": ".analoglib/bin/ffmpeg.exe",
"note": "FFmpeg 9.0.2 essentials (gyan.dev), ffmpeg.exe from GyanD/codexffmpeg 9.0.2 — Analog Audio decodes with it",
"side": "client",
"hashes": {
"sha1": "bddf7d95aba465592eed95599eb599cc2a390fc2",
"sha512": "bff0945cb157e115bd806383b4c629989416129ef3806b03e8e198bea5a88b77e4745e6e269258d9ac897cf07c3ea886abc51111480c807ac52ffde006c6b526"
},
"fileSize": 105423872,
"downloads": [
"https://git.fulldroper.ks.ua/api/packages/Pinecraft-CreateRP/generic/ffmpeg/9.0.2/ffmpeg.exe"
]
}
]
+45 -27
View File
@@ -18,7 +18,7 @@ hash = "a9cb67725a75eb94c31a4c243c3855a11ffbd31ee104e855dc60f566ccf3730d"
[[files]]
file = "config/analogaudio/analogaudio.server.toml"
hash = "349422faf46dcb0010690384cdd9db9cbd8f9f658638729b9c39d64772fa1203"
hash = "cb0ef4b25abc371d84590cab028854ba8e42ae4aa7cb3c8784df33062c00409a"
[[files]]
file = "config/antique-atlas.toml"
@@ -266,15 +266,15 @@ hash = "90b77b921986da72e6fac6887f2a5040215ae86433d4adf08ad1c428fd769405"
[[files]]
file = "config/fancymenu/assets/update.png"
hash = "9e3b6791c21c290001c2599990f09057e75a71be56d062fa69d365b6b9291892"
hash = "4860ed240468798d058e05a4d125d333ff9bead7771e8c1c775ce516958ecbeb"
[[files]]
file = "config/fancymenu/assets/uptodate.png"
hash = "8f724d13d7009e1ab935db3c71094aea724faccc729ebd3e050d5a03eac93f8d"
hash = "ede71f54de7c259f40589e4d9534e58a2fd94a2c8cf49f5362f2992eefcaadcc"
[[files]]
file = "config/fancymenu/assets/version.png"
hash = "d52dbafa836d08dd6b651068817e6eafc064ab45067f3b1abe46d7fe176ca838"
hash = "e136fcbd06d43e30a1ea32f307a9e4a5166a14ff227db5e796e7f2d8fcaa690b"
[[files]]
file = "config/fancymenu/custom_gui_screens.txt"
@@ -302,7 +302,7 @@ hash = "dbeef22ff98f5f37b75f1d98599ee296137f82febfceaf86ce1b0e5a24c5c82a"
[[files]]
file = "config/fancymenu/customization/createrp_title.txt"
hash = "dc2ccf570b51931b9271464e65460d0aa21a514737d4a6c4aba5b244aa29a7af"
hash = "eda9f39f478be8675bd3c255d2fa81d9c25dafcae3571ae277880d35504ca453"
[[files]]
file = "config/fancymenu/options.txt"
@@ -834,7 +834,7 @@ hash = "7862a54fb0ab65a11ee4b4c66e7421bf60d3e7502df65b7c90868ea136126b54"
[[files]]
file = "kubejs/assets/emi/textures/gui/buttons.png"
hash = "c6f7c2720a0fa9b45191418d3ea7dbadd1af0fe3c62df57e908dd62b9f471bff"
hash = "9646c51a2910e5e8690004e4306d5f34f48bc521c6af489d4c22f9556ccc4d72"
[[files]]
file = "kubejs/assets/emi/textures/gui/widgets.png"
@@ -940,21 +940,37 @@ hash = "2a2cede9101a2d938c26bf47fbc5c2529e3c4620c3d9245740c2230a9eeef938"
file = "kubejs/assets/openpartiesandclaims/lang/uk_ua.json"
hash = "2a2cede9101a2d938c26bf47fbc5c2529e3c4620c3d9245740c2230a9eeef938"
[[files]]
file = "kubejs/client_scripts/createrp_debug.js"
hash = "180c8254c104adedcaf981a1909697db5f437d04c601baea1747174e8073a667"
[[files]]
file = "kubejs/client_scripts/createrp_factory.js"
hash = "58810fcc96fbcb72efaed5c2ecd8a1dd0cb39ff294f10f5266dece721227d439"
[[files]]
file = "kubejs/client_scripts/createrp_plots.js"
hash = "aa11368f0f4db4883e8231f6c4a65095af2c38377c9cca362726f14524f3d0eb"
[[files]]
file = "kubejs/client_scripts/createrp_ponder.js"
hash = "9f862adad6c97ea4d1aba3f333a6f42bfc5fd921d2f960af365e293211492b39"
hash = "35cd0f3d64283cbf4220028c2f66a04ae0d3f6821deebb82ebc1399e35182541"
[[files]]
file = "kubejs/client_scripts/createrp_regen.js"
hash = "c835f13cbc2371032de5bb5f03cc3edf41a36e569c44226dc3db50a519146258"
[[files]]
file = "kubejs/client_scripts/createrp_seal.js"
hash = "075a2acdfe76d4331b609be53fc6c03a9181c256383adf92d090ab081703ab0b"
[[files]]
file = "kubejs/client_scripts/createrp_survey.js"
hash = "5c170dc3cca31ab560eec9ca326116ee4f666ccd800a79a1c044c4b90f4f8288"
hash = "dc8923b48d9dae8a2ad87f1d0eff914b0d7fb0bdbd43fb721a32411e29bb774e"
[[files]]
file = "kubejs/startup_scripts/createrp_items.js"
hash = "049e902a9d12b5811f358d40a2a7e030968e34853cf83a957577cb4bc65d92ff"
hash = "6403e5633767d298313b74aa1ca1d9f0b364e0779e9fc970c4dae7b5dce8e716"
[[files]]
file = "mods/3dskinlayers.pw.toml"
@@ -968,7 +984,7 @@ metafile = true
[[files]]
file = "mods/analog-audio.pw.toml"
hash = "7a002da9523d1fb204454508b25d7f9de93dbf752660034a61715d0b4614198d"
hash = "58115d643a48c36267b1a41771371eab5fc9dc744ad1b9f4f6fe3ffcd9c1d563"
metafile = true
[[files]]
@@ -991,11 +1007,6 @@ file = "mods/armourers-workshop.pw.toml"
hash = "9fde3fc37e25b17f175145590130aa284439296578fc2b599cbc71f603451d65"
metafile = true
[[files]]
file = "mods/ars-nouveau.pw.toml"
hash = "9645a2d42361e38b0747c43f5e82a7f74cd4f06940cad02d6591e7c81835f733"
metafile = true
[[files]]
file = "mods/autoreconnectrf.pw.toml"
hash = "627eab28e2c7985ac1484eb597d84492103eeeb0f481fd3f480078e4923ab9c9"
@@ -1152,8 +1163,8 @@ hash = "b6a535a801939a78f255203f7b28319773becca20cc88348f8764f4078816300"
metafile = true
[[files]]
file = "mods/createrp_client-0.3.3.jar"
hash = "db1fe9c8c309c3aafa347df21a6cdae1749332689c4e72e09054713fd62dc911"
file = "mods/createrp_client-0.3.10.jar"
hash = "7b5ac84939b6b4383a17a21f742e0502a6e1e87b48ede761ce94f3a8f67b2042"
[[files]]
file = "mods/cubes-without-borders.pw.toml"
@@ -1260,11 +1271,6 @@ file = "mods/fzzy-config.pw.toml"
hash = "f9c118b7a66238a7f9e052705e82402e57c7a5b753d62d679b94701ede479752"
metafile = true
[[files]]
file = "mods/geckolib.pw.toml"
hash = "35779b39ddc06059ec483b33de2ecfdc3adb95c0a49e69b6701fb0024827e2f5"
metafile = true
[[files]]
file = "mods/gravestone-mod.pw.toml"
hash = "e88253c3633274c212b2c4628a26ba03ceba6afff561eb6f9488689fad4cad06"
@@ -1325,11 +1331,6 @@ file = "mods/just-enough-resources-jer.pw.toml"
hash = "7905c08f37d8ebde50a5330a7dd10029de6259b0cb8adbde1170d93ea20218a7"
metafile = true
[[files]]
file = "mods/keymap-maintained.pw.toml"
hash = "50a9215fe6030f140069dd46541666904809582abb70d49d6ff797949fcb3ac7"
metafile = true
[[files]]
file = "mods/konkrete.pw.toml"
hash = "054a1887da4f14b791910660a2a7a2035ac1382461b881a65fe07b224c03735f"
@@ -1390,6 +1391,11 @@ file = "mods/my-nethers-delight.pw.toml"
hash = "e9eaae2c64556b565ebb7db05200392697f2472058cfebd82db3635c3512d918"
metafile = true
[[files]]
file = "mods/new-visual-keybing.pw.toml"
hash = "c5266d3f8e6bb8b1eaa3d45d8cd574d2cfba3b4d1a6295cb5134fcaa36050a10"
metafile = true
[[files]]
file = "mods/no-chat-reports.pw.toml"
hash = "5da18814472be5dc93a21886983646da3a7236413800075ac75229be82d114fa"
@@ -1554,3 +1560,15 @@ metafile = true
file = "mods/yeetus-experimentus.pw.toml"
hash = "5e25dccab496945a5f19bb82383e0ebf98452ffc14cd25c7e0259cc44312281a"
metafile = true
[[files]]
file = "schematics/createrp_house.nbt"
hash = "a7d6828cebbdb4536da09de6b96b581f8a06a85b3c400128eb5b8ac3f84717be"
[[files]]
file = "schematics/createrp_station.nbt"
hash = "59b3f4697ef9b44ce7d2cfec094e0a1745d5da824ab2c73474df5b39c6b0d8ab"
[[files]]
file = "schematics/createrp_workshop.nbt"
hash = "aee5b8f420efcfef25455634aeeee12e1883587783bcea4b175331c81e05f7d0"
Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.6 KiB

After

Width:  |  Height:  |  Size: 9.0 KiB

+64
View File
@@ -0,0 +1,64 @@
// Create RP — налагодження для адміністрації: рентген чанків і інспектор кінетики (сервер — createrp_bridge Inspect).
// Рентген у руці: чанки поруч — рамки на рівні гравця, колір за ділянкою (лот, коридор, шахта, резерв, село, зайнята)
// або блакитний для примусово завантаженого чанка. Дані — каналом createrp_xray раз на секунду.
// Інспектор кінетики: після ПКМ по механізму — блоки його мережі обведені (джерела помаранчеві) на 10 секунд.
// Rhino: без const/let усередині циклів і try — лише var.
const DbOutliner = Java.loadClass('net.createmod.catnip.outliner.Outliner')
const DbAABB = Java.loadClass('net.minecraft.world.phys.AABB')
const DB_XRAY = 'kubejs:chunk_xray'
const DB_COLOR = { land: 0x6FE7A0, transport: 0xB0B0B0, mine: 0x8D6E63, reserved: 0xFFB74D, village: 0xCE93D8, owned: 0xE57373, leased: 0xF06292, forced: 0x4FC3F7 }
let dbChunks = [] // [cx, cz, kind]
let dbKinetic = [] // [x, y, z, kind]
let dbKineticUntil = 0
let dbBroken = false
NetworkEvents.dataReceived('createrp_xray', event => {
var text = String(event.data.getString('rows'))
var list = []
var rows = text.length ? text.split(';') : []
for (var i = 0; i < rows.length; i++) {
var f = rows[i].split(',')
list.push([Number(f[0]), Number(f[1]), f[2]])
}
dbChunks = list
})
NetworkEvents.dataReceived('createrp_kinetic', event => {
var text = String(event.data.getString('members'))
var list = []
var rows = text.length ? text.split(';') : []
for (var i = 0; i < rows.length; i++) {
var f = rows[i].split(',')
list.push([Number(f[0]), Number(f[1]), Number(f[2]), f[3]])
}
dbKinetic = list
dbKineticUntil = Date.now() + 10000
})
function dbDraw () {
var player = Client.player
if (!player) return
if (String(player.mainHandItem.id) === DB_XRAY) {
var y = Math.floor(player.y)
for (var i = 0; i < dbChunks.length; i++) {
var c = dbChunks[i]
DbOutliner.getInstance().showAABB('createrp_xray_' + c[0] + '_' + c[1], new DbAABB(c[0] * 16 + 0.05, y - 1, c[1] * 16 + 0.05, c[0] * 16 + 15.95, y + 3, c[1] * 16 + 15.95))
.colored(DB_COLOR[c[2]] || 0xFFFFFF).lineWidth(1 / 12)
}
}
if (Date.now() < dbKineticUntil) {
for (var j = 0; j < dbKinetic.length && j < 2000; j++) {
var k = dbKinetic[j]
DbOutliner.getInstance().showAABB('createrp_kin_' + k[0] + '_' + k[1] + '_' + k[2], new DbAABB(k[0] - 0.02, k[1] - 0.02, k[2] - 0.02, k[0] + 1.02, k[1] + 1.02, k[2] + 1.02))
.colored(k[3] === 'source' ? 0xFFA726 : 0x80DEEA).lineWidth(1 / 16)
}
}
}
ClientEvents.tick(event => {
if (dbBroken) return
try { dbDraw() } catch (e) { dbBroken = true; console.error('[createrp] debug outlines switched off: ' + e) }
})
+42
View File
@@ -0,0 +1,42 @@
// Create RP — «Планшет наладчика» (адміністрація): поки він у руці, зареєстровані точки поломок заводу
// підсвічені рамками в стилі Create. ПКМ по блоку — додати точку чи прибрати (це робить сервер, createrp_bridge).
// Кольори: звичайна точка — помаранчева, деталь (шестерня чи вал, що злітає) — блакитна, зламана зараз — червона.
// Дані приходять із сервера каналом createrp_factory. Rhino: без const/let усередині циклів і try — лише var.
const FtOutliner = Java.loadClass('net.createmod.catnip.outliner.Outliner')
const FtAABB = Java.loadClass('net.minecraft.world.phys.AABB')
const FT_ITEM = 'kubejs:factory_tool'
const FT_COLOR = { point: 0xFFA726, part: 0x4FC3F7, broken: 0xE53935 }
let ftPoints = [] // [x, y, z, kind]
let ftBroken = false
NetworkEvents.dataReceived('createrp_factory', event => {
var text = String(event.data.getString('points'))
var list = []
var rows = text.length ? text.split(';') : []
for (var i = 0; i < rows.length; i++) {
var f = rows[i].split(',')
list.push([Number(f[0]), Number(f[1]), Number(f[2]), f[3]])
}
ftPoints = list
})
function ftDraw () {
var player = Client.player
if (!player || String(player.mainHandItem.id) !== FT_ITEM) return
for (var i = 0; i < ftPoints.length; i++) {
var p = ftPoints[i]
FtOutliner.getInstance().showAABB('createrp_factory_' + p[0] + '_' + p[1] + '_' + p[2], new FtAABB(p[0] - 0.02, p[1] - 0.02, p[2] - 0.02, p[0] + 1.02, p[1] + 1.02, p[2] + 1.02))
.colored(FT_COLOR[p[3]] || 0xFFFFFF).lineWidth(1 / 16)
}
if (player.tickCount % 40 === 0) {
player.setStatusMessage(Text.of('§6Точок поруч: ' + ftPoints.length + '§7 · ПКМ по блоку — додати / прибрати'))
}
}
ClientEvents.tick(event => {
if (ftBroken) return
try { ftDraw() } catch (e) { ftBroken = true; console.error('[createrp] factory points outline switched off: ' + e) }
})
+5 -12
View File
@@ -526,13 +526,12 @@ function energyScene(scene, util) {
// ---------------------------------------------------------------------------------------------
// ---------------------------------------------------------------------------------------------
// 13. Ефір: дві школи магії в державі
// 13. Ефір: гексографія в державі
function arcaneScene(scene, util) {
scene.showBasePlate()
scene.world.setBlocks([2, 1, 2], 'minecraft:budding_amethyst')
scene.world.setBlocks([2, 2, 2], 'minecraft:amethyst_cluster')
scene.world.setBlocks([0, 1, 3], 'ars_nouveau:source_jar')
scene.world.setBlocks([4, 1, 3], 'hexcasting:slate')
scene.idle(10)
scene.world.showSection([2, 1, 2, 2, 2, 2], Direction.DOWN)
@@ -542,21 +541,15 @@ function arcaneScene(scene, util) {
say(scene, 70, 'Держава вважає ефір ресурсом надр', [2.5, 2.5, 2.5])
say(scene, 70, 'Його вивчає Ефірна палата', [2.5, 2.5, 2.5])
scene.world.showSection([0, 1, 3, 0, 1, 3], Direction.DOWN)
scene.idle(15)
scene.showControls(50, [0.5, 2, 3.5], 'down').withItem('ars_nouveau:novice_spell_book')
say(scene, 70, 'Плетільники збирають ефір у джерело', [0.5, 2, 3.5], PonderPalette.GREEN, true)
say(scene, 70, 'Заклинання складають у книзі', [0.5, 2, 3.5])
scene.world.showSection([4, 1, 3, 4, 1, 3], Direction.DOWN)
scene.idle(15)
scene.showControls(50, [4.5, 1.5, 3.5], 'down').withItem('hexcasting:staff/oak')
say(scene, 70, 'Гексографи креслять візерунки посохом', [4.5, 1.5, 3.5], PonderPalette.GREEN, true)
say(scene, 70, 'Їхнє паливо — аметистовий пил', [4.5, 1.5, 3.5])
scene.world.createItemEntity([2.5, 3.5, 2.5], [0, 0.1, 0], 'ars_nouveau:source_gem')
scene.world.createItemEntity([2.5, 3.5, 2.5], [0, 0.1, 0], 'hexcasting:charged_amethyst')
scene.idle(10)
say(scene, 70, 'Держава купує джерело, пил і аметист', [2.5, 2.5, 2.5], PonderPalette.BLUE, true)
say(scene, 70, 'Держава купує аметист, пил і заряджений аметист', [2.5, 2.5, 2.5], PonderPalette.BLUE, true)
say(scene, 70, 'Ціни — на табло, категорія «Ефір»', [2.5, 2.5, 2.5])
say(scene, 80, 'Торгуєш ефірним — купи ліцензію в магазині', [2.5, 2.5, 2.5], PonderPalette.RED)
@@ -591,7 +584,7 @@ function boardScene(scene, util) {
Ponder.tags(event => {
event.createTag('kubejs:createrp', 'kubejs:citizen_guide', 'Держава Create RP',
'Як жити й заробляти в державній економіці',
['kubejs:citizen_guide', 'create:package_frogport', 'computercraft:computer_advanced', 'computercraft:computer_normal', 'computercraft:monitor_advanced', 'create:stressometer', 'kubejs:land_survey', 'ars_nouveau:source_gem', 'hexcasting:amethyst_dust'])
['kubejs:citizen_guide', 'create:package_frogport', 'computercraft:computer_advanced', 'computercraft:computer_normal', 'computercraft:monitor_advanced', 'create:stressometer', 'kubejs:land_survey', 'hexcasting:amethyst_dust'])
})
Ponder.registry(event => {
@@ -615,7 +608,7 @@ Ponder.registry(event => {
.scene('frogport_sell', 'Create RP: продаж державі', FROG_STRUCTURE, sellScene)
.scene('frogport_buy', 'Create RP: покупки в держави', FROG_STRUCTURE, buyScene)
event.create(['ars_nouveau:source_gem', 'ars_nouveau:novice_spell_book', 'hexcasting:amethyst_dust', 'minecraft:amethyst_shard'])
event.create(['hexcasting:charged_amethyst', 'hexcasting:amethyst_dust', 'minecraft:amethyst_shard'])
.scene('arcane_law', 'Create RP: ефір і магія', arcaneScene)
event.create('create:stressometer')
+78
View File
@@ -0,0 +1,78 @@
// Create RP — «Планшет регенератора» (адміністрація): обвести чанки так само, як планшетом землеміра, і повернути
// їх до стану, яким їх зробив світогенератор (сервер — createrp_bridge Regen, /createrp regen …).
// ПКМ — перший кут (чанк під прицілом), ПКМ ще раз — другий кут: розмір, чиї ділянки в рамці й дії — панеллю над
// хотбаром (createrp_client: Alt+коліщатко — вибір, ПКМ — виконати). Третій ПКМ знову показує панель.
// Shift+ПКМ — скинути. Рамка лишається після регенерації: тим самим планшетом зручно відкотити.
// Rhino: без const/let усередині циклів і try — лише var.
const RgOutliner = Java.loadClass('net.createmod.catnip.outliner.Outliner')
const RgAABB = Java.loadClass('net.minecraft.world.phys.AABB')
const RgTextures = Java.loadClass('com.simibubi.create.AllSpecialTextures')
const RG_ITEM = 'kubejs:regen_tool'
const RG_MAX = 256 // чанків за раз (те саме обмеження на сервері, Regen.MAX_CHUNKS)
const RG_REACH = 160
let rgA = null // [cx, cz] першого кута
let rgB = null
let rgBroken = false
function rgHolding (player) {
return String(player.mainHandItem.id) === RG_ITEM || String(player.offHandItem.id) === RG_ITEM
}
function rgAim (player) {
var hit = null
try { hit = player.rayTrace(RG_REACH) } catch (e) { hit = null }
if (hit && hit.block) return [Math.floor(hit.block.x / 16), Math.floor(hit.block.z / 16)]
return [Math.floor(player.x / 16), Math.floor(player.z / 16)]
}
function rgCount (a, b) { return (Math.abs(a[0] - b[0]) + 1) * (Math.abs(a[1] - b[1]) + 1) }
ItemEvents.rightClicked(RG_ITEM, event => {
var player = event.player
if (!player.hasPermissions(3)) {
player.setStatusMessage(Text.red('Планшет регенератора — лише для адміністрації'))
return
}
if (player.shiftKeyDown || player.crouching) {
rgA = null; rgB = null
player.setStatusMessage(Text.gray('Рамку скинуто'))
return
}
var c = rgAim(player)
if (!rgA) {
rgA = c
player.setStatusMessage(Text.yellow('Перший кут: чанк ' + c[0] + ' ' + c[1] + '. Наведи на другий кут і ПКМ'))
return
}
if (!rgB) {
if (rgCount(rgA, c) > RG_MAX) {
player.setStatusMessage(Text.red('Забагато: ' + rgCount(rgA, c) + ' чанків, можна до ' + RG_MAX))
return
}
rgB = c
}
Client.player.sendData('createrp_regen', { x1: rgA[0], z1: rgA[1], x2: rgB[0], z2: rgB[1] })
})
function rgDraw () {
var player = Client.player
if (!player || !rgA || !rgHolding(player)) return
var b = rgB || rgAim(player)
var x1 = Math.min(rgA[0], b[0]) * 16; var x2 = (Math.max(rgA[0], b[0]) + 1) * 16
var z1 = Math.min(rgA[1], b[1]) * 16; var z2 = (Math.max(rgA[1], b[1]) + 1) * 16
var tooBig = rgCount(rgA, b) > RG_MAX
var colour = tooBig ? 0xE05050 : rgB ? 0xFF9F43 : 0xFFFFFF
RgOutliner.getInstance().showAABB('createrp_regen', new RgAABB(x1, -64, z1, x2, 320, z2))
.colored(colour).lineWidth(1 / 8).withFaceTexture(RgTextures.CHECKERED)
if (!rgB && player.tickCount % 10 === 0) {
player.setStatusMessage(Text.of((tooBig ? '§c' : '§f') + rgCount(rgA, b) + ' чанк. (' + (Math.abs(rgA[0] - b[0]) + 1) + '×' + (Math.abs(rgA[1] - b[1]) + 1) + ')' + (tooBig ? ' — забагато' : ' · ПКМ — другий кут')))
}
}
ClientEvents.tick(event => {
if (rgBroken) return
try { rgDraw() } catch (e) { rgBroken = true; console.error('[createrp] regen outline switched off: ' + e) }
})
+39
View File
@@ -0,0 +1,39 @@
// Create RP — «Державна печатка» (адміністрація): поки вона в руці, позначені державою блоки поруч обведені рамками
// в стилі Create — приймачі зелені, склади блакитні, лічильники енергії жовті. ПКМ по пакувальнику чи стресометру —
// панель дій над хотбаром (це робить сервер, createrp_bridge StateSeal).
// Дані приходять із сервера каналом createrp_seal. Rhino: без const/let усередині циклів і try — лише var.
const SlOutliner = Java.loadClass('net.createmod.catnip.outliner.Outliner')
const SlAABB = Java.loadClass('net.minecraft.world.phys.AABB')
const SL_ITEM = 'kubejs:state_seal'
const SL_COLOR = { receiver: 0x66BB6A, depot: 0x4FC3F7, meter: 0xFFD54F }
let slMarks = [] // [x, y, z, kind]
let slBroken = false
NetworkEvents.dataReceived('createrp_seal', event => {
var text = String(event.data.getString('marks'))
var list = []
var rows = text.length ? text.split(';') : []
for (var i = 0; i < rows.length; i++) {
var f = rows[i].split(',')
list.push([Number(f[0]), Number(f[1]), Number(f[2]), f[3]])
}
slMarks = list
})
function slDraw () {
var player = Client.player
if (!player || String(player.mainHandItem.id) !== SL_ITEM) return
for (var i = 0; i < slMarks.length; i++) {
var p = slMarks[i]
SlOutliner.getInstance().showAABB('createrp_seal_' + p[0] + '_' + p[1] + '_' + p[2], new SlAABB(p[0] - 0.03, p[1] - 0.03, p[2] - 0.03, p[0] + 1.03, p[1] + 1.03, p[2] + 1.03))
.colored(SL_COLOR[p[3]] || 0xFFFFFF).lineWidth(1 / 16)
}
}
ClientEvents.tick(event => {
if (slBroken) return
try { slDraw() } catch (e) { slBroken = true; console.error('[createrp] state seal outline switched off: ' + e) }
})
+3 -2
View File
@@ -1,5 +1,6 @@
// Create RP — «Планшет землеміра»: реєстрація території так, як «Креслення і перо» у Create обводить споруду.
// ПКМ — перший кут (чанк під прицілом), ПКМ ще раз — другий кут, третій ПКМ — кнопки оформлення в чаті.
// ПКМ — перший кут (чанк під прицілом), ПКМ ще раз — другий кут: ціна й дії — панеллю над хотбаром
// (createrp_client: Alt+коліщатко — вибір, ПКМ — виконати). Без createrp_client третій ПКМ дає кнопки в чаті.
// Shift+ПКМ — скинути. Поки обрано лише перший кут, рамка тягнеться за прицілом.
// Рамку малює той самий Outliner, що й виділення Create. Територія — цілі чанки на всю висоту світу.
// Rhino: без const/let усередині циклів і try — лише var.
@@ -54,7 +55,7 @@ ItemEvents.rightClicked(SV_ITEM, event => {
return
}
svB = c
player.setStatusMessage(Text.green('Обрано ' + svCount(svA, svB) + ' чанк. Ціна — в чаті. ПКМ ще раз — оформити'))
player.setStatusMessage(Text.green('Обрано ' + svCount(svA, svB) + ' чанк. Ціна й дії — внизу екрана'))
svSend('price')
} else {
svSend('menu')
+190 -1
View File
@@ -16,6 +16,195 @@ StartupEvents.registry('item', event => {
.texture('create:item/schematic_and_quill')
.maxStackSize(1)
.tooltip('§7ПКМ по землі — кут території, ще раз — другий кут')
.tooltip('§7Третій ПКМ — оформити · Shift+ПКМ — скинути')
.tooltip('§7Далі — дії внизу екрана: §fAlt§7+коліщатко, §fПКМ§7 — виконати')
.tooltip('§7Shift+ПКМ — скинути')
.tooltip('§7У руці — видно межі ділянок поруч')
// «Планшет наладчика» (адміністрація): ПКМ по блоку — точка поломки заводу або прибрати її; у руці — точки
// підсвічені (client_scripts/createrp_factory.js, сервер — createrp_bridge Factory.toolClick)
event.create('factory_tool')
.displayName('Планшет наладчика заводу')
.texture('create:item/clipboard_and_quill')
.maxStackSize(1)
.tooltip('§7Лише для адміністрації')
.tooltip('§7ПКМ по блоку заводу — точка поломки, ще раз — прибрати')
.tooltip('§7У руці — точки підсвічені: §6звичайна§7, §bдеталь§7, §cзламана')
// «Планшет регенератора» (адміністрація): обвести чанки й повернути їх до стану зі світогенератора
// (client_scripts/createrp_regen.js, сервер — createrp_bridge Regen)
event.create('regen_tool')
.displayName('Планшет регенератора')
.texture('create:item/empty_schematic')
.maxStackSize(1)
.tooltip('§7Лише для адміністрації')
.tooltip('§7ПКМ — перший чанк, ще раз — другий; далі дії внизу екрана')
.tooltip('§7Чанки стають такими, як їх згенерував світ: §cусе збудоване зникне')
.tooltip('§7Останні 5 регенерацій можна відкотити · Shift+ПКМ — скинути рамку')
// «Державна печатка» (адміністрація): ПКМ по пакувальнику — державний приймач / склад, по стресометру — лічильник
// енергії; у руці — позначені блоки підсвічені (client_scripts/createrp_seal.js, сервер — createrp_bridge StateSeal)
event.create('state_seal')
.displayName('Державна печатка')
.texture('create:item/package_filter')
.maxStackSize(1)
.tooltip('§7Лише для адміністрації')
.tooltip('§7ПКМ по пакувальнику — державний приймач чи склад')
.tooltip('§7ПКМ по стресометру — лічильник енергії бізнесу ділянки')
.tooltip('§7У руці підсвічені: §aприймачі§7, §bсклади§7, §eлічильники')
// «Жезл розпорядника» (адміністрація): переносити NPC без команд (сервер — createrp_bridge NpcWand)
event.create('npc_wand')
.displayName('Жезл розпорядника')
.texture('minecraft:item/breeze_rod')
.maxStackSize(1)
.tooltip('§7Лише для адміністрації')
.tooltip('§7ПКМ по NPC — обрати, ПКМ по блоку — перенести туди')
.tooltip('§7Shift+ПКМ по обраному — повернути обличчям до себе')
.tooltip('§7Shift+ПКМ у повітря — зняти вибір')
// «Тендерний планшет» (адміністрація): видати типовий проект і оголосити будівельний тендер на місці, де його
// поставили інструментами Create (сервер — createrp_bridge TenderTablet)
event.create('tender_tablet')
.displayName('Тендерний планшет')
.texture('create:item/schematic')
.maxStackSize(1)
.tooltip('§7Лише для адміністрації')
.tooltip('§7ПКМ — панель: взяти типовий проект')
.tooltip('§7Постав проект інструментами Create, тоді ПКМ — оголосити тендер')
.tooltip('§7Ціна й строк — на панелі, §fAlt§7+коліщатко')
// «Рамка будівельника» (адміністрація): виділити коробку блоків (createrp_client: ПКМ — кути, Ctrl+коліщатко —
// грань) і зробити з нею щось з панелі: заливка, заміна, розчистка, зони, відкат (сервер — createrp_bridge Build)
event.create('builder_frame')
.displayName('Рамка будівельника')
.texture('create:item/schematic_and_quill')
.maxStackSize(1)
.tooltip('§7Лише для адміністрації')
.tooltip('§7ПКМ — перший кут, ще раз — другий; §fCtrl§7+коліщатко на грані — розтягнути')
.tooltip('§7Далі — дії на панелі: заливка блоком з другої руки, заміна, розчистка, зони')
.tooltip('§7Усе можна відкотити · Shift+ПКМ — скинути рамку')
// «Пензель рельєфу» (адміністрація): ПКМ по землі — підняти, опустити, згладити чи вирівняти коло навколо точки;
// Shift+ПКМ — режим, радіус, сила (сервер — createrp_bridge TerrainBrush)
event.create('terrain_brush')
.displayName('Пензель рельєфу')
.texture('minecraft:item/brush')
.maxStackSize(1)
.tooltip('§7Лише для адміністрації')
.tooltip('§7ПКМ по землі — мазок (до 96 блоків)')
.tooltip('§7Shift+ПКМ — режим: підняти, опустити, згладити, вирівняти; радіус і сила')
.tooltip('§7Кожен мазок можна відкотити')
// «Прокладач доріг» (адміністрація): ПКМ по землі — точки маршруту, Shift+ПКМ — ширина, ухил, профіль, прокласти;
// там само палітра дорожників (сервер — createrp_bridge RoadLayer)
event.create('road_layer')
.displayName('Прокладач доріг')
.texture('minecraft:item/iron_shovel')
.maxStackSize(1)
.tooltip('§7Лише для адміністрації')
.tooltip('§7ПКМ по землі — точка маршруту (видно іскрами)')
.tooltip('§7Shift+ПКМ — ширина, ухил, дорога чи колія, прокласти')
.tooltip('§7Насип, просіка, міст, тунель — сам; дорога стає коридором')
// Адмін-тули налагодження й модерації (сервер — createrp_bridge ModWand, Monitor, Inspect, PlayerMask)
event.create('mod_wand')
.displayName('Жезл модератора')
.texture('minecraft:item/blaze_rod')
.maxStackSize(1)
.tooltip('§7Лише для адміністрації')
.tooltip('§7ПКМ по гравцю — притягнути, заморозити, інвентар, видати гроші')
event.create('bridge_monitor')
.displayName('Монітор моста')
.texture('minecraft:item/recovery_compass_16')
.maxStackSize(1)
.tooltip('§7Лише для адміністрації')
.tooltip('§7У руці — стан бекенду, черг, кешу й сервера в куті екрана')
event.create('chunk_xray')
.displayName('Рентген чанків')
.texture('minecraft:item/spyglass')
.maxStackSize(1)
.tooltip('§7Лише для адміністрації')
.tooltip('§7У руці — чанки поруч підсвічені за ділянками й примусовим завантаженням')
.tooltip('§7Над хотбаром — усе про чанк, де стоїш')
event.create('kinetic_lens')
.displayName('Інспектор кінетики')
.texture('create:item/goggles')
.maxStackSize(1)
.tooltip('§7Лише для адміністрації')
.tooltip('§7ПКМ по механізму Create — мережа підсвічена, навантаження й джерела')
event.create('player_mask')
.displayName('Маска гравця')
.texture('minecraft:item/leather_helmet')
.maxStackSize(1)
.tooltip('§7Лише для адміністрації')
.tooltip('§7ПКМ — на 10 хв стати звичайним гравцем (без прав і творчого)')
.tooltip('§7ПКМ ще раз — зняти')
// Поліція (лише поліцейські — їх призначає адміністрація жезлом модератора; сервер — createrp_bridge Police)
event.create('police_badge')
.displayName('Посвідчення поліції')
.texture('minecraft:item/shield')
.maxStackSize(1)
.tooltip('§9Поліція')
.tooltip('§7ПКМ у повітря — показати посвідчення всім поруч')
.tooltip('§7ПКМ по гравцю — паспорт, обшук за ордером, камера')
event.create('handcuffs')
.displayName('Наручники')
.texture('minecraft:item/chain')
.maxStackSize(1)
.tooltip('§9Поліція')
.tooltip('§7ПКМ по гравцю — надіти або зняти; закутий іде за тобою')
event.create('baton')
.displayName('Кийок')
.texture('minecraft:item/stick')
.maxStackSize(1)
.tooltip('§9Поліція')
.tooltip('§7Удар по гравцю — приголомшує на кілька секунд (раз на 10 с)')
event.create('fine_book')
.displayName('Книжка штрафів')
.texture('minecraft:item/writable_book')
.maxStackSize(1)
.tooltip('§9Поліція')
.tooltip('§7ПКМ по гравцю — штраф за статтею; гроші в казну, інакше борг')
// Папери й власність гравців (сервер — createrp_bridge Papers, гроші — економіка lib/papers.js)
event.create('cheque')
.displayName('Чек')
.texture('minecraft:item/paper')
.maxStackSize(16)
.tooltip('§7Чистий бланк: /cheque <сума> — гроші відкладаються, чек не «відскочить»')
.tooltip('§7Виписаний: ПКМ — отримати гроші')
event.create('business_seal')
.displayName('Печатка бізнесу')
.texture('minecraft:item/honeycomb')
.maxStackSize(1)
.tooltip('§7Власник або директор бізнесу: документ у другу руку, ПКМ — скріпити')
event.create('contract')
.displayName('Договір')
.texture('minecraft:item/map')
.maxStackSize(1)
.tooltip('§7/contract new <гравець> <сума> <днів> <предмет>')
.tooltip('§7Сума — на депозиті держави до виконання')
event.create('lock')
.displayName('Замок')
.texture('minecraft:item/iron_ingot')
.maxStackSize(16)
.tooltip('§7ПКМ по дверях, люку чи хвіртці на своїй ділянці — замкнути; дає ключ')
event.create('key')
.displayName('Ключ')
.texture('minecraft:item/tripwire_hook')
.maxStackSize(1)
.tooltip('§7Відчиняє свій замок · Shift+ПКМ у повітря — дублікат (10 ¤)')
.tooltip('§7Shift+ПКМ по своєму замку — зняти його')
event.create('licence_plate')
.displayName('Номерний знак')
.texture('minecraft:item/name_tag')
.maxStackSize(16)
.tooltip('§7ПКМ по транспорту — зареєструвати номер на себе')
event.create('taximeter')
.displayName('Таксометр')
.texture('minecraft:item/clock_00')
.maxStackSize(1)
.tooltip('§7ПКМ по пасажиру — запропонувати поїздку, ще раз — кінець і оплата')
.tooltip('§7/taxi rate <¤ за 100 блоків>')
})
+4 -4
View File
@@ -1,13 +1,13 @@
name = "Analog Audio"
filename = "Analog-Audio-0.1.0.jar"
filename = "Analog-Audio-0.1.5-hotfix.1.jar"
side = "both"
[download]
url = "https://cdn.modrinth.com/data/iMAVG2nH/versions/UlajPCS1/Analog-Audio-0.1.0.jar"
url = "https://cdn.modrinth.com/data/iMAVG2nH/versions/BshMjyFt/Analog-Audio-0.1.5-hotfix.1.jar"
hash-format = "sha512"
hash = "e282c1b9887e61863f04ad6eab8d7e1a8fe0e51cdbe3978197f9b875ca567d247cae7506d9b7e7f3f47170eac5142331459a36b8f045ff8215433f0360dde496"
hash = "b53d0d09d0c6bb864b4ff5426599a029184583ebc8117d5c50fedbd54e949434970e8bf448ce492820f60adab2116effd1a46c7a082b82f53cf7dc3fbba6b909"
[update]
[update.modrinth]
mod-id = "iMAVG2nH"
version = "UlajPCS1"
version = "BshMjyFt"
-13
View File
@@ -1,13 +0,0 @@
name = "Ars Nouveau"
filename = "ars_nouveau-1.21.1-5.13.3.jar"
side = "both"
[download]
url = "https://cdn.modrinth.com/data/TKB6INcv/versions/yWDnir1o/ars_nouveau-1.21.1-5.13.3.jar"
hash-format = "sha512"
hash = "30f188cfc932bd58c95740488732df7e92d98e7345e271b1a223e41a43fc3dd52284d0ff07fc3e8a95e914082f899394eff3a0f37c174d317e6e37fb68b083df"
[update]
[update.modrinth]
mod-id = "TKB6INcv"
version = "yWDnir1o"
Binary file not shown.
Binary file not shown.
-13
View File
@@ -1,13 +0,0 @@
name = "Geckolib"
filename = "geckolib-neoforge-1.21.1-4.9.3.jar"
side = "both"
[download]
url = "https://cdn.modrinth.com/data/8BmcQJ2H/versions/Grwn5rUB/geckolib-neoforge-1.21.1-4.9.3.jar"
hash-format = "sha512"
hash = "8dfa5f8c57224a5e34e5098367ea9819ca6dc9c11357cd3062c16da3455c8bd1a483098af7383debc4b9ce8e4d7ab3fdc799b415644eb829da83eb72a7335dfd"
[update]
[update.modrinth]
mod-id = "8BmcQJ2H"
version = "Grwn5rUB"
-13
View File
@@ -1,13 +0,0 @@
name = "Keymap [Maintained]"
filename = "keymap-1.21.1-NeoForge-0.11.3.jar"
side = "client"
[download]
url = "https://cdn.modrinth.com/data/8b8sY7tn/versions/o4XKlPPI/keymap-1.21.1-NeoForge-0.11.3.jar"
hash-format = "sha512"
hash = "0623023ab8f6d04829fd6d2152f0fc3b61cb17647df88ec5684dbf1c1128db963520e972ecf795cd8ad33c6434e600c0c9ea4f2db1e1fa4ff6a1bab59f4be0a8"
[update]
[update.modrinth]
mod-id = "8b8sY7tn"
version = "o4XKlPPI"
+13
View File
@@ -0,0 +1,13 @@
name = "New Visual Keybing"
filename = "New Visual Keybing-neoforge-1.21.1-0.9.4.jar"
side = "client"
[download]
url = "https://cdn.modrinth.com/data/jUO7wMKn/versions/JxOiB9WV/New%20Visual%20Keybing-neoforge-1.21.1-0.9.4.jar"
hash-format = "sha512"
hash = "087190b4e7a744f5ccc637b0699d0e60cdd574b5c2f45db97656642efed93ce1274ad7b46c352b7be507f8b2a3f6b1412deed56d7143d041077a37b91a61ddba"
[update]
[update.modrinth]
mod-id = "jUO7wMKn"
version = "JxOiB9WV"
+2 -2
View File
@@ -1,12 +1,12 @@
name = "Create RP"
author = "Pinecraft-CreateRP"
version = "0.16.2"
version = "0.16.17"
pack-format = "packwiz:1.1.0"
[index]
file = "index.toml"
hash-format = "sha256"
hash = "44dce1462f09d7b04536ad274b41dcbc058c8ef836481c694bcc77c8b6e48950"
hash = "90704d4d02d947716a5e7b8e60144f76d6ec28e09ee17d79e67a345176ad0b0f"
[versions]
minecraft = "1.21.1"
Binary file not shown.
Binary file not shown.
Binary file not shown.
+16 -1
View File
@@ -1,6 +1,7 @@
// Exports this packwiz pack as a Modrinth modpack (.mrpack) for Modrinth App / Prism "Import".
// node tools/export-mrpack.mjs → dist/CreateRP-<version>.mrpack
// Mods are referenced by their Modrinth CDN URL (sha1/sha512/size from the Modrinth API);
// external-files.json adds other downloaded files (Analog Audio's yt-dlp/FFmpeg in .analoglib/bin);
// config/ and kubejs/ go into overrides/. Zipping uses Windows' bsdtar (tar -a) or `zip` on Linux.
import fs from 'fs';
import path from 'path';
@@ -42,7 +43,19 @@ const files = metas.map(m => {
downloads: [f.url],
fileSize: f.size
};
}).sort((a, b) => a.path.localeCompare(b.path));
});
// files that are not mods but are downloaded the same way (Analog Audio's yt-dlp and FFmpeg): external-files.json
const externalFile = path.join(root, 'external-files.json');
if (fs.existsSync(externalFile)) {
for (const x of JSON.parse(fs.readFileSync(externalFile, 'utf8'))) files.push({
path: x.path,
hashes: x.hashes,
env: { client: x.side === 'server' ? 'unsupported' : 'required', server: x.side === 'client' ? 'unsupported' : 'required' },
downloads: x.downloads,
fileSize: x.fileSize
});
}
files.sort((a, b) => a.path.localeCompare(b.path));
const index = {
formatVersion: 1,
@@ -60,6 +73,8 @@ fs.rmSync(stage, { recursive: true, force: true });
fs.mkdirSync(path.join(stage, 'overrides'), { recursive: true });
fs.writeFileSync(path.join(stage, 'modrinth.index.json'), JSON.stringify(index, null, 2));
fs.cpSync(path.join(root, 'config'), path.join(stage, 'overrides', 'config'), { recursive: true });
// schematics/: the state's standard projects — Create draws a project's hologram from here (projects in the shop)
if (fs.existsSync(path.join(root, 'schematics'))) fs.cpSync(path.join(root, 'schematics'), path.join(stage, 'overrides', 'schematics'), { recursive: true });
// kubejs/assets: always-on client resources (CC terminal font with Cyrillic)
if (fs.existsSync(path.join(root, 'kubejs'))) fs.cpSync(path.join(root, 'kubejs'), path.join(stage, 'overrides', 'kubejs'), { recursive: true });
// jars that live in the pack itself (our createrp_client mod) are not on Modrinth: they go in as overrides
+1 -1
View File
@@ -7,7 +7,7 @@ import crypto from 'crypto';
import { fileURLToPath } from 'url';
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
const INDEXED_DIRS = ['mods', 'config', 'defaultconfigs', 'kubejs'];
const INDEXED_DIRS = ['mods', 'config', 'defaultconfigs', 'kubejs', 'schematics'];
const sha256 = buf => crypto.createHash('sha256').update(buf).digest('hex');
// Hash what git will check out (LF), not what a Windows working copy may hold (CRLF).
const lf = buf => (buf.includes(0) ? buf : Buffer.from(buf.toString('utf8').replace(/\r\n/g, '\n'), 'utf8'));