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 <noreply@anthropic.com>
This commit is contained in:
Fulldroper
2026-10-11 08:20:05 +03:00
co-authored by Claude Opus 5.5
parent 9102e0a1fb
commit bd0c405e26
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -814,7 +814,7 @@ hash = "db4c4a8ab49265f6e8e456f495800ea148b133b18a3242aabca30b98ab7f784f"
[[files]] [[files]]
file = "kubejs/client_scripts/createrp_plots.js" file = "kubejs/client_scripts/createrp_plots.js"
hash = "9d7545f3d7ec5dba135363bdf05661aa898916b3cd23a4f185d7299415caaf9b" hash = "8597716263518bdea8748e7f8b2bb54475207462f653a7a93a353b74a8aa8aa0"
[[files]] [[files]]
file = "kubejs/client_scripts/createrp_ponder.js" file = "kubejs/client_scripts/createrp_ponder.js"
+2 -1
View File
@@ -11,6 +11,7 @@ const PLOT_COLOR = { mine: 0x4FC3F7, free: 0x66DD66, auction: 0xFFD54F, taken: 0
const SHOW_TICKS = 100 // 5 секунд після входу на ділянку const SHOW_TICKS = 100 // 5 секунд після входу на ділянку
const WALL_BOTTOM = -64 // стіна межі стоїть на всю висоту світу й не рухається разом із гравцем const WALL_BOTTOM = -64 // стіна межі стоїть на всю висоту світу й не рухається разом із гравцем
const WALL_TOP = 320 const WALL_TOP = 320
const WALL_HALF = 1 / 16 // пів товщини стіни: у плоскої рамки Create не малює площину
let rpPlots = [] // { id, kind, walls: [[x1, z1, x2, z2], …] } let rpPlots = [] // { id, kind, walls: [[x1, z1, x2, z2], …] }
let rpByChunk = {} // "cx,cz" -> індекс у rpPlots let rpByChunk = {} // "cx,cz" -> індекс у rpPlots
@@ -82,7 +83,7 @@ function rpDraw () {
var colour = PLOT_COLOR[plot.kind] || PLOT_COLOR.taken var colour = PLOT_COLOR[plot.kind] || PLOT_COLOR.taken
for (var w = 0; w < plot.walls.length; w++) { for (var w = 0; w < plot.walls.length; w++) {
var wall = plot.walls[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)
} }
} }
} }
+1 -1
View File
@@ -6,7 +6,7 @@ pack-format = "packwiz:1.1.0"
[index] [index]
file = "index.toml" file = "index.toml"
hash-format = "sha256" hash-format = "sha256"
hash = "ecd5e7dbaa2f81ecac5cfb80cf6ccd9d4fd6af38fe6735ed313a5662c8ecedf1" hash = "1ca4ebfc0a5ebec60ff3f2895b207faa2bbb5a760a14b826f1e76645a1a3146b"
[versions] [versions]
minecraft = "1.21.1" minecraft = "1.21.1"