Merge pull request 'Coordinate flat sand across all world packs and show Shift close hint' (#541) from dev/MC:release/arrakis-flat-sand-20261123 into main
This commit is contained in:
commit
877a045bad
28 changed files with 575 additions and 33 deletions
|
|
@ -1,6 +1,6 @@
|
|||
plugins { java }
|
||||
group = "com.dunerealms"
|
||||
version = "1.1.26"
|
||||
version = "1.1.27"
|
||||
repositories { mavenCentral(); maven("https://repo.papermc.io/repository/maven-public/"); maven("https://repo.opencollab.dev/main/") }
|
||||
dependencies {
|
||||
compileOnly("io.papermc.paper:paper-api:1.21.8-R0.1-SNAPSHOT")
|
||||
|
|
|
|||
|
|
@ -1,13 +1,14 @@
|
|||
{
|
||||
"version": 1,
|
||||
"url": "https://www.dunerealms.com/downloads/DuneRealms-Network-Artwork-v1.zip",
|
||||
"sha1": "f1bc7d4851f1b361f14f96d260d5a91f769aa966",
|
||||
"sha256": "56071a96d6ea9b117ea5cf2c8a76c5dd4c1f471bf840992345f5d1b234cb5b44",
|
||||
"version": 2,
|
||||
"url": "https://www.dunerealms.com/downloads/DuneRealms-Network-Artwork-v2.zip",
|
||||
"sha1": "c87a26957d9a23f73a88a5ff727ca4a28a8e8c06",
|
||||
"sha256": "fb837e7ee3a5afdda60fd8c73d817255c286adef0886f85312ba1ce1fb58a711",
|
||||
"delivery": "Lobby only; native MCGUI renderer remains a separate lobby layer",
|
||||
"sources": [
|
||||
"DuneRealms-GUI-Houses-1.21.8-v8.zip",
|
||||
"DuneRealms-Ecology-Items-v2.zip",
|
||||
"DuneRealms-Arrakis-Creatures-v3.zip"
|
||||
"DuneRealms-Arrakis-Creatures-v3.zip",
|
||||
"DuneRealms-Materials-guild-v2.zip (sand textures and credits only)"
|
||||
],
|
||||
"builder": "tools/build-network-artwork-pack.py",
|
||||
"creatureCarriers": {
|
||||
|
|
|
|||
4
DuneRealmsGUI/planet-artwork/.gitattributes
vendored
4
DuneRealmsGUI/planet-artwork/.gitattributes
vendored
|
|
@ -4,3 +4,7 @@ release-v1/*.zip -text
|
|||
release-v1/*.json text eol=lf
|
||||
release-v1/*.yml text eol=lf
|
||||
profiles.json text eol=lf
|
||||
release-v2/*.zip -text
|
||||
release-v2/*.json text eol=lf
|
||||
release-v2/*.yml text eol=lf
|
||||
flat-sand/*.png -text
|
||||
|
|
|
|||
|
|
@ -84,3 +84,9 @@ still causes a client resource reload; it is not a zero-cost palette switch.
|
|||
Java packs are skipped for Floodgate players. A Bedrock/Geyser conversion is
|
||||
not included or claimed. Live client rendering and proxy-transfer verification
|
||||
must follow activation; local compilation is not that verification.
|
||||
|
||||
## Revision 2
|
||||
|
||||
All active material layers share low-contrast flat sand based on the credited Luanti tile. Spice and red sand retain its exact grain at 93% brightness. Flat normal maps and rough specular maps suppress relief from lower-priority shader packs. Kaitain uses warm gold, Giedi Prime polluted grey-brown, Caladan soft sand; the other planets retain matching regional palettes.
|
||||
|
||||
Two separate dimension profiles are included: `giedi_prime_nether` uses soot-dark industrial masonry; `sigma_draconis_iv_the_end` uses pale cold stone and existing violet End materials. Only exact configured dimension aliases select them. No terrain, block IDs, drops or dimension generation are changed.
|
||||
|
|
|
|||
4
DuneRealmsGUI/planet-artwork/flat-sand/CREDITS.txt
Normal file
4
DuneRealmsGUI/planet-artwork/flat-sand/CREDITS.txt
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
Flat sand source: Minetest Game / Luanti default_sand.png, contributors listed in LICENSE-Sand-Luanti.txt.
|
||||
https://github.com/luanti-org/minetest_game/tree/9e895af6e9feb98332fa1a778001442f5669bc20/mods/default
|
||||
License: CC BY-SA 3.0. https://creativecommons.org/licenses/by-sa/3.0/
|
||||
DuneRealms modifications: low-contrast planet-specific palette, seven-percent darker spice sand, constant flat normal and rough specular maps. Tile layout and grain preserved.
|
||||
158
DuneRealmsGUI/planet-artwork/flat-sand/LICENSE.txt
Normal file
158
DuneRealmsGUI/planet-artwork/flat-sand/LICENSE.txt
Normal file
|
|
@ -0,0 +1,158 @@
|
|||
License of source code
|
||||
----------------------
|
||||
|
||||
GNU Lesser General Public License, version 2.1
|
||||
Copyright (C) 2011-2018 celeron55, Perttu Ahola <celeron55@gmail.com>
|
||||
Copyright (C) 2011-2018 Various Minetest Game developers and contributors
|
||||
|
||||
This program is free software; you can redistribute it and/or modify it under the terms
|
||||
of the GNU Lesser General Public License as published by the Free Software Foundation;
|
||||
either version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
||||
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
See the GNU Lesser General Public License for more details:
|
||||
https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
|
||||
|
||||
|
||||
Licenses of media (textures, models and sounds)
|
||||
-----------------------------------------------
|
||||
|
||||
Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
|
||||
Copyright (C) 2010-2023:
|
||||
|
||||
celeron55, Perttu Ahola <celeron55@gmail.com>
|
||||
Cisoun
|
||||
G4JC
|
||||
VanessaE
|
||||
RealBadAngel
|
||||
Calinou
|
||||
MirceaKitsune
|
||||
Jordach
|
||||
PilzAdam
|
||||
jojoa1997
|
||||
InfinityProject
|
||||
Splizard
|
||||
Zeg9
|
||||
paramat
|
||||
BlockMen
|
||||
sofar
|
||||
Neuromancer
|
||||
Gambit
|
||||
asl97
|
||||
KevDoy
|
||||
Mito551
|
||||
GreenXenith
|
||||
kaeza
|
||||
kilbith
|
||||
tobyplowy
|
||||
CloudyProton
|
||||
TumeniNodes
|
||||
Mossmanikin
|
||||
random-geek
|
||||
Extex101
|
||||
An0n3m0us
|
||||
Lopano
|
||||
|
||||
You are free to:
|
||||
Share — copy and redistribute the material in any medium or format.
|
||||
Adapt — remix, transform, and build upon the material for any purpose, even commercially.
|
||||
The licensor cannot revoke these freedoms as long as you follow the license terms.
|
||||
|
||||
Under the following terms:
|
||||
|
||||
Attribution — You must give appropriate credit, provide a link to the license, and
|
||||
indicate if changes were made. You may do so in any reasonable manner, but not in any way
|
||||
that suggests the licensor endorses you or your use.
|
||||
|
||||
ShareAlike — If you remix, transform, or build upon the material, you must distribute
|
||||
your contributions under the same license as the original.
|
||||
|
||||
No additional restrictions — You may not apply legal terms or technological measures that
|
||||
legally restrict others from doing anything the license permits.
|
||||
|
||||
Notices:
|
||||
|
||||
You do not have to comply with the license for elements of the material in the public
|
||||
domain or where your use is permitted by an applicable exception or limitation.
|
||||
No warranties are given. The license may not give you all of the permissions necessary
|
||||
for your intended use. For example, other rights such as publicity, privacy, or moral
|
||||
rights may limit how you use the material.
|
||||
|
||||
For more details:
|
||||
http://creativecommons.org/licenses/by-sa/3.0/
|
||||
|
||||
-----------------------
|
||||
|
||||
Attribution 3.0 Unported (CC BY 3.0)
|
||||
|
||||
Copyright (C) 2009 cmusounddesign
|
||||
Copyright (C) 2010 Tomlija
|
||||
Copyright (C) 2010 lsprice
|
||||
Copyright (C) 2014 sonictechtonic
|
||||
Copyright (C) 2015 yadronoff
|
||||
Copyright (C) 2007 HerbertBoland
|
||||
Copyright (C) 2006 AGFX
|
||||
|
||||
You are free to:
|
||||
Share — copy and redistribute the material in any medium or format.
|
||||
Adapt — remix, transform, and build upon the material for any purpose, even commercially.
|
||||
The licensor cannot revoke these freedoms as long as you follow the license terms.
|
||||
|
||||
Under the following terms:
|
||||
|
||||
Attribution — You must give appropriate credit, provide a link to the license, and
|
||||
indicate if changes were made. You may do so in any reasonable manner, but not in any way
|
||||
that suggests the licensor endorses you or your use.
|
||||
|
||||
No additional restrictions — You may not apply legal terms or technological measures that
|
||||
legally restrict others from doing anything the license permits.
|
||||
|
||||
Notices:
|
||||
|
||||
You do not have to comply with the license for elements of the material in the public
|
||||
domain or where your use is permitted by an applicable exception or limitation.
|
||||
No warranties are given. The license may not give you all of the permissions necessary
|
||||
for your intended use. For example, other rights such as publicity, privacy, or moral
|
||||
rights may limit how you use the material.
|
||||
|
||||
For more details:
|
||||
http://creativecommons.org/licenses/by/3.0/
|
||||
|
||||
-----------------------
|
||||
|
||||
CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
|
||||
|
||||
Iwan Gabovitch
|
||||
Ottomaani138
|
||||
Ogrebane
|
||||
blukotek
|
||||
Sevin7
|
||||
Yoyodaman234
|
||||
Ryding
|
||||
|
||||
No Copyright
|
||||
|
||||
The person who associated a work with this deed has dedicated the work to the
|
||||
public domain by waiving all of his or her rights to the work worldwide under
|
||||
copyright law, including all related and neighboring rights, to the extent
|
||||
allowed by law.
|
||||
|
||||
You can copy, modify, distribute and perform the work, even for commercial
|
||||
purposes, all without asking permission. See Other Information below.
|
||||
|
||||
Other Information:
|
||||
|
||||
In no way are the patent or trademark rights of any person affected by CC0, nor
|
||||
are the rights that other persons may have in the work or in how the work is
|
||||
used, such as publicity or privacy rights.
|
||||
|
||||
Unless expressly stated otherwise, the person who associated a work with this
|
||||
deed makes no warranties about the work, and disclaims liability for all uses
|
||||
of the work, to the fullest extent permitted by applicable law.
|
||||
|
||||
When using or citing the work, you should not imply endorsement by the author
|
||||
or the affirmer.
|
||||
|
||||
For more details:
|
||||
https://creativecommons.org/publicdomain/zero/1.0/
|
||||
BIN
DuneRealmsGUI/planet-artwork/flat-sand/default_sand.png
Normal file
BIN
DuneRealmsGUI/planet-artwork/flat-sand/default_sand.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 253 B |
|
|
@ -1,8 +1,139 @@
|
|||
{
|
||||
"guild": {"name":"Vaerkring", "feel":"Neutral, handcrafted materials at the Spacing Guild port", "aliases":["guild_lobby"], "blocks":{}},
|
||||
"arrakis": {"name":"Arrakduin", "feel":"Warm desert rock, eroded masonry and dry timber", "aliases":["arrakis","arrakduin"], "blocks":{"stone":"granite","andesite":"granite","cobblestone":"sandstone","stone_bricks":"cut_sandstone","mossy_stone_bricks":"sandstone","mossy_cobblestone":"sandstone","dirt":"coarse_dirt","oak_planks":"acacia_planks","deepslate":"basalt_side","cobbled_deepslate":"blackstone"}},
|
||||
"caladan": {"name":"Kaladam", "feel":"Wet coastal rock, jungle earth and mossy ruins", "aliases":["caladan","kaladam"], "blocks":{"stone":"andesite","cobblestone":"mossy_cobblestone","stone_bricks":"mossy_stone_bricks","dirt":"coarse_dirt","oak_planks":"spruce_planks","deepslate":"blackstone","cobbled_deepslate":"mossy_cobblestone"}},
|
||||
"giedi_prime": {"name":"Giedermark", "feel":"Soot-dark industrial masonry, basalt and heavy timber", "aliases":["giedi_prime","giedermark"], "blocks":{"stone":"blackstone","andesite":"basalt_side","diorite":"basalt_top","granite":"polished_blackstone_bricks","cobblestone":"blackstone","stone_bricks":"polished_blackstone_bricks","mossy_stone_bricks":"cracked_polished_blackstone_bricks","mossy_cobblestone":"blackstone","dirt":"coarse_dirt","oak_planks":"dark_oak_planks","deepslate":"basalt_side","cobbled_deepslate":"blackstone","polished_deepslate":"polished_blackstone"}},
|
||||
"kaitain": {"name":"Kaiterhof", "feel":"Pale imperial stone, orderly masonry and light court timber", "aliases":["kaitain","kaiterhof"], "blocks":{"stone":"polished_diorite","andesite":"polished_andesite","cobblestone":"stone_bricks","stone_bricks":"quartz_block_side","mossy_stone_bricks":"quartz_block_side","mossy_cobblestone":"stone_bricks","oak_planks":"birch_planks","deepslate":"polished_andesite","cobbled_deepslate":"stone_bricks"}},
|
||||
"sigma_draconis_iv": {"name":"Sigmadraken IV", "feel":"Cold grey rock, snow, ice and dark northern timber", "aliases":["sigma_draconis_iv","sigmadraken_iv","sigmadraken iv"], "blocks":{"stone":"stone","andesite":"diorite","cobblestone":"andesite","stone_bricks":"polished_andesite","dirt":"gravel","oak_planks":"spruce_planks","deepslate":"basalt_side","cobbled_deepslate":"blackstone","polished_deepslate":"basalt_top"}}
|
||||
"guild": {
|
||||
"name": "Vaerkring",
|
||||
"feel": "Neutral, handcrafted materials at the Spacing Guild port",
|
||||
"aliases": [
|
||||
"guild_lobby"
|
||||
],
|
||||
"blocks": {}
|
||||
},
|
||||
"arrakis": {
|
||||
"name": "Arrakduin",
|
||||
"feel": "Warm desert rock, eroded masonry and dry timber",
|
||||
"aliases": [
|
||||
"arrakis",
|
||||
"arrakduin"
|
||||
],
|
||||
"blocks": {
|
||||
"stone": "granite",
|
||||
"andesite": "granite",
|
||||
"cobblestone": "sandstone",
|
||||
"stone_bricks": "cut_sandstone",
|
||||
"mossy_stone_bricks": "sandstone",
|
||||
"mossy_cobblestone": "sandstone",
|
||||
"dirt": "coarse_dirt",
|
||||
"oak_planks": "acacia_planks",
|
||||
"deepslate": "basalt_side",
|
||||
"cobbled_deepslate": "blackstone"
|
||||
}
|
||||
},
|
||||
"caladan": {
|
||||
"name": "Kaladam",
|
||||
"feel": "Wet coastal rock, jungle earth and mossy ruins",
|
||||
"aliases": [
|
||||
"caladan",
|
||||
"kaladam"
|
||||
],
|
||||
"blocks": {
|
||||
"stone": "andesite",
|
||||
"cobblestone": "mossy_cobblestone",
|
||||
"stone_bricks": "mossy_stone_bricks",
|
||||
"dirt": "coarse_dirt",
|
||||
"oak_planks": "spruce_planks",
|
||||
"deepslate": "blackstone",
|
||||
"cobbled_deepslate": "mossy_cobblestone"
|
||||
}
|
||||
},
|
||||
"giedi_prime": {
|
||||
"name": "Giedermark",
|
||||
"feel": "Soot-dark industrial masonry, basalt and heavy timber",
|
||||
"aliases": [
|
||||
"giedi_prime",
|
||||
"giedermark"
|
||||
],
|
||||
"blocks": {
|
||||
"stone": "blackstone",
|
||||
"andesite": "basalt_side",
|
||||
"diorite": "basalt_top",
|
||||
"granite": "polished_blackstone_bricks",
|
||||
"cobblestone": "blackstone",
|
||||
"stone_bricks": "polished_blackstone_bricks",
|
||||
"mossy_stone_bricks": "cracked_polished_blackstone_bricks",
|
||||
"mossy_cobblestone": "blackstone",
|
||||
"dirt": "coarse_dirt",
|
||||
"oak_planks": "dark_oak_planks",
|
||||
"deepslate": "basalt_side",
|
||||
"cobbled_deepslate": "blackstone",
|
||||
"polished_deepslate": "polished_blackstone"
|
||||
}
|
||||
},
|
||||
"kaitain": {
|
||||
"name": "Kaiterhof",
|
||||
"feel": "Pale imperial stone, orderly masonry and light court timber",
|
||||
"aliases": [
|
||||
"kaitain",
|
||||
"kaiterhof"
|
||||
],
|
||||
"blocks": {
|
||||
"stone": "polished_diorite",
|
||||
"andesite": "polished_andesite",
|
||||
"cobblestone": "stone_bricks",
|
||||
"stone_bricks": "quartz_block_side",
|
||||
"mossy_stone_bricks": "quartz_block_side",
|
||||
"mossy_cobblestone": "stone_bricks",
|
||||
"oak_planks": "birch_planks",
|
||||
"deepslate": "polished_andesite",
|
||||
"cobbled_deepslate": "stone_bricks"
|
||||
}
|
||||
},
|
||||
"sigma_draconis_iv": {
|
||||
"name": "Sigmadraken IV",
|
||||
"feel": "Cold grey rock, snow, ice and dark northern timber",
|
||||
"aliases": [
|
||||
"sigma_draconis_iv",
|
||||
"sigmadraken_iv",
|
||||
"sigmadraken iv"
|
||||
],
|
||||
"blocks": {
|
||||
"stone": "stone",
|
||||
"andesite": "diorite",
|
||||
"cobblestone": "andesite",
|
||||
"stone_bricks": "polished_andesite",
|
||||
"dirt": "gravel",
|
||||
"oak_planks": "spruce_planks",
|
||||
"deepslate": "basalt_side",
|
||||
"cobbled_deepslate": "blackstone",
|
||||
"polished_deepslate": "basalt_top"
|
||||
}
|
||||
},
|
||||
"giedi_prime_nether": {
|
||||
"name": "Giedermark Nether",
|
||||
"feel": "Industrial darkness, soot-black stone and ominous molten foundries",
|
||||
"aliases": [
|
||||
"giedi_prime_nether",
|
||||
"giedermark_nether"
|
||||
],
|
||||
"blocks": {
|
||||
"netherrack": "blackstone",
|
||||
"nether_bricks": "polished_blackstone_bricks",
|
||||
"red_nether_bricks": "cracked_polished_blackstone_bricks",
|
||||
"nether_gold_ore": "gilded_blackstone",
|
||||
"basalt_top": "blackstone_top",
|
||||
"smooth_basalt": "blackstone",
|
||||
"soul_soil": "coarse_dirt"
|
||||
}
|
||||
},
|
||||
"sigma_draconis_iv_the_end": {
|
||||
"name": "Sigmadraken IV End",
|
||||
"feel": "Cold alien stone, pale End islands and muted violet ruins",
|
||||
"aliases": [
|
||||
"sigma_draconis_iv_the_end",
|
||||
"sigmadraken_iv_the_end",
|
||||
"sigmadraken_iv_end"
|
||||
],
|
||||
"blocks": {
|
||||
"end_stone": "diorite",
|
||||
"end_stone_bricks": "polished_diorite"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
113
DuneRealmsGUI/planet-artwork/release-v2/manifest.json
Normal file
113
DuneRealmsGUI/planet-artwork/release-v2/manifest.json
Normal file
|
|
@ -0,0 +1,113 @@
|
|||
{
|
||||
"version": 2,
|
||||
"sourceCommit": "28e38cab7c1f03f86364ef704f705bebcc13cb3d",
|
||||
"license": "CC-BY-SA-4.0",
|
||||
"packId": "59f34b30-6a86-5e58-a813-6e776f726c64",
|
||||
"packs": {
|
||||
"guild": {
|
||||
"name": "Vaerkring",
|
||||
"filename": "DuneRealms-Materials-guild-v2.zip",
|
||||
"url": "https://www.dunerealms.com/downloads/DuneRealms-Materials-guild-v2.zip",
|
||||
"sha1": "c26c95ae25146fca3e3aec11a703919a001de607",
|
||||
"sha256": "21df08fed7f13dcf6bee488f2103cbee44da157a3fa581e2d76a47edb090348f",
|
||||
"bytes": 739556,
|
||||
"entries": 1445,
|
||||
"aliases": [
|
||||
"guild_lobby"
|
||||
]
|
||||
},
|
||||
"arrakis": {
|
||||
"name": "Arrakduin",
|
||||
"filename": "DuneRealms-Materials-arrakis-v2.zip",
|
||||
"url": "https://www.dunerealms.com/downloads/DuneRealms-Materials-arrakis-v2.zip",
|
||||
"sha1": "b00859f576801967c0c6478fd4fb562820772f49",
|
||||
"sha256": "350014780c1c0b83e0713cc308e5227a43345169a7c1128a235dc1065583672d",
|
||||
"bytes": 740437,
|
||||
"entries": 1447,
|
||||
"aliases": [
|
||||
"arrakis",
|
||||
"arrakduin"
|
||||
]
|
||||
},
|
||||
"caladan": {
|
||||
"name": "Kaladam",
|
||||
"filename": "DuneRealms-Materials-caladan-v2.zip",
|
||||
"url": "https://www.dunerealms.com/downloads/DuneRealms-Materials-caladan-v2.zip",
|
||||
"sha1": "3f5b1674dfeb5761a9253ae411463a3e7a2e6b32",
|
||||
"sha256": "729102252e911d2b8a242e083b128e4d1fe0d5d5a8333e2fe3be3de16794242a",
|
||||
"bytes": 740635,
|
||||
"entries": 1447,
|
||||
"aliases": [
|
||||
"caladan",
|
||||
"kaladam"
|
||||
]
|
||||
},
|
||||
"giedi_prime": {
|
||||
"name": "Giedermark",
|
||||
"filename": "DuneRealms-Materials-giedi_prime-v2.zip",
|
||||
"url": "https://www.dunerealms.com/downloads/DuneRealms-Materials-giedi_prime-v2.zip",
|
||||
"sha1": "f7c734ee98086e5b96cd566599640c6514377f81",
|
||||
"sha256": "4b7a1dae736dbd924bb2e7b3009b8e07bff6b73a136d5aafb410529eae71cd74",
|
||||
"bytes": 740528,
|
||||
"entries": 1448,
|
||||
"aliases": [
|
||||
"giedi_prime",
|
||||
"giedermark"
|
||||
]
|
||||
},
|
||||
"kaitain": {
|
||||
"name": "Kaiterhof",
|
||||
"filename": "DuneRealms-Materials-kaitain-v2.zip",
|
||||
"url": "https://www.dunerealms.com/downloads/DuneRealms-Materials-kaitain-v2.zip",
|
||||
"sha1": "b06c9dc895c99aae2ccaaddfac0ffcba4ba6a534",
|
||||
"sha256": "d9a8c34cb3750593d4273160e69ef83649c62a42abc182370cbed22d4b535866",
|
||||
"bytes": 740513,
|
||||
"entries": 1447,
|
||||
"aliases": [
|
||||
"kaitain",
|
||||
"kaiterhof"
|
||||
]
|
||||
},
|
||||
"sigma_draconis_iv": {
|
||||
"name": "Sigmadraken IV",
|
||||
"filename": "DuneRealms-Materials-sigma_draconis_iv-v2.zip",
|
||||
"url": "https://www.dunerealms.com/downloads/DuneRealms-Materials-sigma_draconis_iv-v2.zip",
|
||||
"sha1": "ede1901098d763738d713e5a71508c9b53680989",
|
||||
"sha256": "b32ac3cf3fc668c065067df7a2d8d23785efe1a20c55d96cd4f8acae20c013ae",
|
||||
"bytes": 740935,
|
||||
"entries": 1448,
|
||||
"aliases": [
|
||||
"sigma_draconis_iv",
|
||||
"sigmadraken_iv",
|
||||
"sigmadraken iv"
|
||||
]
|
||||
},
|
||||
"giedi_prime_nether": {
|
||||
"name": "Giedermark Nether",
|
||||
"filename": "DuneRealms-Materials-giedi_prime_nether-v2.zip",
|
||||
"url": "https://www.dunerealms.com/downloads/DuneRealms-Materials-giedi_prime_nether-v2.zip",
|
||||
"sha1": "67b0119916a21130dd8000df62a2e8d718888bac",
|
||||
"sha256": "1336a0bddebee93a34c2c01298b7c4663ed4d8cd4933feaf3192a8e4ab4469d1",
|
||||
"bytes": 739943,
|
||||
"entries": 1446,
|
||||
"aliases": [
|
||||
"giedi_prime_nether",
|
||||
"giedermark_nether"
|
||||
]
|
||||
},
|
||||
"sigma_draconis_iv_the_end": {
|
||||
"name": "Sigmadraken IV End",
|
||||
"filename": "DuneRealms-Materials-sigma_draconis_iv_the_end-v2.zip",
|
||||
"url": "https://www.dunerealms.com/downloads/DuneRealms-Materials-sigma_draconis_iv_the_end-v2.zip",
|
||||
"sha1": "26fcb853b3f71a1c126cd0ed6c19a00a7bea5cb1",
|
||||
"sha256": "8ab33f9dd5fcdddcf45807ae0da66f762466bf0927b85765f7543760456b6022",
|
||||
"bytes": 739567,
|
||||
"entries": 1445,
|
||||
"aliases": [
|
||||
"sigma_draconis_iv_the_end",
|
||||
"sigmadraken_iv_the_end",
|
||||
"sigmadraken_iv_end"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
48
DuneRealmsGUI/planet-artwork/release-v2/planet-textures.yml
Normal file
48
DuneRealmsGUI/planet-artwork/release-v2/planet-textures.yml
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
# Enable after publishing every pinned ZIP from planet-artwork/release-v1/.
|
||||
# Java material layer only. Geyser/Bedrock requires its own converted pack.
|
||||
enabled: false
|
||||
|
||||
# Optional exact world-name mappings, e.g. world: arrakis
|
||||
worlds: {}
|
||||
|
||||
packs:
|
||||
guild:
|
||||
name: "Vaerkring"
|
||||
url: https://www.dunerealms.com/downloads/DuneRealms-Materials-guild-v2.zip
|
||||
sha1: c26c95ae25146fca3e3aec11a703919a001de607
|
||||
worlds: ["guild_lobby"]
|
||||
arrakis:
|
||||
name: "Arrakduin"
|
||||
url: https://www.dunerealms.com/downloads/DuneRealms-Materials-arrakis-v2.zip
|
||||
sha1: b00859f576801967c0c6478fd4fb562820772f49
|
||||
worlds: ["arrakis","arrakduin"]
|
||||
caladan:
|
||||
name: "Kaladam"
|
||||
url: https://www.dunerealms.com/downloads/DuneRealms-Materials-caladan-v2.zip
|
||||
sha1: 3f5b1674dfeb5761a9253ae411463a3e7a2e6b32
|
||||
worlds: ["caladan","kaladam"]
|
||||
giedi_prime:
|
||||
name: "Giedermark"
|
||||
url: https://www.dunerealms.com/downloads/DuneRealms-Materials-giedi_prime-v2.zip
|
||||
sha1: f7c734ee98086e5b96cd566599640c6514377f81
|
||||
worlds: ["giedi_prime","giedermark"]
|
||||
kaitain:
|
||||
name: "Kaiterhof"
|
||||
url: https://www.dunerealms.com/downloads/DuneRealms-Materials-kaitain-v2.zip
|
||||
sha1: b06c9dc895c99aae2ccaaddfac0ffcba4ba6a534
|
||||
worlds: ["kaitain","kaiterhof"]
|
||||
sigma_draconis_iv:
|
||||
name: "Sigmadraken IV"
|
||||
url: https://www.dunerealms.com/downloads/DuneRealms-Materials-sigma_draconis_iv-v2.zip
|
||||
sha1: ede1901098d763738d713e5a71508c9b53680989
|
||||
worlds: ["sigma_draconis_iv","sigmadraken_iv","sigmadraken iv"]
|
||||
giedi_prime_nether:
|
||||
name: "Giedermark Nether"
|
||||
url: https://www.dunerealms.com/downloads/DuneRealms-Materials-giedi_prime_nether-v2.zip
|
||||
sha1: 67b0119916a21130dd8000df62a2e8d718888bac
|
||||
worlds: ["giedi_prime_nether","giedermark_nether"]
|
||||
sigma_draconis_iv_the_end:
|
||||
name: "Sigmadraken IV End"
|
||||
url: https://www.dunerealms.com/downloads/DuneRealms-Materials-sigma_draconis_iv_the_end-v2.zip
|
||||
sha1: 26fcb853b3f71a1c126cd0ed6c19a00a7bea5cb1
|
||||
worlds: ["sigma_draconis_iv_the_end","sigmadraken_iv_the_end","sigmadraken_iv_end"]
|
||||
|
|
@ -43,7 +43,7 @@ public final class DuneGUI extends JavaPlugin implements Listener,CommandExecuto
|
|||
private final Set<UUID> boarding=new HashSet<>();
|
||||
private final Set<UUID> guiPackLoaded=new HashSet<>();
|
||||
private record Pack(UUID id,String url,String hash){}
|
||||
private static final Pack DEFAULT_PACK=new Pack(UUID.fromString("a7b5ab7d-d8d8-5b51-b016-71a5f4c00008"),"https://www.dunerealms.com/downloads/DuneRealms-Network-Artwork-v1.zip","f1bc7d4851f1b361f14f96d260d5a91f769aa966");
|
||||
private static final Pack DEFAULT_PACK=new Pack(UUID.fromString("a7b5ab7d-d8d8-5b51-b016-71a5f4c00008"),"https://www.dunerealms.com/downloads/DuneRealms-Network-Artwork-v2.zip","c87a26957d9a23f73a88a5ff727ca4a28a8e8c06");
|
||||
private Pack guiPack(){
|
||||
var file=new java.io.File(getDataFolder(),"gui-pack.yml");if(!file.isFile())return DEFAULT_PACK;
|
||||
var data=org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(file);
|
||||
|
|
@ -253,7 +253,7 @@ public final class DuneGUI extends JavaPlugin implements Listener,CommandExecuto
|
|||
}
|
||||
@EventHandler public void drag(InventoryDragEvent e){if(e.getView().getTopInventory().getHolder() instanceof Screen)e.setCancelled(true);}
|
||||
@EventHandler public void close(InventoryCloseEvent e){if(e.getInventory().getHolder() instanceof Screen s)s.gate.expire();}
|
||||
@EventHandler public void quit(PlayerQuitEvent e){guiPackLoaded.remove(e.getPlayer().getUniqueId());bookings.cancel(e.getPlayer().getUniqueId());boarding.remove(e.getPlayer().getUniqueId());requests.remove(e.getPlayer().getUniqueId());records.remove(e.getPlayer().getUniqueId());sidebar.hide(e.getPlayer());departure.removePlayer(e.getPlayer());}
|
||||
@EventHandler public void quit(PlayerQuitEvent e){MCGUIMenus.forget(e.getPlayer().getUniqueId());guiPackLoaded.remove(e.getPlayer().getUniqueId());bookings.cancel(e.getPlayer().getUniqueId());boarding.remove(e.getPlayer().getUniqueId());requests.remove(e.getPlayer().getUniqueId());records.remove(e.getPlayer().getUniqueId());sidebar.hide(e.getPlayer());departure.removePlayer(e.getPlayer());}
|
||||
private void ensureRegistrar(){World world=Bukkit.getWorld("guild_lobby");if(world==null)return;Location at=world.getSpawnLocation().clone().add(2,0,0);at.getChunk().load();
|
||||
for(Entity entity:world.getEntities())if(entity.getPersistentDataContainer().has(registrar,PersistentDataType.BYTE))return;
|
||||
Villager npc=world.spawn(at,Villager.class);npc.setAI(false);npc.setInvulnerable(true);npc.setPersistent(true);npc.setSilent(true);npc.setCollidable(false);npc.setProfession(Villager.Profession.LIBRARIAN);npc.customName(Component.text("House Registrar · Choose your House",NamedTextColor.GOLD));npc.setCustomNameVisible(true);npc.getPersistentDataContainer().set(registrar,PersistentDataType.BYTE,(byte)1);
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ final class MCGUIMenus implements AutoCloseable {
|
|||
private static MCGUIMenus active;
|
||||
private final JavaPlugin plugin;
|
||||
private final Map<UUID,Session> sessions=new HashMap<>();
|
||||
private final Set<UUID> closeHints=new HashSet<>();
|
||||
private final ExecutorService drawings=Executors.newSingleThreadExecutor(r->{Thread t=new Thread(r,"DuneRealms-menu-render");t.setDaemon(true);return t;});
|
||||
private Plugin engine;private Object framework,loader,none;private Class<?> contentType,optionsType;private Object defaultOptions;
|
||||
private Method makeCanvas,openView,hasPack,pageOf,render,draw,hoverState;
|
||||
|
|
@ -47,6 +48,7 @@ final class MCGUIMenus implements AutoCloseable {
|
|||
static boolean show(Player p,String title,String description,Inventory inventory,Map<Integer,Runnable> actions,GuiSession gate){
|
||||
return active!=null&&active.present(p,title,description,inventory,actions,gate);
|
||||
}
|
||||
static void forget(UUID player){if(active!=null)active.closeHints.remove(player);}
|
||||
static void offerPack(Player p){if(active!=null&&!BedrockForms.isBedrock(p))active.sendPack(p);}
|
||||
private void sendPack(Player p){if(!p.getWorld().getName().equals("guild_lobby"))return;p.addResourcePack(packId,packUrl,packHash,"DuneRealms interactive menus",true);}
|
||||
private boolean present(Player p,String title,String description,Inventory inventory,Map<Integer,Runnable> actions,GuiSession suppliedGate){
|
||||
|
|
@ -81,7 +83,7 @@ final class MCGUIMenus implements AutoCloseable {
|
|||
String html=MenuDocument.html(title,description,player.getName(),cards,selected,base.getParent());Object page=pageOf.invoke(null,html,base,loader);
|
||||
Object paintState=none;Object document=page.getClass().getField("document").get(page);String selector=expected<=-100?"[data-pick=\""+(-100-expected)+"\"]":"[data-slot=\""+expected+"\"]";Object element=document.getClass().getMethod("selectFirst",String.class).invoke(document,selector);if(element!=null)paintState=hoverState.invoke(null,element,null);Object next=render.invoke(null,page,1536,896,1.5,offset,paintState);
|
||||
if(!alive)return;draw.invoke(canvas,next.getClass().getMethod("image").invoke(next),0,0);frame=next;
|
||||
Bukkit.getScheduler().runTask(plugin,()->{if(!current())return;if(view==null)try{Object proxy=Proxy.newProxyInstance(contentType.getClassLoader(),new Class<?>[]{contentType},this);view=openView.invoke(framework,player,proxy,defaultOptions);}catch(Exception e){finish();sessions.remove(player.getUniqueId());player.sendMessage("The menu could not open. Load the menu pack and reopen your Codex.");plugin.getLogger().warning("MC GUI view failed: "+e.getClass().getSimpleName());}});
|
||||
Bukkit.getScheduler().runTask(plugin,()->{if(!current())return;if(view==null)try{Object proxy=Proxy.newProxyInstance(contentType.getClassLoader(),new Class<?>[]{contentType},this);view=openView.invoke(framework,player,proxy,defaultOptions);if(closeHints.add(player.getUniqueId()))player.sendMessage("Press Shift to close this menu.");}catch(Exception e){finish();sessions.remove(player.getUniqueId());player.sendMessage("The menu could not open. Load the menu pack and reopen your Codex.");plugin.getLogger().warning("MC GUI view failed: "+e.getClass().getSimpleName());}});
|
||||
}catch(Exception|LinkageError e){if(alive){plugin.getLogger().log(java.util.logging.Level.WARNING,"MC GUI render failed",e);Bukkit.getScheduler().runTask(plugin,()->{if(current()){finish();sessions.remove(player.getUniqueId(),this);player.sendMessage("The new menu could not be drawn. Please retry /menu.");}});}}
|
||||
finally{queued.set(false);if(alive&&(expected!=hovered||selected!=picked||offset!=scroll))schedule();}
|
||||
});}
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue

Staff