本篇教程由作者设定未经允许禁止转载。
这是1.18.2 幸运草(Clover)的默认配置。
(文件名:clover-common.toml)
#General Settings
[general]
#The Probability of laying Charged Creeper
#Range: 0.0 ~ 1.0
probabilityCreeper = 0.01
#The Probability of laying Clover
#Range: 0.0 ~ 1.0
probabilityClover = 0.05
#The Items in Black List
blackList = ["minecraft:bedrock", "minecraft:structure_block", "minecraft:jigsaw", "minecraft:light", "minecraft:command_block", "minecraft:repeating_command_block", "minecraft:chain_command_block", "minecraft:command_block_minecart", "minecraft:barrier", "minecraft:structure_void", "clover:clover"]
#The Items in White List
whiteList = []
解析
闪电爬行者生成概率
#The Probability of laying Charged Creeper
#Range: 0.0 ~ 1.0
probabilityCreeper = 0.01
使用四叶草时,生成闪电爬行者的概率。
默认为0.01(1%)。
如果你想调整,例如你想让概率在2%,那就修改probabilityCreeper的值为0.02。
(概率%=概率/100.0)
四叶草掉落概率
#The Probability of laying Clover
#Range: 0.0 ~ 1.0
probabilityClover = 0.05
挖掘草后,有多少概率会掉落四叶草。
默认为0.05(5%)。
如果你想调整,例如你想让概率在12%,那就修改probabilityClover的值为0.12。
(概率%=概率/100.0)
黑名单
#The Items in Black List
blackList = ["minecraft:bedrock", "minecraft:structure_block", "minecraft:jigsaw", "minecraft:light", "minecraft:command_block", "minecraft:repeating_command_block", "minecraft:chain_command_block", "minecraft:command_block_minecart", "minecraft:barrier", "minecraft:structure_void", "clover:clover"]
你使用四叶草绝对不会掉落的物品。也就是黑名单。
如果你想将钻石块列入内,那就需要在里面加上:
"minecraft:diamond_block"
不要忘了,相邻的物品ID需要使用逗号","隔开。
白名单
#The Items in White List
whiteList = []
原来的配置里面什么也没写。
你使用四叶草只会掉落这里面的东西。请注意,为空则没有限制。
如果你想将绿宝石块列入内,那就需要在里面加上:
"minecraft:emerald_block"
不要忘了,相邻的物品ID需要使用逗号","隔开。