From bd0c405e26517acb7535fbb4b349461e4ee44dad Mon Sep 17 00:00:00 2001 From: Fulldroper <40297614+Fulldroper@users.noreply.github.com> Date: Sun, 11 Oct 2026 08:20:05 +0300 Subject: [PATCH] Plot borders: walls get real thickness and the CHECKERED face (faces of a flat box were not drawn) Co-Authored-By: Claude Opus 5.5 --- index.toml | 2 +- kubejs/client_scripts/createrp_plots.js | 3 ++- pack.toml | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/index.toml b/index.toml index 898baca..29c7df0 100644 --- a/index.toml +++ b/index.toml @@ -814,7 +814,7 @@ hash = "db4c4a8ab49265f6e8e456f495800ea148b133b18a3242aabca30b98ab7f784f" [[files]] file = "kubejs/client_scripts/createrp_plots.js" -hash = "9d7545f3d7ec5dba135363bdf05661aa898916b3cd23a4f185d7299415caaf9b" +hash = "8597716263518bdea8748e7f8b2bb54475207462f653a7a93a353b74a8aa8aa0" [[files]] file = "kubejs/client_scripts/createrp_ponder.js" diff --git a/kubejs/client_scripts/createrp_plots.js b/kubejs/client_scripts/createrp_plots.js index d4a7851..f526a41 100644 --- a/kubejs/client_scripts/createrp_plots.js +++ b/kubejs/client_scripts/createrp_plots.js @@ -11,6 +11,7 @@ const PLOT_COLOR = { mine: 0x4FC3F7, free: 0x66DD66, auction: 0xFFD54F, taken: 0 const SHOW_TICKS = 100 // 5 секунд після входу на ділянку const WALL_BOTTOM = -64 // стіна межі стоїть на всю висоту світу й не рухається разом із гравцем const WALL_TOP = 320 +const WALL_HALF = 1 / 16 // пів товщини стіни: у плоскої рамки Create не малює площину let rpPlots = [] // { id, kind, walls: [[x1, z1, x2, z2], …] } let rpByChunk = {} // "cx,cz" -> індекс у rpPlots @@ -82,7 +83,7 @@ function rpDraw () { var colour = PLOT_COLOR[plot.kind] || PLOT_COLOR.taken for (var w = 0; w < plot.walls.length; w++) { var wall = plot.walls[w] - outliner.showAABB('createrp_plot_' + plot.id + '_' + w, new RpAABB(wall[0], WALL_BOTTOM, wall[1], wall[2], WALL_TOP, wall[3])).colored(colour).lineWidth(1 / 16).withFaceTexture(RpTextures.THIN_CHECKERED).disableCull() + outliner.showAABB('createrp_plot_' + plot.id + '_' + w, new RpAABB(wall[0] - WALL_HALF, WALL_BOTTOM, wall[1] - WALL_HALF, wall[2] + WALL_HALF, WALL_TOP, wall[3] + WALL_HALF)).colored(colour).lineWidth(1 / 16).withFaceTexture(RpTextures.CHECKERED) } } } diff --git a/pack.toml b/pack.toml index 022c9b1..7d05b93 100644 --- a/pack.toml +++ b/pack.toml @@ -6,7 +6,7 @@ pack-format = "packwiz:1.1.0" [index] file = "index.toml" hash-format = "sha256" -hash = "ecd5e7dbaa2f81ecac5cfb80cf6ccd9d4fd6af38fe6735ed313a5662c8ecedf1" +hash = "1ca4ebfc0a5ebec60ff3f2895b207faa2bbb5a760a14b826f1e76645a1a3146b" [versions] minecraft = "1.21.1"