docs: Add information about id replacements
This commit is contained in:
@@ -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
|
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
|
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,
|
`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
|
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.
|
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
|
## (Placed) Skulls by texture id
|
||||||
|
|
||||||
|
|||||||
@@ -13,13 +13,12 @@ interface FirmamentConfigScreenProvider {
|
|||||||
val providers by lazy {
|
val providers by lazy {
|
||||||
allValidInstances
|
allValidInstances
|
||||||
.filter { it.isEnabled }
|
.filter { it.isEnabled }
|
||||||
.sortedWith(Comparator.comparing(
|
.sortedWith(
|
||||||
{ it.key },
|
Comparator
|
||||||
Comparator<String> { left, right ->
|
.comparing<FirmamentConfigScreenProvider, Boolean>({ it.key == "builtin" })
|
||||||
if (left == "builtin") return@Comparator -1
|
.reversed()
|
||||||
if (right == "builtin") return@Comparator 1
|
.then(Comparator.comparing({ it.key }))
|
||||||
return@Comparator left.compareTo(right)
|
).toList()
|
||||||
})).toList()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user