Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
85d8cbb4fb | ||
|
|
503d54af8b | ||
|
|
673038f09e | ||
|
|
b489b5670f | ||
|
|
ae77ecbcd3 | ||
|
|
7944a61dc3 |
@@ -3,10 +3,12 @@
|
|||||||
# ============================================================
|
# ============================================================
|
||||||
|
|
||||||
# List of website domains allowed for cassette writing. (e.g., youtube.com)
|
# 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.
|
# 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.
|
# Enables the static effect for walkie talkies and speakers.
|
||||||
enableWalkieFiltering = true
|
enableWalkieFiltering = true
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 377 B After Width: | Height: | Size: 378 B |
@@ -1218,7 +1218,7 @@ element {
|
|||||||
anchor_point = bottom-left
|
anchor_point = bottom-left
|
||||||
x = 2
|
x = 2
|
||||||
y = -12
|
y = -12
|
||||||
width = 82
|
width = 88
|
||||||
height = 10
|
height = 10
|
||||||
stay_on_screen = true
|
stay_on_screen = true
|
||||||
element_loading_requirement_container_identifier = da1ec2c9-b037-52ff-8630-9bcb1f2711cd-1791960000000
|
element_loading_requirement_container_identifier = da1ec2c9-b037-52ff-8630-9bcb1f2711cd-1791960000000
|
||||||
@@ -1278,7 +1278,7 @@ element {
|
|||||||
auto_sizing_base_screen_height = 1355
|
auto_sizing_base_screen_height = 1355
|
||||||
sticky_anchor = false
|
sticky_anchor = false
|
||||||
anchor_point = bottom-left
|
anchor_point = bottom-left
|
||||||
x = 90
|
x = 96
|
||||||
y = -12
|
y = -12
|
||||||
width = 88
|
width = 88
|
||||||
height = 10
|
height = 10
|
||||||
@@ -1326,7 +1326,7 @@ element {
|
|||||||
rounding_radius_top_right = 0.0
|
rounding_radius_top_right = 0.0
|
||||||
rounding_radius_bottom_right = 0.0
|
rounding_radius_bottom_right = 0.0
|
||||||
rounding_radius_bottom_left = 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.5"]$
|
[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.10"]$
|
||||||
}
|
}
|
||||||
|
|
||||||
element {
|
element {
|
||||||
@@ -1360,7 +1360,7 @@ element {
|
|||||||
auto_sizing_base_screen_height = 1355
|
auto_sizing_base_screen_height = 1355
|
||||||
sticky_anchor = false
|
sticky_anchor = false
|
||||||
anchor_point = bottom-left
|
anchor_point = bottom-left
|
||||||
x = 90
|
x = 96
|
||||||
y = -12
|
y = -12
|
||||||
width = 122
|
width = 122
|
||||||
height = 10
|
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"}}. Натисни, щоб відкрити сторінку завантаження.
|
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
|
[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][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.5"]$
|
[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.10"]$
|
||||||
}
|
}
|
||||||
|
|
||||||
vanilla_button {
|
vanilla_button {
|
||||||
|
|||||||
@@ -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"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
+12
-8
@@ -18,7 +18,7 @@ hash = "a9cb67725a75eb94c31a4c243c3855a11ffbd31ee104e855dc60f566ccf3730d"
|
|||||||
|
|
||||||
[[files]]
|
[[files]]
|
||||||
file = "config/analogaudio/analogaudio.server.toml"
|
file = "config/analogaudio/analogaudio.server.toml"
|
||||||
hash = "349422faf46dcb0010690384cdd9db9cbd8f9f658638729b9c39d64772fa1203"
|
hash = "cb0ef4b25abc371d84590cab028854ba8e42ae4aa7cb3c8784df33062c00409a"
|
||||||
|
|
||||||
[[files]]
|
[[files]]
|
||||||
file = "config/antique-atlas.toml"
|
file = "config/antique-atlas.toml"
|
||||||
@@ -274,7 +274,7 @@ hash = "8f724d13d7009e1ab935db3c71094aea724faccc729ebd3e050d5a03eac93f8d"
|
|||||||
|
|
||||||
[[files]]
|
[[files]]
|
||||||
file = "config/fancymenu/assets/version.png"
|
file = "config/fancymenu/assets/version.png"
|
||||||
hash = "7a58acfe4ce98bf6b9b42b2c35023565997cbf2e80ca53e46c2ac71a1b7157ea"
|
hash = "28fbb24701214a79028478ba5b612d025d62558b988094fa12a3419fdaf87c28"
|
||||||
|
|
||||||
[[files]]
|
[[files]]
|
||||||
file = "config/fancymenu/custom_gui_screens.txt"
|
file = "config/fancymenu/custom_gui_screens.txt"
|
||||||
@@ -302,7 +302,7 @@ hash = "dbeef22ff98f5f37b75f1d98599ee296137f82febfceaf86ce1b0e5a24c5c82a"
|
|||||||
|
|
||||||
[[files]]
|
[[files]]
|
||||||
file = "config/fancymenu/customization/createrp_title.txt"
|
file = "config/fancymenu/customization/createrp_title.txt"
|
||||||
hash = "e1be178439ea45eefadaba8eaa860d1c34e0dfa61e89fe5fc96961b73ba71f0a"
|
hash = "44aa114c5bddb8a8faded14978559f16253a9811b47e4d8d494793e730cea5aa"
|
||||||
|
|
||||||
[[files]]
|
[[files]]
|
||||||
file = "config/fancymenu/options.txt"
|
file = "config/fancymenu/options.txt"
|
||||||
@@ -940,6 +940,10 @@ hash = "2a2cede9101a2d938c26bf47fbc5c2529e3c4620c3d9245740c2230a9eeef938"
|
|||||||
file = "kubejs/assets/openpartiesandclaims/lang/uk_ua.json"
|
file = "kubejs/assets/openpartiesandclaims/lang/uk_ua.json"
|
||||||
hash = "2a2cede9101a2d938c26bf47fbc5c2529e3c4620c3d9245740c2230a9eeef938"
|
hash = "2a2cede9101a2d938c26bf47fbc5c2529e3c4620c3d9245740c2230a9eeef938"
|
||||||
|
|
||||||
|
[[files]]
|
||||||
|
file = "kubejs/client_scripts/createrp_factory.js"
|
||||||
|
hash = "58810fcc96fbcb72efaed5c2ecd8a1dd0cb39ff294f10f5266dece721227d439"
|
||||||
|
|
||||||
[[files]]
|
[[files]]
|
||||||
file = "kubejs/client_scripts/createrp_plots.js"
|
file = "kubejs/client_scripts/createrp_plots.js"
|
||||||
hash = "aa11368f0f4db4883e8231f6c4a65095af2c38377c9cca362726f14524f3d0eb"
|
hash = "aa11368f0f4db4883e8231f6c4a65095af2c38377c9cca362726f14524f3d0eb"
|
||||||
@@ -950,11 +954,11 @@ hash = "9f862adad6c97ea4d1aba3f333a6f42bfc5fd921d2f960af365e293211492b39"
|
|||||||
|
|
||||||
[[files]]
|
[[files]]
|
||||||
file = "kubejs/client_scripts/createrp_survey.js"
|
file = "kubejs/client_scripts/createrp_survey.js"
|
||||||
hash = "5c170dc3cca31ab560eec9ca326116ee4f666ccd800a79a1c044c4b90f4f8288"
|
hash = "dc8923b48d9dae8a2ad87f1d0eff914b0d7fb0bdbd43fb721a32411e29bb774e"
|
||||||
|
|
||||||
[[files]]
|
[[files]]
|
||||||
file = "kubejs/startup_scripts/createrp_items.js"
|
file = "kubejs/startup_scripts/createrp_items.js"
|
||||||
hash = "049e902a9d12b5811f358d40a2a7e030968e34853cf83a957577cb4bc65d92ff"
|
hash = "1be02502b753d14eba4cd2d454e2199d1c24815b449e1b2c462377acf8bdd71f"
|
||||||
|
|
||||||
[[files]]
|
[[files]]
|
||||||
file = "mods/3dskinlayers.pw.toml"
|
file = "mods/3dskinlayers.pw.toml"
|
||||||
@@ -968,7 +972,7 @@ metafile = true
|
|||||||
|
|
||||||
[[files]]
|
[[files]]
|
||||||
file = "mods/analog-audio.pw.toml"
|
file = "mods/analog-audio.pw.toml"
|
||||||
hash = "7a002da9523d1fb204454508b25d7f9de93dbf752660034a61715d0b4614198d"
|
hash = "58115d643a48c36267b1a41771371eab5fc9dc744ad1b9f4f6fe3ffcd9c1d563"
|
||||||
metafile = true
|
metafile = true
|
||||||
|
|
||||||
[[files]]
|
[[files]]
|
||||||
@@ -1152,8 +1156,8 @@ hash = "b6a535a801939a78f255203f7b28319773becca20cc88348f8764f4078816300"
|
|||||||
metafile = true
|
metafile = true
|
||||||
|
|
||||||
[[files]]
|
[[files]]
|
||||||
file = "mods/createrp_client-0.3.4.jar"
|
file = "mods/createrp_client-0.3.7.jar"
|
||||||
hash = "b2aa904e354a362d4371b67c73be78096fdc28c9fbe1b0da43155af38330e221"
|
hash = "509904380aad4d6fdf8b222e817eb294e7b22e00629d19ee34931743bb57fa44"
|
||||||
|
|
||||||
[[files]]
|
[[files]]
|
||||||
file = "mods/cubes-without-borders.pw.toml"
|
file = "mods/cubes-without-borders.pw.toml"
|
||||||
|
|||||||
@@ -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) }
|
||||||
|
})
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
// Create RP — «Планшет землеміра»: реєстрація території так, як «Креслення і перо» у Create обводить споруду.
|
// Create RP — «Планшет землеміра»: реєстрація території так, як «Креслення і перо» у Create обводить споруду.
|
||||||
// ПКМ — перший кут (чанк під прицілом), ПКМ ще раз — другий кут, третій ПКМ — кнопки оформлення в чаті.
|
// ПКМ — перший кут (чанк під прицілом), ПКМ ще раз — другий кут: ціна й дії — панеллю над хотбаром
|
||||||
|
// (createrp_client: Alt+коліщатко — вибір, ПКМ — виконати). Без createrp_client третій ПКМ дає кнопки в чаті.
|
||||||
// Shift+ПКМ — скинути. Поки обрано лише перший кут, рамка тягнеться за прицілом.
|
// Shift+ПКМ — скинути. Поки обрано лише перший кут, рамка тягнеться за прицілом.
|
||||||
// Рамку малює той самий Outliner, що й виділення Create. Територія — цілі чанки на всю висоту світу.
|
// Рамку малює той самий Outliner, що й виділення Create. Територія — цілі чанки на всю висоту світу.
|
||||||
// Rhino: без const/let усередині циклів і try — лише var.
|
// Rhino: без const/let усередині циклів і try — лише var.
|
||||||
@@ -54,7 +55,7 @@ ItemEvents.rightClicked(SV_ITEM, event => {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
svB = c
|
svB = c
|
||||||
player.setStatusMessage(Text.green('Обрано ' + svCount(svA, svB) + ' чанк. Ціна — в чаті. ПКМ ще раз — оформити'))
|
player.setStatusMessage(Text.green('Обрано ' + svCount(svA, svB) + ' чанк. Ціна й дії — внизу екрана'))
|
||||||
svSend('price')
|
svSend('price')
|
||||||
} else {
|
} else {
|
||||||
svSend('menu')
|
svSend('menu')
|
||||||
|
|||||||
@@ -16,6 +16,17 @@ StartupEvents.registry('item', event => {
|
|||||||
.texture('create:item/schematic_and_quill')
|
.texture('create:item/schematic_and_quill')
|
||||||
.maxStackSize(1)
|
.maxStackSize(1)
|
||||||
.tooltip('§7ПКМ по землі — кут території, ще раз — другий кут')
|
.tooltip('§7ПКМ по землі — кут території, ще раз — другий кут')
|
||||||
.tooltip('§7Третій ПКМ — оформити · Shift+ПКМ — скинути')
|
.tooltip('§7Далі — дії внизу екрана: §fAlt§7+коліщатко, §fПКМ§7 — виконати')
|
||||||
|
.tooltip('§7Shift+ПКМ — скинути')
|
||||||
.tooltip('§7У руці — видно межі ділянок поруч')
|
.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зламана')
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
name = "Analog Audio"
|
name = "Analog Audio"
|
||||||
filename = "Analog-Audio-0.1.0.jar"
|
filename = "Analog-Audio-0.1.5-hotfix.1.jar"
|
||||||
side = "both"
|
side = "both"
|
||||||
|
|
||||||
[download]
|
[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-format = "sha512"
|
||||||
hash = "e282c1b9887e61863f04ad6eab8d7e1a8fe0e51cdbe3978197f9b875ca567d247cae7506d9b7e7f3f47170eac5142331459a36b8f045ff8215433f0360dde496"
|
hash = "b53d0d09d0c6bb864b4ff5426599a029184583ebc8117d5c50fedbd54e949434970e8bf448ce492820f60adab2116effd1a46c7a082b82f53cf7dc3fbba6b909"
|
||||||
|
|
||||||
[update]
|
[update]
|
||||||
[update.modrinth]
|
[update.modrinth]
|
||||||
mod-id = "iMAVG2nH"
|
mod-id = "iMAVG2nH"
|
||||||
version = "UlajPCS1"
|
version = "BshMjyFt"
|
||||||
|
|||||||
Binary file not shown.
@@ -1,12 +1,12 @@
|
|||||||
name = "Create RP"
|
name = "Create RP"
|
||||||
author = "Pinecraft-CreateRP"
|
author = "Pinecraft-CreateRP"
|
||||||
version = "0.16.5"
|
version = "0.16.10"
|
||||||
pack-format = "packwiz:1.1.0"
|
pack-format = "packwiz:1.1.0"
|
||||||
|
|
||||||
[index]
|
[index]
|
||||||
file = "index.toml"
|
file = "index.toml"
|
||||||
hash-format = "sha256"
|
hash-format = "sha256"
|
||||||
hash = "cbb9169531e7e1ca65d9e5229a545a951ff9ea671f79f56c18cfcc628fafeeca"
|
hash = "d541145c439476ee73378bf8234f3ba97307ac986cfef4b36a695a7d3f2e3fd5"
|
||||||
|
|
||||||
[versions]
|
[versions]
|
||||||
minecraft = "1.21.1"
|
minecraft = "1.21.1"
|
||||||
|
|||||||
+14
-1
@@ -1,6 +1,7 @@
|
|||||||
// Exports this packwiz pack as a Modrinth modpack (.mrpack) for Modrinth App / Prism "Import".
|
// Exports this packwiz pack as a Modrinth modpack (.mrpack) for Modrinth App / Prism "Import".
|
||||||
// node tools/export-mrpack.mjs → dist/CreateRP-<version>.mrpack
|
// node tools/export-mrpack.mjs → dist/CreateRP-<version>.mrpack
|
||||||
// Mods are referenced by their Modrinth CDN URL (sha1/sha512/size from the Modrinth API);
|
// 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.
|
// config/ and kubejs/ go into overrides/. Zipping uses Windows' bsdtar (tar -a) or `zip` on Linux.
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
@@ -42,7 +43,19 @@ const files = metas.map(m => {
|
|||||||
downloads: [f.url],
|
downloads: [f.url],
|
||||||
fileSize: f.size
|
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 = {
|
const index = {
|
||||||
formatVersion: 1,
|
formatVersion: 1,
|
||||||
|
|||||||
Reference in New Issue
Block a user