migrate yigd.json to yigd.toml

This commit is contained in:
♥ Minnie ♥ 2024-05-28 20:29:27 +08:00
parent 5ab538374b
commit f844db993a
No known key found for this signature in database
4 changed files with 167 additions and 208 deletions

View file

@ -1,205 +0,0 @@
{
"inventoryConfig": {
"dropPlayerHead": false,
"itemLoss": {
"enabled": false,
"affectStacks": false,
"usePercentRange": true,
"lossRangeFrom": 0,
"lossRangeTo": 100,
"percentChanceOfLoss": 50,
"canLoseSoulbound": false
},
"vanishingEnchantments": [
"minecraft:vanishing_curse"
],
"soulboundEnchantments": [
"yigd:soulbound"
],
"loseSoulboundLevelOnDeath": false,
"vanishingSlots": [],
"soulboundSlots": [],
"dropOnGroundSlots": []
},
"expConfig": {
"dropBehaviour": "PERCENTAGE",
"dropPercentage": 100,
"keepPercentage": 80
},
"graveConfig": {
"enabled": true,
"storeItems": true,
"storeXp": true,
"informGraveLocation": true,
"requireItem": false,
"requiredItem": "yigd:grave",
"requireShovelToLoot": false,
"retrieveMethods": {
"onClick": true,
"onBreak": false,
"onSneak": false,
"onStand": false
},
"mergeStacksOnRetrieve": true,
"dropOnRetrieve": "IN_INVENTORY",
"dropGraveBlock": false,
"generateEmptyGraves": false,
"overrideSpawnProtection": true,
"claimPriority": "GRAVE",
"graveRobbing": {
"enabled": true,
"onlyMurderer": false,
"afterTime": 1,
"timeUnit": "HOURS",
"robPriority": "INVENTORY",
"notifyWhenRobbed": true,
"tellWhoRobbed": true
},
"graveTimeout": {
"enabled": false,
"afterTime": 5,
"timeUnit": "HOURS",
"dropContentsOnTimeout": true
},
"treatBindingCurse": true,
"generateGraveInVoid": true,
"lowestGraveY": 3,
"generateOnlyWithinBorder": true,
"ignoredDeathTypes": [],
"unlockable": true,
"randomSpawn": {
"percentSpawnChance": 0,
"spawnEntity": "minecraft:zombie",
"spawnNbt": "{ArmorItems:[{},{},{},{id:\"minecraft:player_head\",tag:{SkullOwner:{Name:\"${owner.name}\",Id:\"${owner.uuid}\"}},Count:1b}]}"
},
"generateOnLastGroundPos": false,
"generationMaxDistance": {
"x": 5,
"y": 5,
"z": 5
},
"useSoftBlockWhitelist": false,
"useStrictBlockBlacklist": true,
"replaceOldWhenClaimed": true,
"dropItemsIfDestroyed": false,
"notifyOwnerIfDestroyed": true,
"persistentGraves": {
"enabled": false,
"showDeathDay": true,
"showDeathIrlTime": true,
"useAmPm": true
},
"dimensionBlacklist": [],
"blockUnderGrave": {
"enabled": true,
"blockInDimensions": [
{
"key": "minecraft:overworld",
"value": "minecraft:cobblestone"
},
{
"key": "minecraft:the_nether",
"value": "minecraft:soul_soil"
},
{
"key": "minecraft:the_end",
"value": "minecraft:end_stone"
},
{
"key": "misc",
"value": "minecraft:dirt"
}
],
"generateOnProtectedLand": false
},
"sellOutOfflinePeople": false,
"maxBackupsPerPerson": 50,
"dropFromOldestWhenDeleted": true
},
"respawnConfig": {
"respawnEffects": [],
"respawnHealth": -1,
"resetHunger": true,
"respawnHunger": -1,
"resetSaturation": true,
"respawnSaturation": -1.0,
"extraItemDrops": []
},
"compatConfig": {
"standardDropRuleInClaim": "PUT_IN_GRAVE",
"enableInventorioCompat": true,
"defaultInventorioDropRule": "PUT_IN_GRAVE",
"enableLevelzCompat": true,
"defaultLevelzDropRule": "PUT_IN_GRAVE",
"enableNumismaticOverhaulCompat": true,
"defaultNumismaticDropRule": "PUT_IN_GRAVE",
"enableOriginsInventoryCompat": true,
"defaultOriginsDropRule": "PUT_IN_GRAVE",
"enableTravelersBackpackCompat": true,
"defaultTravelersBackpackDropRule": "PUT_IN_GRAVE",
"enableTrinketsCompat": true,
"defaultTrinketsDropRule": "PUT_IN_GRAVE",
"enableBeansBackpacksCompat": true,
"defaultBeansBackpacksDropRule": "PUT_IN_GRAVE",
"enableRespawnObelisksCompat": true
},
"commandConfig": {
"mainCommand": "yigd",
"basePermissionLevel": 0,
"viewLatestPermissionLevel": 0,
"viewSelfPermissionLevel": 0,
"viewUserPermissionLevel": 2,
"viewAllPermissionLevel": 2,
"restorePermissionLevel": 2,
"robPermissionLevel": 2,
"whitelistPermissionLevel": 3,
"deletePermissionLevel": 3,
"unlockPermissionLevel": 0
},
"graveRendering": {
"useCustomFeatureRenderer": true,
"useSkullRenderer": false,
"useTextRenderer": true,
"adaptRenderer": false,
"useGlowingEffect": false,
"glowingDistance": 15
},
"extraFeatures": {
"soulboundEnchant": {
"enabled": true,
"isTreasure": true,
"isAvailableForEnchantedBookOffer": true,
"isAvailableForRandomSelection": true
},
"deathSightEnchant": {
"enabled": false,
"isTreasure": true,
"isAvailableForEnchantedBookOffer": true,
"isAvailableForRandomSelection": false,
"range": 64.0,
"targets": "PLAYER_GRAVES"
},
"graveKeys": {
"enabled": false,
"rebindable": true,
"required": true,
"receiveOnRespawn": true,
"obtainableFromGui": false,
"targeting": "PLAYER_GRAVE"
},
"deathScroll": {
"enabled": false,
"rebindable": false,
"receiveOnRespawn": false,
"clickFunction": "VIEW_CONTENTS",
"consumeOnUse": false
},
"graveCompass": {
"receiveOnRespawn": true,
"consumeOnUse": true,
"deleteWhenUnlinked": true,
"cloneRecoveryCompassWithGUI": false,
"pointToClosest": "DISABLED"
}
}
}

164
config/yigd.toml Normal file
View file

@ -0,0 +1,164 @@
[graveSettings]
generateGraves = true
retrievalType = "ON_USE"
compactRetrieveItems = true
retrievalRequireShovel = false
dropType = "IN_INVENTORY"
dropPlayerHead = false
dropGraveBlock = false
requireGraveItem = false
generateEmptyGraves = false
ignoreSpawnProtection = true
deathInSpawnProtection = "CREATE_GRAVE"
priority = "GRAVE"
unlockableGraves = true
deleteEnchantments = ["minecraft:vanishing_curse", "vanishing_curse"]
soulboundEnchantments = ["yigd:soulbound"]
loseSoulboundLevelOnDeath = false
voidSlots = []
soulboundSlots = []
applyBindingCurse = true
useLastGroundPos = false
trySoft = false
trySoftApproach = "RADIUS"
tryStrict = true
replaceWhenClaimed = true
persistGraves = false
onDestroyedDrop = "NONE"
blacklistDimensions = []
graveInVoid = true
ignoreDeathTypes = []
graveSpawnHeight = 2
lastResort = "DROP_ITEMS"
putXpInGrave = true
defaultXpDrop = false
xpDropPercent = 50
tellDeathPos = true
maxGraveBackups = 50
[graveSettings.graveRobbing]
enableRobbing = true
onlyMurderer = false
afterTime = 1
timeType = "HOURS"
robPriority = "INVENTORY"
tellRobber = true
notifyWhenRobbed = true
[graveSettings.graveDeletion]
canDelete = false
afterTime = 1
timeType = "HOURS"
dropInventory = false
[graveSettings.itemLoss]
enableLoss = false
ignoreSoulboundItems = true
affectStacks = false
usePercentRange = false
lossRangeFrom = 0
lossRangeTo = 5
percentChanceOfLoss = 100
[graveSettings.randomSpawnSettings]
percentSpawnChance = 0
spawnEntity = "minecraft:zombie"
spawnNbt = "{ArmorItems:[{},{},{},{id:\"minecraft:player_head\",tag:{SkullOwner:{Name:\"${name}\",Id:\"${uuid}\"}},Count:1b}]}"
[graveSettings.blockUnderGrave]
generateBlockUnder = true
inOverWorld = "minecraft:cobblestone"
inNether = "minecraft:soul_soil"
inTheEnd = "minecraft:end_stone"
inCustom = "minecraft:dirt"
generateWhenProtected = false
[graveSettings.graveCompatConfig]
levelzXpInGraves = true
levelzXpDropPercent = 100
claimRuleOverride = "CREATE_GRAVE"
prioritiseTheGraveyardGraves = false
graveyardSearchRadius = 10
keepAllTrinkets = false
[graveSettings.graveRenderSettings]
useRenderFeatures = true
useSpecialBlockRenderer = true
renderGraveSkull = true
renderGraveOwner = true
textShadow = true
adaptRenderer = false
glowingGrave = true
glowMinDistance = 0
glowMaxDistance = 10
[graveSettings.graveRenderSettings.guiTextColors]
graveSelectGraveLocation = 13369548
graveSelectItemSize = 204
graveSelectLevelSize = 2725384
graveSelectTitle = 5592405
graveSelectPageView = 30464
graveSelectShowAvailableCheckbox = 7829367
graveSelectShowClaimedCheckbox = 7829367
graveSelectShowDestroyedCheckbox = 7829367
graveSelectShowStatusCheckbox = 7829367
graveViewLockGrave = 0
graveViewUnlockGrave = 0
graveViewRestoreGrave = 0
graveViewDeleteGrave = 0
graveViewRobGrave = 0
graveViewGiveKey = 0
graveViewDeathMessage = 11141120
graveViewDeathDimension = 21956
graveViewCoordinates = 12255419
graveViewModItemSize = 5592405
graveViewLevelSize = 2725384
claimedBy = 0
playerSelectPlayerName = 16384
playerSelectGraveCount = 5592405
playerSelectTitle = 5592405
playerSelectPageView = 30464
playerSelectIncludeAvailableCheckbox = 7829367
playerSelectIncludeClaimedCheckbox = 7829367
playerSelectIncludeDestroyedCheckbox = 7829367
playerSelectShowZeroCheckbox = 7829367
playerSelectSearchBar = 16777215
[utilitySettings.soulboundEnchant]
enabled = true
isTreasure = false
villagerTrade = true
tableAndLoot = false
[utilitySettings.deathSightEnchant]
enabled = false
isTreasure = true
villagerTrade = true
tableAndLoot = true
[utilitySettings.scrollItem]
scrollType = "DISABLED"
retrieveOnRespawn = true
[utilitySettings.graveKeySettings]
enableKeys = false
alwaysRequire = false
retrieveOnRespawn = true
getFromGui = false
rebindable = false
graveKeySpecification = "PLAYER"
[utilitySettings.graveCompassSettings]
receiveOnDeath = false
tryDeleteOnClaim = true
[commandToggles]
coreCommandName = "yigd"
retrieveGrave = true
robGrave = true
selfView = true
adminView = true
moderateGraves = true
clearGraveBackups = true
whitelist = true
whitelistAdd = true
whitelistRemove = true
whitelistToggle = true
coordinateToggle = true
[debugConfig]
clearInventoryOnRespawn = false
createGraveBeforeDeathMessage = false

View file

@ -1,8 +1,8 @@
hash-format = "sha256" hash-format = "sha256"
[[files]] [[files]]
file = "config/yigd.json" file = "config/yigd.toml"
hash = "4b2fbad709ec4c72a83850d011ddf23b42ec5d589f00b2916075f55726386522" hash = "6825c57499415d407bfe42f9ad56979ee3b0a54cfb20956e5e6b79a49b4719ea"
[[files]] [[files]]
file = "mods/c2me-fabric.pw.toml" file = "mods/c2me-fabric.pw.toml"

View file

@ -6,7 +6,7 @@ pack-format = "packwiz:1.1.0"
[index] [index]
file = "index.toml" file = "index.toml"
hash-format = "sha256" hash-format = "sha256"
hash = "34d97e379549bcd0465ea00284c6a5567e5b9cfe7f1d2b1c829534968c1f1c8f" hash = "e19d353a6a78e5b835d648bcb70142583a63bffdf98b16bd75cd2bd09c02cfaa"
[versions] [versions]
fabric = "0.15.11" fabric = "0.15.11"