多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
### 简介 本插件可以实现宝可梦皮肤,预览购买搜索等一系列功能,支持皮肤一键导入,皮肤预览采用发包完成,可以让不同的玩家看到不同的宝可梦皮肤,对资源占用小,简单又好用 ### 指令 ``` /poketexture open 打开皮肤管理界面 /poketexture serch 搜索皮肤 /poketexture give <玩家名称> <类型> <类型名称> <数量> - 给玩家指定类型的卡 /poketexture set <玩家名称> <宝可梦位置> <材质名称> 设置玩家指定位置宝可梦皮肤 /poketexture remove <玩家名称> <宝可梦位置> 移除玩家指定位置宝可梦皮肤 /poketexture reload 重载配置文件 ``` ### 权限 ``` poketexture.command poketexture.admin.reload poketexture.admin.give poketexture.admin.set poketexture.admin.remove poketexture.admin.list poketexture.command.open poketexture.command.serch ``` ### Config.yml配置文件 *** ```yaml #================================================================ #部分变量说明: #{page} ui界面的当前页 {total_page} ui界面总共页数 #{texture} 自定义材质名称 {pokemon} 宝可梦本地名称 #{form} 宝可梦形态本地名称 #{price} 价格 {currency} 货币名称 #{localized_name} 宝可梦本地信息,调用的是texture.yml的本地名称字段 #{permission} 宝可梦皮肤的完整权限 #{player} 执行操作的玩家 #变量不一定在每个界面都起作用,具体自己测试 #================================================================ config_version: 1.1 #插件配置文件版本,不要改动 texture_write: false #是否启用配置文件自动写入,需要将皮肤文件放在插件配置文件里面 key: 'B4FA2E23F05AE82B173DB87BD10B1104' #激活密钥 buy_state: true #是否启用购买功能,此功能控制所有的购买行为(包括购买权限) edit_state: true #是否启用修改功能, 此功能控制所有的修改行为(包括权限修改) skin_card_state: false #是否启用皮肤卡功能 pokemon_card_state: false #是否启用宝可梦卡功能 #是否启用皮肤权限系统,启用此系统,所有修改类和购买类功能将自动关闭,替换为权限系统,有权限可以无限制的使用权限允许的皮肤 #启用此项目请将skin_card_state,pokemon_card_state设置为false custom_texture_permission: true #预览价格及其货币 preview_price: 0 preview_currency: 'Vault' #菜单设置 main_chest: title: '&2QQ群:661454654宝可梦皮肤大全 {page}/{total_page}' layout: [ 'D','D','D','D','D','D','D','D','D', 'D','A','A','A','A','A','A','A','D', 'D','A','A','A','A','A','A','A','D', 'D','A','A','A','A','A','A','A','D', 'D','D','D','D','D','D','D','D','D', 'E','P','E','E','F','E','E','N','E' ] D: type: 'minecraft:stained_glass_pane' amount: 1 data: 12 display_name: ' ' lore: [ ] P: type: 'minecraft:arrow' amount: 1 data: 0 display_name: '&7上一页' lore: [ ] N: type: 'minecraft:arrow' amount: 1 data: 0 display_name: '&7下一页' lore: [ ] F: type: 'minecraft:ender_pearl' amount: 1 data: 0 display_name: '&7返回' lore: [ ] custom_texture_chest: title: '&2请选择宝可梦 {page}/{total_page}' name: '&7{texture}&b{pokemon}' lore: - '&2左键预览 &4右键购买' layout: [ 'D','D','D','D','D','D','D','D','D', 'D','A','A','A','A','A','A','A','D', 'D','A','A','A','A','A','A','A','D', 'D','A','A','A','A','A','A','A','D', 'D','D','D','D','D','D','D','D','D', 'E','P','E','E','F','E','E','N','E' ] D: type: 'minecraft:stained_glass_pane' amount: 1 data: 12 display_name: ' ' lore: [ ] P: type: 'minecraft:arrow' amount: 1 data: 0 display_name: '&7上一页' lore: [ ] N: type: 'minecraft:arrow' amount: 1 data: 0 display_name: '&7下一页' lore: [ ] F: type: 'minecraft:ender_pearl' amount: 1 data: 0 display_name: '&7返回' lore: [ ] form_chest: title: '&2请选择宝可梦的形态 {page}/{total_page}' name: '&7{texture}&b{pokemon}&a{form}' lore: - '&2预览价格: {price} {currency}' - '&5皮肤: {localized_name}' layout: [ 'D','D','D','D','D','D','D','D','D', 'D','A','A','A','A','A','A','A','D', 'D','A','A','A','A','A','A','A','D', 'D','D','D','D','D','D','D','D','D', 'E','P','E','E','F','E','E','N','E' ] D: type: 'minecraft:stained_glass_pane' amount: 1 data: 12 display_name: ' ' lore: [ ] P: type: 'minecraft:arrow' amount: 1 data: 0 display_name: '&7上一页' lore: [ ] N: type: 'minecraft:arrow' amount: 1 data: 0 display_name: '&7下一页' lore: [ ] F: type: 'minecraft:ender_pearl' amount: 1 data: 0 display_name: '&7关闭' lore: [ ] party_chest: title: '&2请选择宝可梦' name: '&b{pokemon}' lore: - '&2点击选择' layout: [ 'D','D','D','D','D','D','D','D','D', 'D','A','A','A','D','A','A','A','D', 'D','D','D','D','F','D','D','D','D' ] D: type: 'minecraft:stained_glass_pane' amount: 1 data: 12 display_name: ' ' lore: [ ] F: type: 'minecraft:ender_pearl' amount: 1 data: 0 display_name: '&7返回' lore: [ ] edit_chest: title: '&2点击宝可梦执行 {page}/{total_page}' name: '&7{texture}&b{pokemon}' lore: - '&2左键预览 &4右键修改' layout: [ 'D','D','D','D','D','D','D','D','D', 'D','A','A','A','A','A','A','A','D', 'D','D','D','D','D','D','D','D','D', 'E','P','E','E','F','E','E','N','E' ] D: type: 'minecraft:stained_glass_pane' amount: 1 data: 12 display_name: ' ' lore: [ ] P: type: 'minecraft:arrow' amount: 1 data: 0 display_name: '&7上一页' lore: [ ] N: type: 'minecraft:arrow' amount: 1 data: 0 display_name: '&7下一页' lore: [ ] F: type: 'minecraft:ender_pearl' amount: 1 data: 0 display_name: '&7返回' lore: [ ] buy_permission_confirm_chest: title: '&2确认购买' name: '&7购买: {texture}&b{pokemon} 的权限' lore: - '&2权限购买价格: {price} {currency}' - '&7权限: {permission}' command: - 'lp user {player} permission set {permission} true' layout: [ 'D','D','D','D','D','D','D','D','D', 'D','E','E','E','D','E','E','E','D', 'D','E','A','E','D','E','C','E','D', 'D','E','E','E','D','E','E','E','D', 'D','D','D','D','F','D','D','D','D' ] D: type: 'minecraft:stained_glass_pane' amount: 1 data: 12 display_name: ' ' lore: [ ] C: type: 'minecraft:emerald' amount: 1 data: 12 display_name: '&d确认' lore: [ ] F: type: 'minecraft:ender_pearl' amount: 1 data: 0 display_name: '&7取消' lore: [ ] buy_confirm_chest: title: '&2确认购买' name: '&7购买: {texture}&b{pokemon} 精灵' lore: - '&2精灵购买价格: {price} {currency}' layout: [ 'D','D','D','D','D','D','D','D','D', 'D','E','E','E','D','E','E','E','D', 'D','E','A','E','D','E','C','E','D', 'D','E','E','E','D','E','E','E','D', 'D','D','D','D','F','D','D','D','D' ] D: type: 'minecraft:stained_glass_pane' amount: 1 data: 12 display_name: ' ' lore: [ ] C: type: 'minecraft:emerald' amount: 1 data: 12 display_name: '&d确认' lore: [ ] F: type: 'minecraft:ender_pearl' amount: 1 data: 0 display_name: '&7取消' lore: [ ] edit_confirm_chest: title: '&2确认修改' name: '&7{texture}&b{pokemon}' lore: - '&2精灵修改价格: {price} {currency}' layout: [ 'D','D','D','D','D','D','D','D','D', 'D','E','E','E','D','E','E','E','D', 'D','E','A','E','D','E','C','E','D', 'D','E','E','E','D','E','E','E','D', 'D','D','D','D','F','D','D','D','D' ] D: type: 'minecraft:stained_glass_pane' amount: 1 data: 12 display_name: ' ' lore: [ ] C: type: 'minecraft:emerald' amount: 1 data: 12 display_name: '&d确认' lore: [ ] F: type: 'minecraft:ender_pearl' amount: 1 data: 0 display_name: '&7取消' lore: [ ] search_chest: title: '&2点击宝可梦执行 {page}/{total_page}' name: '&7{texture}&b{pokemon}' lore: - '&2左键预览 &4右键购买' layout: [ 'D','D','D','D','D','D','D','D','D', 'D','A','A','A','A','A','A','A','D', 'D','D','D','D','D','D','D','D','D', 'E','P','E','E','F','E','E','N','E' ] D: type: 'minecraft:stained_glass_pane' amount: 1 data: 12 display_name: ' ' lore: [ ] P: type: 'minecraft:arrow' amount: 1 data: 0 display_name: '&7上一页' lore: [ ] N: type: 'minecraft:arrow' amount: 1 data: 0 display_name: '&7下一页' lore: [ ] F: type: 'minecraft:ender_pearl' amount: 1 data: 0 display_name: '&7关闭' lore: [ ] texture_card_chest: title: '&2点击宝可梦执行' name: '&7{texture}&b{pokemon}' lore: - '&2左键预览 &4右键应用' layout: [ 'D','D','D','D','D','D','D','D','D', 'D','A','A','A','D','A','A','A','D', 'D','D','D','D','D','D','D','D','D' ] D: type: 'minecraft:stained_glass_pane' amount: 1 data: 12 display_name: ' ' lore: [ ] F: type: 'minecraft:ender_pearl' amount: 1 data: 0 display_name: '&7关闭' lore: [ ] poke_card_chest: title: '&2点击宝可梦执行 {page}/{total_page}' name: '&7{texture}&b{pokemon}' lore: - '&2左键预览 &4右键应用' layout: [ 'D','D','D','D','D','D','D','D','D', 'D','A','A','A','A','A','A','A','D', 'D','D','D','D','D','D','D','D','D' ] D: type: 'minecraft:stained_glass_pane' amount: 1 data: 12 display_name: ' ' lore: [ ] P: type: 'minecraft:arrow' amount: 1 data: 0 display_name: '&7上一页' lore: [ ] N: type: 'minecraft:arrow' amount: 1 data: 0 display_name: '&7下一页' lore: [ ] F: type: 'minecraft:ender_pearl' amount: 1 data: 0 display_name: '&7返回' lore: [ ] currency_message: Vault: '§e金币' PlayerPoints: '§2点券' NyEconomy: '§6积分' preview_message: title: '§2正在预览宝可梦皮肤' subtitle: '§d注意查看面前的雕像' message: preview_no_money: '§4你的{currency}不足,预览需要{price}{currency}' buy_no_money: '§4你的{currency}不足,购买{pokemon}需要{price}{currency}' edit_no_money: '§4你的{currency}不足,修改{pokemon}需要{price}{currency}' has_permission: '§4你已经有这个权限了!' buy_success: '§2你成功购买了{pokemon}' edit_success: '§2你成功修改了{pokemon}的皮肤' no_buy: '§4{pokemon}不支持购买' no_edit: '§4{pokemon}不支持修改此皮肤' #皮肤卡,背包精灵可以设置为此皮肤时候才能使用 一次性 texture_card: type: 'minecraft:paper' amount: 1 data: 0 display_name: '&2皮肤卡' lore: - '&8-----------------' - '&7皮肤&8: &6{texture}' - '&7右键使用' - '&7本皮肤卡为一次性物品' - '&8-----------------' #精灵皮肤卡,背包有此精灵才能使用 一次性 pokemon_card: type: 'minecraft:paper' amount: 1 data: 0 display_name: '&2精灵皮肤卡' lore: - '&8-----------------' - '&7精灵&8: &6{pokemon}' - '&7右键使用' - '&7本皮肤卡为一次性物品' - '&8-----------------' #对话设置部分 action类型有 openMainChest, openPartyChest, command, close statue: name: '宝可梦皮肤' text: '§f§l新鲜出炉的皮肤,你要看看吗?' choice: 1: text: '§2预览或购买服务器全部皮肤' action: 'openMainChest' state: true 2: text: '§a预览或购买队伍精灵皮肤' action: 'openPartyChest' state: true 3: text: '§2执行指令测试' action: 'command' state: false command: - 'say 现在支持运行指令了' - 'say {player} 运行了指令' 4: text: '§4关闭' action: 'close' state: true ``` ### texture.yml配置文件 #### 1. 皮肤材质 *** ``` yaml #=============================================================================================================================== #设置教程 设置教程 设置教程 设置教程 设置教程 设置教程 设置教程 设置教程 设置教程 设置教程 设置教程 设置教程 设置教程 设置教程 #=============================================================================================================================== # //皮肤文件夹名称 # derp: # //皮肤自定义名称 # customname: '§d梵' # //皮肤权限 # permission: 'poketexture.customtextures.derp' # //皮肤ui界面图标 # item: # //材质类型 # type: pixelmon:pixelmon_sprite # //材质数量 # amount: 1 # //材质子id # data: 0 # //显示名称 # display_name: '§d梵' # //描述 # lore: # - §7点击查看此皮肤 # - §7可以应用的全部宝可梦 # //此物品的nbt属性 # nbt: # nbt1: # //nbt类型 支持的类型有String,Integer,Long,Float,Byte,Short,Boolean,ByteArray,Double,IntArray,UniqueId # type: Integer # //nbt名称 # key: ndex # //nbt值 # value: 145 # nbt2: # type: 'String' # key: 'CustomTexture' # value: 'derp' # nbt3: # type: 'Byte' # key: 'form' # value: 2 # pokes: 此皮肤可以应用的宝可梦 # zapdos: 宝可梦名称 # //支持原版Pokémon spec所有属性,点击:https://pixelmonmod.com/wiki/Pokemon_spec # //比如(pokespec: 'ivhp:31 ivatk:31 ivdef:31 ivspatk:31 ivspdef:31 ivspd:31 unbreedable untradeable'(6v 不能繁殖 不能交易)) # //宝可梦属性(form:2 customtexture:derp)是必须的用于应用皮肤 # pokespec: 'form:2 customtexture:derp ivhp:31 ivatk:31 ivdef:31 ivspatk:31 ivspdef:31 ivspd:31 ivspe:31' # //宝可梦商店价格; 格式: 出售货币:出售价格:修改货币:修改价格 支持的货币Vault,PlayerPoints,NyEconomy # shop: 'PlayerPoints:500:vault:0' # //宝可梦本地名称,应用在修改或购买的宝可梦昵称上面 # local_name: '§b梵闪电鸟' #=============================================================================================================================== #设置教程 设置教程 设置教程 设置教程 设置教程 设置教程 设置教程 设置教程 设置教程 设置教程 设置教程 设置教程 设置教程 设置教程 #=============================================================================================================================== ``` ### 插件预览图片 ![皮肤插件菜单](https://image.mc9y.com/2022/04/10/e77e7a443b4a0.png "插件预览图片") ![精灵皮肤大全](https://image.mc9y.com/2022/04/10/36312587f82d2.png "插件预览图片") ![修改队伍精灵皮肤](https://image.mc9y.com/2022/04/10/646cfd9c93ba8.png "插件预览图片") ![精灵皮肤搜索](https://image.mc9y.com/2022/04/10/417fdc191b8f9.png "插件预览图片") ![苍响](https://image.mc9y.com/2022/04/10/a168d3d4813b0.png "插件预览图片") > 更新日志 > 更新内容: 1.5.0 重置更新日志 重置配置文件(老版本需要重新生成配置文件) 新加皮肤文件配置自动写入功能 新加皮肤权限卡功能(有权限就可以无限制切换皮肤) 新加宝可梦卡功能 经典雕像预览又回来了,与发包共存 添加购买,修改确认界面 ui界面物品支持完整的nbt功能 主界面加入新的action,可运行任意指令 tip: 更新的时候务必删除原来的config.yml文件