本帖最后由 [email protected] 于 2019-8-16 17:21 编辑

Usage
本插件所用所有代码均为原创,不存在借用/抄袭等行为

Function
- 接管方块放置/破坏系统
- 采集植物/矿石等物品
- 可设定采集所需工具、掉落数量、掉落物品
- 使用Mythicmobs物品系统,无需再写一次
- 自动刷新资源,频率可调整
- 禁止玩家右键指定方块
- 傻瓜式配置文件
Usage
全局:
防止玩家右键方块(如铁毡):
采集:
Download
Install
- 关闭其他插件阻止方块破坏/放置的功能(本插件不提供桶/打火石等防护,请保留这部分功能)。OP可以无视本插件限制。
防止玩家右键方块(如铁毡):
- 对着要禁止的方块输入/wbl type查看它的Skript内部名。
- 在disableblocks配置文件的list为它加上一行。
采集:
- 在types子目录中添加一个yml文件,假设名字为“银叶草.yml”。可以使用子文件夹分类。
- 按照模版配置采集工具、掉落物品、掉落数目、高亮文字显示。采集工具/掉落物品需要填写Mythicmobs的内部ID。
- 回到游戏,对着一个方块,例如茜草花,输入/wbl add 银叶草,这个方块(仅仅是这个方块,不是所有的茜草花)就变成了可采集的银叶草。
- 然后你就可以使用对应的工具左键采集它。
- 输入/wbl remove可以把它移除。
- 输入/wbl update立即刷新所有方块。
- config配置文件中可以设置自然刷新频率。
Download
Install
- 解压前置,丢到plugins。不保证不同Skript及附属版本的兼容性。
- 重启
- 解压WildBlock.zip,丢入plugins/Skript/scripts
- /sk reload WildBlock
Thanks
- Skript交流群:590388354
本插件所用所有代码均为原创,不存在借用/抄袭等行为
有用请评分
好像很不错的样子
看功能挺适合那些不希望大部分地图被破坏而设立资源点的RPG服。
吴铜夙夏 发表于 2019-6-30 17:16
看功能挺适合那些不希望大部分地图被破坏而设立资源点的RPG服。
这个是我参考魔兽世界出的灵感。
吴铜夙夏 发表于 2019-6-30 19:09
未来有可能支持1.13吗?
我自己在的服务器打算下一个周目用1.13版本开RPG。 ...
你可以试试,但附属应该不支持。很多附属都很旧了。
能支持彩色就更好了
希望能加入专业等级的系统
9999999999999 发表于 2019-7-1 19:28
能支持彩色就更好了
可以啊,内部ID加颜色字符(不要用&,用原版的)。不行的话我周末加上。
风语者 发表于 2019-7-1 20:27
希望能加入专业等级的系统
我服自己用的版本是和我自己写的职业插件有联动的,以后可能会发出。请说说你的详细需求。
这个插件好像和MCMMO里的采集技能冲突了...
[email protected] 发表于 2019-7-1 20:34
可以啊,内部ID加颜色字符(不要用&,用原版的)。不行的话我周末加上。 ...
不是用文件名吗 我用wbl add 物品id没用
本帖最后由 [email protected] 于 2019-7-2 10:24 编辑
你配置里文件名写的啥,比如§a金盏花,就wbl add §a金盏花。
没颜色的话我周末重写一下。
9999999999999 发表于 2019-7-1 21:40
不是用文件名吗 我用wbl add 物品id没用
你配置里文件名写的啥,比如§a金盏花,就wbl add §a金盏花。
没颜色的话我周末重写一下。
9999999999999 发表于 2019-7-1 21:40
不是用文件名吗 我用wbl add 物品id没用
原版的指的是原版的颜色字符,不是&
感谢楼主
[email protected] 发表于 2019-7-2 10:22
原版的指的是原版的颜色字符,不是&
我加不上 能改成在文件内配置就好了
9999999999999 发表于 2019-7-2 16:23
我加不上 能改成在文件内配置就好了
我忘了游戏内不能输入这玩意儿。试试&,&不行的话我周末搞。
[email protected] 发表于 2019-7-2 20:32
我忘了游戏内不能输入这玩意儿。试试&,&不行的话我周末搞。
&也不行
[email protected] 发表于 2019-7-1 20:35
我服自己用的版本是和我自己写的职业插件有联动的,以后可能会发出。请说说你的详细需求。 ...
不是说有点仿照魔兽的机制嘛,那可以有对应的专业等级,然后再加点其他专业也可以,比如说炼药和锻造
风语者 发表于 2019-7-8 10:06
不是说有点仿照魔兽的机制嘛,那可以有对应的专业等级,然后再加点其他专业也可以,比如说炼药和锻造 ...
我自己用的是有的,这是公用版。
很好的插件,我也需要,但是能不能下次更新多一个功能,可以选定某个区域,然后随机生长草药啊
> [08:37:39 INFO]: [Skript] Loading variables...
> [08:37:39 INFO]: [Skript] Loaded 0 variables in 0.0 seconds
> [08:37:39 ERROR]: [Skript] Can't understand this expression: 'system time' (WildBlock.sk, line 3: set {_systemTime} to system time')
> [08:37:39 ERROR]: [Skript] can't understand this condition: 'folder "plugins/WildBlock" doesn't exists' (WildBlock.sk, line 5: if folder "plugins/WildBlock" doesn't exists:')
> [08:37:39 ERROR]: [Skript] Can't understand this condition/effect: load yml "plugins/WildBlock/config.yml" as "WildBlock_config" (WildBlock.sk, line 38: load yml "plugins/WildBlock/config.yml" as "WildBlock_config"')
> [08:37:39 ERROR]: [Skript] Can't understand this expression: 'yml value "updateCooldown" of "WildBlock_config"' (WildBlock.sk, line 39: set {WildBlock_updateCooldown} to yml value "updateCooldown" of "WildBlock_config"')
> [08:37:39 ERROR]: [Skript] Can't understand this condition/effect: load yml "plugins/WildBlock/disableBlocks.yml" as "WildBlock_disableBlocks" (WildBlock.sk, line 42: load yml "plugins/WildBlock/disableBlocks.yml" as "WildBlock_disableBlocks"')
> [08:37:39 ERROR]: [Skript] {_list::*} can't be set to 'yml list "list" of "WildBlock_disableBlocks"' because the latter is not an object (WildBlock.sk, line 43: set {_list::*} to yml list "list" of "WildBlock_disableBlocks"')
> [08:37:39 ERROR]: [Skript] Can't understand this loop: 'loop files in dir including sub dirs "plugins/WildBlock/types"' (WildBlock.sk, line 47: loop files in dir including sub dirs "plugins/WildBlock/types":')
> [08:37:39 ERROR]: [Skript] Can't understand this loop: 'loop files in dir including sub dirs "plugins/WildBlock/blocks"' (WildBlock.sk, line 54: loop files in dir including sub dirs "plugins/WildBlock/blocks":')
> [08:37:39 ERROR]: [Skript] Can't understand this expression: system time - {_systemTime} (WildBlock.sk, line 63: send "[WildBlock] 加载耗时 %system time - {_systemTime}% ms" to console')
> [08:37:39 ERROR]: [Skript] Can't understand this condition/effect: unload yml "WildBlock_config" (WildBlock.sk, line 74: unload yml "WildBlock_config"')
> [08:37:39 ERROR]: [Skript] Can't understand this condition/effect: unload yml "WildBlock_blockData_%loop-value%" (WildBlock.sk, line 79: unload yml "WildBlock_blockData_%loop-value%"')
> [08:37:39 ERROR]: [Skript] Can't understand this condition/effect: unload yml "WildBlock_type_%loop-value%" (WildBlock.sk, line 83: unload yml "WildBlock_type_%loop-value%"')
> [08:37:39 ERROR]: [Skript] can't understand this condition: 'holo object "WildBlock_%{_id}%" exists' (WildBlock.sk, line 94: if holo object "WildBlock_%{_id}%" exists:')
> [08:37:39 ERROR]: [Skript] Can't compare a block with 'air' (WildBlock.sk, line 113: if block at loop-value is air:')
> [08:37:39 ERROR]: [Skript] Can't understand this condition/effect: create holo object {_text} with id "WildBlock_%{_id}%" at {_hdLoc} (WildBlock.sk, line 118: create holo object {_text} with id "WildBlock_%{_id}%" at {_hdLoc}')
> [08:37:39 ERROR]: [Skript] Can't understand this expression: 'yml value "block" of "WildBlock_blockData_%{_name}%"' (WildBlock.sk, line 132: set {_blockItem} to yml value "block" of "WildBlock_blockData_%{_name}%"')
> [08:37:39 ERROR]: [Skript] Can't understand this expression: 'yml value "dataValue" of "WildBlock_blockData_%{_name}%"' (WildBlock.sk, line 133: set {_dataValue} to yml value "dataValue" of "WildBlock_blockData_%{_name}%"')
> [08:37:39 ERROR]: [Skript] Can't understand this expression: 'yml value "type" of "WildBlock_blockData_%{_name}%"' (WildBlock.sk, line 134: set {_type} to yml value "type" of "WildBlock_blockData_%{_name}%"')
> [08:37:39 ERROR]: [Skript] Can't understand this expression: 'yml value "near" of "WildBlock_type_%{_type}%"' (WildBlock.sk, line 140: set {_near} to yml value "near" of "WildBlock_type_%{_type}%"')
> [08:37:39 ERROR]: [Skript] Can't understand this expression: 'yml value "type" of "WildBlock_blockData_%{_name}%"' (WildBlock.sk, line 160: set {_type} to yml value "type" of "WildBlock_blockData_%{_name}%"')
> [08:37:39 ERROR]: [Skript] can't understand this condition: 'holo object "WildBlock_%{_name}%" exists' (WildBlock.sk, line 162: if holo object "WildBlock_%{_name}%" exists:')
> [08:37:39 ERROR]: [Skript] Can't understand this condition/effect: load yml "plugins/WildBlock/blocks/%{_x}%_%{_y}%_%{_z}%_%{_world}%.yml" as "WildBlock_blockData_%{_x}%_%{_y}%_%{_z}%_%{_world}%" (WildBlock.sk, line 170: load yml "plugins/WildBlock/blocks/%{_x}%_%{_y}%_%{_z}%_%{_world}%.yml" as "WildBlock_blockData_%{_x}%_%{_y}%_%{_z}%_%{_world}%"')
> [08:37:39 ERROR]: [Skript] Can't understand this condition/effect: set yml value "block" of "WildBlock_blockData_%{_x}%_%{_y}%_%{_z}%_%{_world}%" to type of block at {_loc} (WildBlock.sk, line 172: set yml value "block" of "WildBlock_blockData_%{_x}%_%{_y}%_%{_z}%_%{_world}%" to type of block at {_loc}')
> [08:37:39 ERROR]: [Skript] Can't understand this condition/effect: set yml value "dataValue" of "WildBlock_blockData_%{_x}%_%{_y}%_%{_z}%_%{_world}%" to data value of block at {_loc} (WildBlock.sk, line 173: set yml value "dataValue" of "WildBlock_blockData_%{_x}%_%{_y}%_%{_z}%_%{_world}%" to data value of block at {_loc}')
> [08:37:39 ERROR]: [Skript] Can't understand this condition/effect: set yml value "type" of "WildBlock_blockData_%{_x}%_%{_y}%_%{_z}%_%{_world}%" to {_type} (WildBlock.sk, line 174: set yml value "type" of "WildBlock_blockData_%{_x}%_%{_y}%_%{_z}%_%{_world}%" to {_type}')
> [08:37:39 ERROR]: [Skript] Can't understand this condition/effect: save yml "WildBlock_blockData_%{_x}%_%{_y}%_%{_z}%_%{_world}%" (WildBlock.sk, line 176: save yml "WildBlock_blockData_%{_x}%_%{_y}%_%{_z}%_%{_world}%"')
> [08:37:39 ERROR]: [Skript] Can't understand this expression: 'yml value "near" of "WildBlock_type_%{_type}%"' (WildBlock.sk, line 180: set {_near} to yml value "near" of "WildBlock_type_%{_type}%"')
> [08:37:39 ERROR]: [Skript] can't understand this condition: 'holo object "WildBlock_%{_name}%" exists' (WildBlock.sk, line 188: if holo object "WildBlock_%{_name}%" exists:')
> [08:37:39 ERROR]: [Skript] Can't understand this condition/effect: unload yml "WildBlock_blockData_%{_x}%_%{_y}%_%{_z}%_%{_world}%" (WildBlock.sk, line 198: unload yml "WildBlock_blockData_%{_x}%_%{_y}%_%{_z}%_%{_world}%"')
> [08:37:39 ERROR]: [Skript] Can't understand this condition/effect: delete file "plugins/WildBlock/blocks/%{_x}%_%{_y}%_%{_z}%_%{_world}%.yml" (WildBlock.sk, line 199: delete file "plugins/WildBlock/blocks/%{_x}%_%{_y}%_%{_z}%_%{_world}%.yml"')
> [08:37:39 ERROR]: [Skript] can't understand this condition: 'yml "WildBlock_blockData_%{_name}%" is loaded' (WildBlock.sk, line 207: if yml "WildBlock_blockData_%{_name}%" is loaded:')
> [08:37:39 ERROR]: [Skript] 'else' has to be placed just after an 'if' or 'else if' section (WildBlock.sk, line 238: else:')
> [08:37:39 ERROR]: [Skript] can't understand this condition: 'yml "WildBlock_type_%{_type}%" is not loaded' (WildBlock.sk, line 296: if yml "WildBlock_type_%{_type}%" is not loaded:')
> [08:37:39 ERROR]: [Skript] can't understand this condition: 'yml "WildBlock_blockData_%{_x}%_%{_y}%_%{_z}%_%{_world}%" is not loaded' (WildBlock.sk, line 315: if yml "WildBlock_blockData_%{_x}%_%{_y}%_%{_z}%_%{_world}%" is not loaded:')
> [08:37:39 INFO]: [WildBlock] 成功加载所有方块。
> [08:37:39 INFO]: [WildBlock] 定制Skript插件联系 QQ:1508179881
> [08:37:39 INFO]: [WildBlock] Skript交流群 590388354
> [08:37:39 INFO]: [Skript] Loaded 1 script with a total of 8 triggers and 1 command in 0.78 seconds
> [08:37:39 INFO]: [Skript] Finished loading.
報錯
> [08:37:39 INFO]: [Skript] Loaded 0 variables in 0.0 seconds
> [08:37:39 ERROR]: [Skript] Can't understand this expression: 'system time' (WildBlock.sk, line 3: set {_systemTime} to system time')
> [08:37:39 ERROR]: [Skript] can't understand this condition: 'folder "plugins/WildBlock" doesn't exists' (WildBlock.sk, line 5: if folder "plugins/WildBlock" doesn't exists:')
> [08:37:39 ERROR]: [Skript] Can't understand this condition/effect: load yml "plugins/WildBlock/config.yml" as "WildBlock_config" (WildBlock.sk, line 38: load yml "plugins/WildBlock/config.yml" as "WildBlock_config"')
> [08:37:39 ERROR]: [Skript] Can't understand this expression: 'yml value "updateCooldown" of "WildBlock_config"' (WildBlock.sk, line 39: set {WildBlock_updateCooldown} to yml value "updateCooldown" of "WildBlock_config"')
> [08:37:39 ERROR]: [Skript] Can't understand this condition/effect: load yml "plugins/WildBlock/disableBlocks.yml" as "WildBlock_disableBlocks" (WildBlock.sk, line 42: load yml "plugins/WildBlock/disableBlocks.yml" as "WildBlock_disableBlocks"')
> [08:37:39 ERROR]: [Skript] {_list::*} can't be set to 'yml list "list" of "WildBlock_disableBlocks"' because the latter is not an object (WildBlock.sk, line 43: set {_list::*} to yml list "list" of "WildBlock_disableBlocks"')
> [08:37:39 ERROR]: [Skript] Can't understand this loop: 'loop files in dir including sub dirs "plugins/WildBlock/types"' (WildBlock.sk, line 47: loop files in dir including sub dirs "plugins/WildBlock/types":')
> [08:37:39 ERROR]: [Skript] Can't understand this loop: 'loop files in dir including sub dirs "plugins/WildBlock/blocks"' (WildBlock.sk, line 54: loop files in dir including sub dirs "plugins/WildBlock/blocks":')
> [08:37:39 ERROR]: [Skript] Can't understand this expression: system time - {_systemTime} (WildBlock.sk, line 63: send "[WildBlock] 加载耗时 %system time - {_systemTime}% ms" to console')
> [08:37:39 ERROR]: [Skript] Can't understand this condition/effect: unload yml "WildBlock_config" (WildBlock.sk, line 74: unload yml "WildBlock_config"')
> [08:37:39 ERROR]: [Skript] Can't understand this condition/effect: unload yml "WildBlock_blockData_%loop-value%" (WildBlock.sk, line 79: unload yml "WildBlock_blockData_%loop-value%"')
> [08:37:39 ERROR]: [Skript] Can't understand this condition/effect: unload yml "WildBlock_type_%loop-value%" (WildBlock.sk, line 83: unload yml "WildBlock_type_%loop-value%"')
> [08:37:39 ERROR]: [Skript] can't understand this condition: 'holo object "WildBlock_%{_id}%" exists' (WildBlock.sk, line 94: if holo object "WildBlock_%{_id}%" exists:')
> [08:37:39 ERROR]: [Skript] Can't compare a block with 'air' (WildBlock.sk, line 113: if block at loop-value is air:')
> [08:37:39 ERROR]: [Skript] Can't understand this condition/effect: create holo object {_text} with id "WildBlock_%{_id}%" at {_hdLoc} (WildBlock.sk, line 118: create holo object {_text} with id "WildBlock_%{_id}%" at {_hdLoc}')
> [08:37:39 ERROR]: [Skript] Can't understand this expression: 'yml value "block" of "WildBlock_blockData_%{_name}%"' (WildBlock.sk, line 132: set {_blockItem} to yml value "block" of "WildBlock_blockData_%{_name}%"')
> [08:37:39 ERROR]: [Skript] Can't understand this expression: 'yml value "dataValue" of "WildBlock_blockData_%{_name}%"' (WildBlock.sk, line 133: set {_dataValue} to yml value "dataValue" of "WildBlock_blockData_%{_name}%"')
> [08:37:39 ERROR]: [Skript] Can't understand this expression: 'yml value "type" of "WildBlock_blockData_%{_name}%"' (WildBlock.sk, line 134: set {_type} to yml value "type" of "WildBlock_blockData_%{_name}%"')
> [08:37:39 ERROR]: [Skript] Can't understand this expression: 'yml value "near" of "WildBlock_type_%{_type}%"' (WildBlock.sk, line 140: set {_near} to yml value "near" of "WildBlock_type_%{_type}%"')
> [08:37:39 ERROR]: [Skript] Can't understand this expression: 'yml value "type" of "WildBlock_blockData_%{_name}%"' (WildBlock.sk, line 160: set {_type} to yml value "type" of "WildBlock_blockData_%{_name}%"')
> [08:37:39 ERROR]: [Skript] can't understand this condition: 'holo object "WildBlock_%{_name}%" exists' (WildBlock.sk, line 162: if holo object "WildBlock_%{_name}%" exists:')
> [08:37:39 ERROR]: [Skript] Can't understand this condition/effect: load yml "plugins/WildBlock/blocks/%{_x}%_%{_y}%_%{_z}%_%{_world}%.yml" as "WildBlock_blockData_%{_x}%_%{_y}%_%{_z}%_%{_world}%" (WildBlock.sk, line 170: load yml "plugins/WildBlock/blocks/%{_x}%_%{_y}%_%{_z}%_%{_world}%.yml" as "WildBlock_blockData_%{_x}%_%{_y}%_%{_z}%_%{_world}%"')
> [08:37:39 ERROR]: [Skript] Can't understand this condition/effect: set yml value "block" of "WildBlock_blockData_%{_x}%_%{_y}%_%{_z}%_%{_world}%" to type of block at {_loc} (WildBlock.sk, line 172: set yml value "block" of "WildBlock_blockData_%{_x}%_%{_y}%_%{_z}%_%{_world}%" to type of block at {_loc}')
> [08:37:39 ERROR]: [Skript] Can't understand this condition/effect: set yml value "dataValue" of "WildBlock_blockData_%{_x}%_%{_y}%_%{_z}%_%{_world}%" to data value of block at {_loc} (WildBlock.sk, line 173: set yml value "dataValue" of "WildBlock_blockData_%{_x}%_%{_y}%_%{_z}%_%{_world}%" to data value of block at {_loc}')
> [08:37:39 ERROR]: [Skript] Can't understand this condition/effect: set yml value "type" of "WildBlock_blockData_%{_x}%_%{_y}%_%{_z}%_%{_world}%" to {_type} (WildBlock.sk, line 174: set yml value "type" of "WildBlock_blockData_%{_x}%_%{_y}%_%{_z}%_%{_world}%" to {_type}')
> [08:37:39 ERROR]: [Skript] Can't understand this condition/effect: save yml "WildBlock_blockData_%{_x}%_%{_y}%_%{_z}%_%{_world}%" (WildBlock.sk, line 176: save yml "WildBlock_blockData_%{_x}%_%{_y}%_%{_z}%_%{_world}%"')
> [08:37:39 ERROR]: [Skript] Can't understand this expression: 'yml value "near" of "WildBlock_type_%{_type}%"' (WildBlock.sk, line 180: set {_near} to yml value "near" of "WildBlock_type_%{_type}%"')
> [08:37:39 ERROR]: [Skript] can't understand this condition: 'holo object "WildBlock_%{_name}%" exists' (WildBlock.sk, line 188: if holo object "WildBlock_%{_name}%" exists:')
> [08:37:39 ERROR]: [Skript] Can't understand this condition/effect: unload yml "WildBlock_blockData_%{_x}%_%{_y}%_%{_z}%_%{_world}%" (WildBlock.sk, line 198: unload yml "WildBlock_blockData_%{_x}%_%{_y}%_%{_z}%_%{_world}%"')
> [08:37:39 ERROR]: [Skript] Can't understand this condition/effect: delete file "plugins/WildBlock/blocks/%{_x}%_%{_y}%_%{_z}%_%{_world}%.yml" (WildBlock.sk, line 199: delete file "plugins/WildBlock/blocks/%{_x}%_%{_y}%_%{_z}%_%{_world}%.yml"')
> [08:37:39 ERROR]: [Skript] can't understand this condition: 'yml "WildBlock_blockData_%{_name}%" is loaded' (WildBlock.sk, line 207: if yml "WildBlock_blockData_%{_name}%" is loaded:')
> [08:37:39 ERROR]: [Skript] 'else' has to be placed just after an 'if' or 'else if' section (WildBlock.sk, line 238: else:')
> [08:37:39 ERROR]: [Skript] can't understand this condition: 'yml "WildBlock_type_%{_type}%" is not loaded' (WildBlock.sk, line 296: if yml "WildBlock_type_%{_type}%" is not loaded:')
> [08:37:39 ERROR]: [Skript] can't understand this condition: 'yml "WildBlock_blockData_%{_x}%_%{_y}%_%{_z}%_%{_world}%" is not loaded' (WildBlock.sk, line 315: if yml "WildBlock_blockData_%{_x}%_%{_y}%_%{_z}%_%{_world}%" is not loaded:')
> [08:37:39 INFO]: [WildBlock] 成功加载所有方块。
> [08:37:39 INFO]: [WildBlock] 定制Skript插件联系 QQ:1508179881
> [08:37:39 INFO]: [WildBlock] Skript交流群 590388354
> [08:37:39 INFO]: [Skript] Loaded 1 script with a total of 8 triggers and 1 command in 0.78 seconds
> [08:37:39 INFO]: [Skript] Finished loading.
報錯