Links
Tags
Creators
Details
Licensed AGPL-3.0-or-later
Published last year
Updated 2 months ago
All versions
3.3.0-Alpha.dev1
Alpha
Spice of Life: Fabric Flavor 3.3.0-Alpha.dev17 months ago 693
Compatibility
Minecraft: Java Edition
1.21.1
Platform
Fabric
Supported environments
Client and server
Changes
Warning: Test Version
重要:该版本为预览版,功能尚不完善,可能出现bug。
更新
增加了食物动态属性功能,现在每个玩家每次食用都允许按照最近食用记录来动态调整营养度(饱食度回复量),饱和度按照原版算法基于食物的默认系数,随着营养度调整。 增加了五个配置:
EnableNutritionModification
是否启用动态属性。RecentShortListSize
短期记录列表长度。计算函数可获取短期列表内,玩家食用下的食物的数量计数。超过计数后每次记录食物食用会删除最后一项(最早记录,距离现在最久的一项)。RecentLongListSize
短期记录列表长度。计算函数可获取长期列表内,玩家食用下的食物的数量计数。超过计数后每次记录食物食用会删除最后一项(最早记录,距离现在最久的一项)。Blacklist
在该列表内的食物不会被修改(针对所有玩家)。NutritionExpression
默认为mutrition,你可以使用nutrition代表物品堆本身的食物组件原本的营养度,你可以使用shortCount获取短期列表内该食物的计数(每一次玩家食用回复的饱食度和饱和度都会被拦截为函数结果,你可以获取玩家原本食用的食物的这些数据,这一项不是表总的长度哦),longCount获取长期列表内该食物的计数,streakCount获取重复计数,玩家最后一次食用的食物一共连续食用了几次(例如玩家已经食用了A B B C,下一次食用A则该值为2,食用B则为0)。函数用法参考指南。
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:mkvFT6R6:LUooInZG"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:mkvFT6R6:LUooInZG"
}

