Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b7a33a8cee | ||
|
|
9c89c5acec | ||
|
|
4c3c1281eb |
Binary file not shown.
|
Before Width: | Height: | Size: 388 B After Width: | Height: | Size: 368 B |
@@ -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.13"]$
|
||||
[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.16"]$
|
||||
}
|
||||
|
||||
element {
|
||||
@@ -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.13"]$
|
||||
[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.16"]$
|
||||
}
|
||||
|
||||
vanilla_button {
|
||||
|
||||
+9
-5
@@ -274,7 +274,7 @@ hash = "ede71f54de7c259f40589e4d9534e58a2fd94a2c8cf49f5362f2992eefcaadcc"
|
||||
|
||||
[[files]]
|
||||
file = "config/fancymenu/assets/version.png"
|
||||
hash = "44c39563bf55b840ee504654c91f8ad3ad86fa7f959e86da8c95faf1745f8345"
|
||||
hash = "548a4d853668a842ac6a30c266a8fa10c99ac9d403a0e01d407aad143f5e282e"
|
||||
|
||||
[[files]]
|
||||
file = "config/fancymenu/custom_gui_screens.txt"
|
||||
@@ -302,7 +302,7 @@ hash = "dbeef22ff98f5f37b75f1d98599ee296137f82febfceaf86ce1b0e5a24c5c82a"
|
||||
|
||||
[[files]]
|
||||
file = "config/fancymenu/customization/createrp_title.txt"
|
||||
hash = "74bd3136e55d78b5e260631f152a076134460fc172a3adad5be6b3a76b2d5886"
|
||||
hash = "ef1b0a7ba9c3a240d68206271ffbf18392543b012a041b5585cbf15a087bcb4a"
|
||||
|
||||
[[files]]
|
||||
file = "config/fancymenu/options.txt"
|
||||
@@ -956,13 +956,17 @@ hash = "35cd0f3d64283cbf4220028c2f66a04ae0d3f6821deebb82ebc1399e35182541"
|
||||
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 = "dc8923b48d9dae8a2ad87f1d0eff914b0d7fb0bdbd43fb721a32411e29bb774e"
|
||||
|
||||
[[files]]
|
||||
file = "kubejs/startup_scripts/createrp_items.js"
|
||||
hash = "20b07c8ea22f3f91dc182a0a5d9a777c1e572b5339f727eda4b59f65d8734eee"
|
||||
hash = "94862913398d4ccfd1e3160da7dcb66952d043082cf1327134e86dbc5347a5a3"
|
||||
|
||||
[[files]]
|
||||
file = "mods/3dskinlayers.pw.toml"
|
||||
@@ -1155,8 +1159,8 @@ hash = "b6a535a801939a78f255203f7b28319773becca20cc88348f8764f4078816300"
|
||||
metafile = true
|
||||
|
||||
[[files]]
|
||||
file = "mods/createrp_client-0.3.7.jar"
|
||||
hash = "509904380aad4d6fdf8b222e817eb294e7b22e00629d19ee34931743bb57fa44"
|
||||
file = "mods/createrp_client-0.3.8.jar"
|
||||
hash = "5f61eb0e8a509704ee76c9ddc9c3240d6ebf7c16abd1c960ab206f95890ef559"
|
||||
|
||||
[[files]]
|
||||
file = "mods/cubes-without-borders.pw.toml"
|
||||
|
||||
@@ -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) }
|
||||
})
|
||||
@@ -40,4 +40,47 @@ StartupEvents.registry('item', event => {
|
||||
.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+ПКМ — скинути рамку')
|
||||
})
|
||||
|
||||
Binary file not shown.
@@ -1,12 +1,12 @@
|
||||
name = "Create RP"
|
||||
author = "Pinecraft-CreateRP"
|
||||
version = "0.16.13"
|
||||
version = "0.16.16"
|
||||
pack-format = "packwiz:1.1.0"
|
||||
|
||||
[index]
|
||||
file = "index.toml"
|
||||
hash-format = "sha256"
|
||||
hash = "3242bf83075c8fe918a88f93dd74bcbcb72efeaf976bb35d87f8e75e089c5d38"
|
||||
hash = "999219dd131a1896b5020cea2c6a010b32e179dc51f8233ad47386ea0478ba6e"
|
||||
|
||||
[versions]
|
||||
minecraft = "1.21.1"
|
||||
|
||||
Reference in New Issue
Block a user