Compare commits

...
3 Commits
9 changed files with 79 additions and 19 deletions
+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: 372 B

After

Width:  |  Height:  |  Size: 378 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.8"]$
[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 {
@@ -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.8"]$
[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 {
+11 -7
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"
@@ -274,7 +274,7 @@ hash = "8f724d13d7009e1ab935db3c71094aea724faccc729ebd3e050d5a03eac93f8d"
[[files]]
file = "config/fancymenu/assets/version.png"
hash = "040f94215407df43717491a901441cedc8cb6344b5005fb6790f27499dd1bd6d"
hash = "28fbb24701214a79028478ba5b612d025d62558b988094fa12a3419fdaf87c28"
[[files]]
file = "config/fancymenu/custom_gui_screens.txt"
@@ -302,7 +302,7 @@ hash = "dbeef22ff98f5f37b75f1d98599ee296137f82febfceaf86ce1b0e5a24c5c82a"
[[files]]
file = "config/fancymenu/customization/createrp_title.txt"
hash = "47fcc270fbc2cf914177f8c93db696c2f8732b46aabbc1b5e7c913b01aedaa0e"
hash = "44aa114c5bddb8a8faded14978559f16253a9811b47e4d8d494793e730cea5aa"
[[files]]
file = "config/fancymenu/options.txt"
@@ -940,6 +940,10 @@ hash = "2a2cede9101a2d938c26bf47fbc5c2529e3c4620c3d9245740c2230a9eeef938"
file = "kubejs/assets/openpartiesandclaims/lang/uk_ua.json"
hash = "2a2cede9101a2d938c26bf47fbc5c2529e3c4620c3d9245740c2230a9eeef938"
[[files]]
file = "kubejs/client_scripts/createrp_factory.js"
hash = "58810fcc96fbcb72efaed5c2ecd8a1dd0cb39ff294f10f5266dece721227d439"
[[files]]
file = "kubejs/client_scripts/createrp_plots.js"
hash = "aa11368f0f4db4883e8231f6c4a65095af2c38377c9cca362726f14524f3d0eb"
@@ -950,11 +954,11 @@ hash = "9f862adad6c97ea4d1aba3f333a6f42bfc5fd921d2f960af365e293211492b39"
[[files]]
file = "kubejs/client_scripts/createrp_survey.js"
hash = "5c170dc3cca31ab560eec9ca326116ee4f666ccd800a79a1c044c4b90f4f8288"
hash = "dc8923b48d9dae8a2ad87f1d0eff914b0d7fb0bdbd43fb721a32411e29bb774e"
[[files]]
file = "kubejs/startup_scripts/createrp_items.js"
hash = "049e902a9d12b5811f358d40a2a7e030968e34853cf83a957577cb4bc65d92ff"
hash = "1be02502b753d14eba4cd2d454e2199d1c24815b449e1b2c462377acf8bdd71f"
[[files]]
file = "mods/3dskinlayers.pw.toml"
@@ -1152,8 +1156,8 @@ hash = "b6a535a801939a78f255203f7b28319773becca20cc88348f8764f4078816300"
metafile = true
[[files]]
file = "mods/createrp_client-0.3.5.jar"
hash = "04f74b47c7af036c9beab463a2315c8f0b5f004f96b4fdfe318b16cbc38362cd"
file = "mods/createrp_client-0.3.7.jar"
hash = "509904380aad4d6fdf8b222e817eb294e7b22e00629d19ee34931743bb57fa44"
[[files]]
file = "mods/cubes-without-borders.pw.toml"
+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) }
})
+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')
+12 -1
View File
@@ -16,6 +16,17 @@ 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зламана')
})
+2 -2
View File
@@ -1,12 +1,12 @@
name = "Create RP"
author = "Pinecraft-CreateRP"
version = "0.16.8"
version = "0.16.10"
pack-format = "packwiz:1.1.0"
[index]
file = "index.toml"
hash-format = "sha256"
hash = "b8696ab01cef708a895d48c88676ef4a617cd2660ff6c9cd2ce6454da03e4ada"
hash = "d541145c439476ee73378bf8234f3ba97307ac986cfef4b36a695a7d3f2e3fd5"
[versions]
minecraft = "1.21.1"