哈哈哈,上次有一个人也是这样,没事没事,我卖的不算贵?气死我了,那个插件我昨天买的,现在又要买这个插件
【Lv:1】
"intervalStrategy": {
"otherSelector": "x=-40,y=63,z=-40,r=150",
intervalFactory
函数里的: if(task.listType==0){
mc.[COLOR=rgb(184, 49, 47)]runcmdEx[/COLOR](`tag @e[${task.types}${otherSelector}] add "${tag}"`)
}else{
for(let i in task.types){
mc.[COLOR=rgb(184, 49, 47)]runcmdEx[/COLOR](`tag @e[${task.types[i]}${otherSelector}] add "${tag}"`)
}
}
if(task.listType==0){
mc.runcmd(`tag @e[${task.types}${otherSelector}] add "${tag}"`)
}else{
for(let i in task.types){
mc.runcmd(`tag @e[${task.types[i]}${otherSelector}] add "${tag}"`)
}
}
非常感谢你的反馈遇到了个bug,配置里选择器加坐标和范围后不执行
"intervalStrategy": { "otherSelector": "x=-40,y=63,z=-40,r=150",
自己尝试debug,修改了intervalFactory
函数里的:
if(task.listType==0){ mc.[COLOR=rgb(184, 49, 47)]runcmdEx[/COLOR](`tag @e[${task.types}${otherSelector}] add "${tag}"`) }else{ for(let i in task.types){ mc.[COLOR=rgb(184, 49, 47)]runcmdEx[/COLOR](`tag @e[${task.types[i]}${otherSelector}] add "${tag}"`) } }
改为:
if(task.listType==0){ mc.runcmd(`tag @e[${task.types}${otherSelector}] add "${tag}"`) }else{ for(let i in task.types){ mc.runcmd(`tag @e[${task.types[i]}${otherSelector}] add "${tag}"`) } }
之后可正常运行,但不可避免的控制台一堆消息。
修复limitStrategy策略消息静默失效
原因是。。。。我压根没写,哈哈哈哈(已修复)
【Lv:1】
【非常感谢您的反馈,这个问题确实存在,我已经修复,请更新到最新版】{ //实体限制任务样例
name:"xp",
//注意,这里是黑名单,即当前项只监控黑名单内的实体
blackList:["minecraft:xp_orb"],
strategy:"timeLimitStrategy",
timeLimitStrategy:{
otherSelector:"",
count:5,
msgSilent:true,
comment:"这一项仅做提示,没有其他作用。%name%表示当前项名称,%number%表示当前统计数量,%maxNum%表示当前项最大数量,%coefficientNum%为限定数量,%entity%表示被清理的实体(仅用于cleanMsg与dangerMsg),%counter%表示当前倒计时(该变量仅在warningMsg中有效)",
warningMsg:"§e%name%§f超出合理数量范围[§c%number%§f/§d%coefficientNum%§f/§a%maxNum%§f]\n倒计时结束之后启动清理:§d%counter%",
cleanMsg:"§e%name%§f超出合理数量范围[§c%number%§f/§d%coefficientNum%§f/§a%maxNum%§f],倒计时结束,触发系统清理\n本次清理%entity%等",
dangerMsg:"§e%name%§f超出限制数量[§c%number%§f/§d%coefficientNum%§f/§a%maxNum%§f],触发系统清理\n本次清理%entity%等",
}
},
{ //实体限制任务样例
name:"xp2",
//注意,这里是黑名单,即当前项只监控黑名单内的实体
blackList:[
"minecraft:skeleton",//骷髅
"minecraft:zombie_pigman",//猪人
"minecraft:enderman",//末影人
"minecraft:spider",//蜘蛛
"minecraft:cave_spider",//洞穴蜘蛛
"minecraft:blaze",//烈焰人
"minecraft:creeper",//苦力怕
"minecraft:drowned",//溺尸
"minecraft:guardian",//守卫者
"minecraft:endermite",//末影螨
"minecraft:evocation_illager",//唤魔者
"minecraft:evocation_fang",//唤魔者尖牙
"minecraft:ghast",//恶魂
"minecraft:hoglin",//疣猪兽
"minecraft:husk",//尸壳
"minecraft:magma_cube",//岩浆怪
"minecraft:phantom",//幻翼
"minecraft:pillager",//掠夺者
"minecraft:ravager",//劫掠兽
"minecraft:shulker",//潜影贝
"minecraft:silverfish",//蠹虫
"minecraft:slime",//史莱姆
"minecraft:stray",//流浪者
"minecraft:vex",//恼鬼
"minecraft:vindicator",//卫道士
"minecraft:witch",//女巫
"minecraft:wither_skeleton",//凋零骷髅
"minecraft:zoglin"],
strategy:"timeLimitStrategy",
timeLimitStrategy:{
otherSelector:"",
count:60,
msgSilent:true,
comment:"这一项仅做提示,没有其他作用。%name%表示当前项名称,%number%表示当前统计数量,%maxNum%表示当前项最大数量,%coefficientNum%为限定数量,%entity%表示被清理的实体(仅用于cleanMsg与dangerMsg),%counter%表示当前倒计时(该变量仅在warningMsg中有效)",
warningMsg:"§e%name%§f超出合理数量范围[§c%number%§f/§d%coefficientNum%§f/§a%maxNum%§f]\n倒计时结束之后启动清理:§d%counter%",
cleanMsg:"§e%name%§f超出合理数量范围[§c%number%§f/§d%coefficientNum%§f/§a%maxNum%§f],倒计时结束,触发系统清理\n本次清理%entity%等",
dangerMsg:"§e%name%§f超出限制数量[§c%number%§f/§d%coefficientNum%§f/§a%maxNum%§f],触发系统清理\n本次清理%entity%等",
}
},
為什麼寫這樣,下面的生物也是五秒清除?