docs: Add information about id replacements

This commit is contained in:
Linnea Gräf
2024-11-12 21:56:46 +01:00
parent fc88e54a2e
commit 76b7934407
2 changed files with 10 additions and 9 deletions

View File

@@ -12,8 +12,10 @@ Find the internal id of the item. This is usually stored in the ExtraAttributes
keybinds). Once you found it, create an item model in a resource pack like you would for
a vanilla item model, but at the coordinate `firmskyblock:<internalid>`. So for an aspect of the end, this would be
`firmskyblock:models/item/aspect_of_the_end.json` (or `assets/firmskyblock/models/item/aspect_of_the_end.json`). Then,
just use a normal minecraft item model. See https://github.com/romangraef/BadSkyblockTP/blob/master/assets/firmskyblock/models/item/magma_rod.json
as an example.
just use a normal minecraft item model. See https://github.com/nea89o/BadSkyblockTP/blob/master/assets/firmskyblock/models/item/magma_rod.json
as an example. The id is first turned to lower case, then gets `:` replaced with `___`, `;` with `__` and all other
characters that cannot be used in a minecraft resource location with `__XXXX` where `XXXX` is the 4 digit hex code for
the character.
## (Placed) Skulls by texture id

View File

@@ -13,13 +13,12 @@ interface FirmamentConfigScreenProvider {
val providers by lazy {
allValidInstances
.filter { it.isEnabled }
.sortedWith(Comparator.comparing(
{ it.key },
Comparator<String> { left, right ->
if (left == "builtin") return@Comparator -1
if (right == "builtin") return@Comparator 1
return@Comparator left.compareTo(right)
})).toList()
.sortedWith(
Comparator
.comparing<FirmamentConfigScreenProvider, Boolean>({ it.key == "builtin" })
.reversed()
.then(Comparator.comparing({ it.key }))
).toList()
}
}
}