Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ac8683945d | ||
|
|
8a98e9a8d6 | ||
|
|
689c04bbd5 | ||
|
|
8dc71e8934 |
@@ -0,0 +1,63 @@
|
||||
#Whether scripting is enabled or not
|
||||
EnableScripting=true
|
||||
|
||||
#Arguments given to the Nashorn scripting library
|
||||
NashorArguments=-strict
|
||||
|
||||
#Disable Chat Bubbles
|
||||
EnableChatBubbles=true
|
||||
|
||||
#Navigation search range for NPCs. Not recommended to increase if you have a slow pc or on a server
|
||||
NpcNavRange=32
|
||||
|
||||
#Limit too how many npcs can be in one chunk for natural spawning
|
||||
NpcNaturalSpawningChunkLimit=4
|
||||
|
||||
#Set to true if you want the dialog command option to be able to use op commands like tp etc
|
||||
NpcUseOpCommands=false
|
||||
|
||||
#If set to true only opped people can use the /noppes command
|
||||
NoppesCommandOpOnly=false
|
||||
|
||||
InventoryGuiEnabled=true
|
||||
|
||||
SceneButtonsEnabled=true
|
||||
|
||||
#Enables CustomNpcs startup update message
|
||||
EnableUpdateChecker=false
|
||||
|
||||
#Default interact line. Leave empty to not have one
|
||||
DefaultInteractLine=Hello @p
|
||||
|
||||
#Number of chunk loading npcs that can be active at the same time
|
||||
ChuckLoaders=20
|
||||
|
||||
#Enables leaves decay
|
||||
LeavesDecayEnabled=true
|
||||
|
||||
#Enables Vine Growth
|
||||
VineGrowthEnabled=true
|
||||
|
||||
#Enables Ice Melting
|
||||
IceMeltsEnabled=true
|
||||
|
||||
#Normal players can use soulstone on animals
|
||||
SoulStoneAnimals=true
|
||||
|
||||
#Normal players can use soulstone on all npcs
|
||||
SoulStoneNPCs=false
|
||||
|
||||
#Type 0 = Normal, Type 1 = Solid
|
||||
HeadWearType=1
|
||||
|
||||
#When set to Minecraft it will use minecrafts font, when Default it will use OpenSans. Can only use fonts installed on your PC
|
||||
FontType=Default
|
||||
|
||||
#Font size for custom fonts (doesn't work with minecrafts font)
|
||||
FontSize=18
|
||||
|
||||
#On some servers or with certain plugins, it doesnt work, so you can disable it here
|
||||
EnableInvisibleNpcs=true
|
||||
|
||||
NpcSpeachTriggersChatEvent=false
|
||||
|
||||
@@ -206,7 +206,7 @@ _version = 4
|
||||
# If enabled, a chat message will be displayed if the garbage
|
||||
# collector Java is currently using is known
|
||||
# to cause frame stuttering and/or other issues.
|
||||
showGarbageCollectorWarning = true
|
||||
showGarbageCollectorWarning = false
|
||||
|
||||
[common.worldGenerator]
|
||||
#
|
||||
|
||||
+7
-3
@@ -172,13 +172,17 @@ hash = "059e6ce496843881834b3945373bbdf7e022c64f2e900f845603db3de16a9ea7"
|
||||
file = "config/curios-server.toml"
|
||||
hash = "3c34cf9f7918c6a9ec15b14a87aa4570a751c1688f8ac01cb2e9acfb9392a734"
|
||||
|
||||
[[files]]
|
||||
file = "config/CustomNpcs.cfg"
|
||||
hash = "2727c506472169739fc547b275d1dd484e8b11a20db01c6f08f973594aeae956"
|
||||
|
||||
[[files]]
|
||||
file = "config/cutthrough-client.toml"
|
||||
hash = "16bc1f998738810cae793b1dc272122dde8b246bffa408f227357803e16ba692"
|
||||
|
||||
[[files]]
|
||||
file = "config/DistantHorizons.toml"
|
||||
hash = "5595378793a6c500e675dfd74e03de88b7e5c36bae78f3fc78880a951af5458e"
|
||||
hash = "9bb187e00a7f21f06d2cca2451831dd3d62fe8aa02b5531cf7c6ed044e040d0c"
|
||||
|
||||
[[files]]
|
||||
file = "config/dynamic_fps.json"
|
||||
@@ -814,11 +818,11 @@ hash = "db4c4a8ab49265f6e8e456f495800ea148b133b18a3242aabca30b98ab7f784f"
|
||||
|
||||
[[files]]
|
||||
file = "kubejs/client_scripts/createrp_plots.js"
|
||||
hash = "8597716263518bdea8748e7f8b2bb54475207462f653a7a93a353b74a8aa8aa0"
|
||||
hash = "2a4686d252bd289fd99bde461bdfe3e2215cf35640f36e0610737730016ca2a0"
|
||||
|
||||
[[files]]
|
||||
file = "kubejs/client_scripts/createrp_ponder.js"
|
||||
hash = "92bd775a6ac69edbf04215f596d2abef1591ef7bc2cd4bd5cf5c9a6162015956"
|
||||
hash = "335b88e6d4ba4885ad5a8dd0e7d05a9d4a507523f3a5723afb4c31123b2f532c"
|
||||
|
||||
[[files]]
|
||||
file = "kubejs/client_scripts/createrp_survey.js"
|
||||
|
||||
@@ -7,7 +7,10 @@ const RpOutliner = Java.loadClass('net.createmod.catnip.outliner.Outliner')
|
||||
const RpAABB = Java.loadClass('net.minecraft.world.phys.AABB')
|
||||
const RpTextures = Java.loadClass('com.simibubi.create.AllSpecialTextures')
|
||||
|
||||
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: 0x9C27B0,
|
||||
reserved: 0xE53935, road: 0xFF9800, road_built: 0x2F6BFF, state_mine: 0x8D6E63, state: 0xE53935 }
|
||||
const SHOW_TICKS = 100 // 5 секунд після входу на ділянку
|
||||
const WALL_BOTTOM = -64 // стіна межі стоїть на всю висоту світу й не рухається разом із гравцем
|
||||
const WALL_TOP = 320
|
||||
@@ -15,6 +18,8 @@ const WALL_HALF = 1 / 16 // пів товщини стіни: у пло
|
||||
|
||||
let rpPlots = [] // { id, kind, walls: [[x1, z1, x2, z2], …] }
|
||||
let rpByChunk = {} // "cx,cz" -> індекс у rpPlots
|
||||
// державну землю при вході не підсвічуємо — її видно лише з довідником у руці
|
||||
const RP_QUIET = { reserved: true, road: true, road_built: true, state_mine: true, state: true }
|
||||
let rpHere = ''
|
||||
let rpShowUntil = 0
|
||||
let rpTick = 0
|
||||
@@ -61,7 +66,7 @@ NetworkEvents.dataReceived('createrp_plots', event => {
|
||||
cells.push([Number(xz[0]), Number(xz[1])])
|
||||
byChunk[Number(xz[0]) + ',' + Number(xz[1])] = plots.length
|
||||
}
|
||||
plots.push({ id: f[0], kind: f[1], walls: rpWalls(cells) })
|
||||
plots.push({ id: f[0], kind: f[1], cells: cells, walls: rpWalls(cells) })
|
||||
}
|
||||
rpPlots = plots; rpByChunk = byChunk
|
||||
})
|
||||
@@ -71,8 +76,13 @@ function rpDraw () {
|
||||
var player = Client.player
|
||||
if (!player) return
|
||||
rpTick++
|
||||
var idx = rpByChunk[Math.floor(player.x / 16) + ',' + Math.floor(player.z / 16)]
|
||||
var here = idx === undefined ? '' : rpPlots[idx].id
|
||||
var cx = Math.floor(player.x / 16); var cz = Math.floor(player.z / 16)
|
||||
var here = ''
|
||||
for (var n = 0; n < rpPlots.length && here === ''; n++) {
|
||||
var cells = rpPlots[n].cells
|
||||
if (RP_QUIET[rpPlots[n].kind]) continue
|
||||
for (var k = 0; k < cells.length; k++) if (cells[k][0] == cx && cells[k][1] == cz) { here = rpPlots[n].id; break }
|
||||
}
|
||||
if (here !== rpHere) { rpHere = here; if (here !== '') rpShowUntil = rpTick + SHOW_TICKS }
|
||||
var holding = String(player.mainHandItem.id) === 'kubejs:citizen_guide' || String(player.offHandItem.id) === 'kubejs:citizen_guide'
|
||||
if (!holding && rpTick >= rpShowUntil) return
|
||||
|
||||
@@ -266,7 +266,8 @@ function landScene(scene, util) {
|
||||
say(scene, 70, 'Бури Create теж копають лише з дозволом', [3.5, 2, 3.5])
|
||||
|
||||
say(scene, 70, 'Візьми довідник у руку — побачиш межі ділянок', [2.5, 2.5, 2.5], PonderPalette.BLUE, true)
|
||||
say(scene, 70, 'Блакитна рамка — твоя, сіра — чужа, помаранчева — державна', [2.5, 2.5, 2.5])
|
||||
say(scene, 70, 'Блакитна межа — твоя, сіра — чужа, червона — державна', [2.5, 2.5, 2.5])
|
||||
say(scene, 70, 'Дорога: помаранчева — ще будується, синя — готова', [2.5, 2.5, 2.5])
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
name = "Create RP"
|
||||
author = "Pinecraft-CreateRP"
|
||||
version = "0.13.0"
|
||||
version = "0.13.2"
|
||||
pack-format = "packwiz:1.1.0"
|
||||
|
||||
[index]
|
||||
file = "index.toml"
|
||||
hash-format = "sha256"
|
||||
hash = "e824a0654a6fc476ad57a5f93d80a91334000016697d1d25f1e41d980a495ab0"
|
||||
hash = "0a9751366e88c652fed13b052f32f8deab047fbac25ad828eaece6be6d3a6488"
|
||||
|
||||
[versions]
|
||||
minecraft = "1.21.1"
|
||||
|
||||
Reference in New Issue
Block a user