0.12.4: Essential removed; plot outline script no longer clashes with KubeJS's own AABB binding
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
2e55380f25
commit
98e61093df
@@ -1,6 +1,6 @@
|
|||||||
# Create RP — клієнт
|
# Create RP — клієнт
|
||||||
|
|
||||||
Клієнтська збірка для сервера **Create RP** (`create.fulldroper.ks.ua`): Minecraft **1.21.1**, NeoForge **21.1.228**, 115 модів.
|
Клієнтська збірка для сервера **Create RP** (`create.fulldroper.ks.ua`): Minecraft **1.21.1**, NeoForge **21.1.228**, 114 модів.
|
||||||
|
|
||||||
## Встановлення
|
## Встановлення
|
||||||
|
|
||||||
@@ -22,5 +22,5 @@ Modrinth App → «+» → «Import from file». Збірка сама підт
|
|||||||
|
|
||||||
- `mods/*.pw.toml` — посилання на Modrinth з sha512 (jar у репозиторії немає).
|
- `mods/*.pw.toml` — посилання на Modrinth з sha512 (jar у репозиторії немає).
|
||||||
- `config/` — конфіги модів.
|
- `config/` — конфіги модів.
|
||||||
- Клієнтські моди (Sodium, Iris, Distant Horizons, Essential та ін.) працюють лише у гравця;
|
- Клієнтські моди (Sodium, Iris, Distant Horizons та ін.) працюють лише у гравця;
|
||||||
обов'язкові на обох боках (Create, Aeronautics, Sable, Hex Casting …) мають збігатися з сервером.
|
обов'язкові на обох боках (Create, Aeronautics, Sable, Hex Casting …) мають збігатися з сервером.
|
||||||
|
|||||||
+1
-6
@@ -814,7 +814,7 @@ hash = "db4c4a8ab49265f6e8e456f495800ea148b133b18a3242aabca30b98ab7f784f"
|
|||||||
|
|
||||||
[[files]]
|
[[files]]
|
||||||
file = "kubejs/client_scripts/createrp_plots.js"
|
file = "kubejs/client_scripts/createrp_plots.js"
|
||||||
hash = "e745a48aff1c3c466ebc174a31d7fbef6ae723004277d5b8d3a761247d8f2508"
|
hash = "71277b8c947ed4c991c03a5051c5f18dd7c2535e1f09d151eb8b58a07f845404"
|
||||||
|
|
||||||
[[files]]
|
[[files]]
|
||||||
file = "kubejs/client_scripts/createrp_ponder.js"
|
file = "kubejs/client_scripts/createrp_ponder.js"
|
||||||
@@ -1074,11 +1074,6 @@ file = "mods/entityculling.pw.toml"
|
|||||||
hash = "590437e0f344c87791842b791a400e95ffd4154f02a04c2d8d78b43a76c659ad"
|
hash = "590437e0f344c87791842b791a400e95ffd4154f02a04c2d8d78b43a76c659ad"
|
||||||
metafile = true
|
metafile = true
|
||||||
|
|
||||||
[[files]]
|
|
||||||
file = "mods/essential.pw.toml"
|
|
||||||
hash = "f34d77ca00200f470b5aa7012437ae285a9ebaa2e22ab3d5067cbd87582d51ac"
|
|
||||||
metafile = true
|
|
||||||
|
|
||||||
[[files]]
|
[[files]]
|
||||||
file = "mods/exposure.pw.toml"
|
file = "mods/exposure.pw.toml"
|
||||||
hash = "1dc09ef29e50db6aba5c6fbfaf892983444a0d4ca25f856f1d2838e0c6546166"
|
hash = "1dc09ef29e50db6aba5c6fbfaf892983444a0d4ca25f856f1d2838e0c6546166"
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
// (лише вона). Дані приходять із сервера каналом createrp_plots; малює Outliner, яким Create малює виділення.
|
// (лише вона). Дані приходять із сервера каналом createrp_plots; малює Outliner, яким Create малює виділення.
|
||||||
// Rhino: без const/let усередині циклів і try — лише var.
|
// Rhino: без const/let усередині циклів і try — лише var.
|
||||||
|
|
||||||
const Outliner = Java.loadClass('net.createmod.catnip.outliner.Outliner')
|
const RpOutliner = Java.loadClass('net.createmod.catnip.outliner.Outliner')
|
||||||
const AABB = Java.loadClass('net.minecraft.world.phys.AABB')
|
const RpAABB = Java.loadClass('net.minecraft.world.phys.AABB')
|
||||||
|
|
||||||
const PLOT_COLOR = { mine: 0x4FC3F7, free: 0x66DD66, auction: 0xFFD54F, taken: 0xB0B0B0, frozen: 0xE05050, state: 0xFF9800 }
|
const PLOT_COLOR = { mine: 0x4FC3F7, free: 0x66DD66, auction: 0xFFD54F, taken: 0xB0B0B0, frozen: 0xE05050, state: 0xFF9800 }
|
||||||
const SHOW_TICKS = 100 // 5 секунд після входу на ділянку
|
const SHOW_TICKS = 100 // 5 секунд після входу на ділянку
|
||||||
@@ -75,14 +75,14 @@ function rpDraw () {
|
|||||||
var holding = String(player.mainHandItem.id) === 'kubejs:citizen_guide' || String(player.offHandItem.id) === 'kubejs:citizen_guide'
|
var holding = String(player.mainHandItem.id) === 'kubejs:citizen_guide' || String(player.offHandItem.id) === 'kubejs:citizen_guide'
|
||||||
if (!holding && rpTick >= rpShowUntil) return
|
if (!holding && rpTick >= rpShowUntil) return
|
||||||
var y1 = Math.floor(player.y) - WALL_BELOW; var y2 = y1 + WALL_HEIGHT
|
var y1 = Math.floor(player.y) - WALL_BELOW; var y2 = y1 + WALL_HEIGHT
|
||||||
var outliner = Outliner.getInstance()
|
var outliner = RpOutliner.getInstance()
|
||||||
for (var i = 0; i < rpPlots.length; i++) {
|
for (var i = 0; i < rpPlots.length; i++) {
|
||||||
var plot = rpPlots[i]
|
var plot = rpPlots[i]
|
||||||
if (!holding && plot.id !== rpHere) continue
|
if (!holding && plot.id !== rpHere) continue
|
||||||
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 AABB(wall[0], y1, wall[1], wall[2], y2, wall[3])).colored(colour).lineWidth(1 / 16)
|
outliner.showAABB('createrp_plot_' + plot.id + '_' + w, new RpAABB(wall[0], y1, wall[1], wall[2], y2, wall[3])).colored(colour).lineWidth(1 / 16)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,13 +0,0 @@
|
|||||||
name = "Essential Mod"
|
|
||||||
filename = "Essential_1-3-10-8_neoforge_1-21-1.jar"
|
|
||||||
side = "client"
|
|
||||||
|
|
||||||
[download]
|
|
||||||
url = "https://cdn.modrinth.com/data/k2ZPuTBm/versions/L1fxDroJ/Essential_1-3-10-8_neoforge_1-21-1.jar"
|
|
||||||
hash-format = "sha512"
|
|
||||||
hash = "a1ada47c3361e89b19ddbc7ef8def13fd0f3f946ece87299c8146f5b6cf930808c24b3387d9b1e483f4f0c2b0ae161b467fc01005c985fad3bcd5578c70df33a"
|
|
||||||
|
|
||||||
[update]
|
|
||||||
[update.modrinth]
|
|
||||||
mod-id = "k2ZPuTBm"
|
|
||||||
version = "L1fxDroJ"
|
|
||||||
@@ -1,12 +1,12 @@
|
|||||||
name = "Create RP"
|
name = "Create RP"
|
||||||
author = "Pinecraft-CreateRP"
|
author = "Pinecraft-CreateRP"
|
||||||
version = "0.12.3"
|
version = "0.12.4"
|
||||||
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 = "80b5f864026ca608540c3328cb52ab0b155344328589c03b376cf04326ebf45d"
|
hash = "68511d069113061d847426634977e0626d153ffff814682253cca36d8670ee6d"
|
||||||
|
|
||||||
[versions]
|
[versions]
|
||||||
minecraft = "1.21.1"
|
minecraft = "1.21.1"
|
||||||
|
|||||||
Reference in New Issue
Block a user