CustomWings 自定义翅膀 [1.13 - 1.20.1] [开源] | |
---|---|
![]() |
为您的玩家创建自定义粒子翅膀! |
作 者 | Tigeax |
发布时间 | 2018年8月16日 |
支持核心 | Spigot | 原生版本 |
支持版本 | 1.13,1.14,1.15,1.16,1.17,1.18,1.19,1.20 |
插件详细介绍
CustomWings 是一款允许玩家在游戏中装备漂亮的粒子翅膀,向朋友炫耀的插件。它自带预设翅膀,但也允许你创建更多自定义翅膀,甚至可以制作动画翅膀。翅膀可以通过配置文件创建,CustomWings 还提供一个游戏内编辑器 GUI,允许你动态编辑翅膀设置。
/customwings (wings, cw, w) - 主命令,打开翅膀选择 GUI
permission: customwings.command
每个翅膀的权限: customwings.wing.WINGID
子命令:
setwing {playername} {wing ID} - 为指定玩家设置翅膀
permission: customwings.setwing
editor (edit, e) - 打开翅膀编辑器 GUI
permission: customwings.editor
preview (p) - 将当前装备的翅膀从玩家身上分离,使其漂浮在空中
permission: customwings.preview
reload (r) - 重新加载 CustomWings
permission: customwings.reload
takeawaywing {playername} {wing ID} - 从玩家那里移除他们之前购买的翅膀
permission: customwings.takeawaywings
以下是一个翅膀在配置中设置的示例。CustomWings 标准配置包含更多示例。
#-------------------------------------------------#
# CustomWings #
# Example config file #
#-------------------------------------------------#
# This is a commented example config file for a wing.
# All wing configs that you want to use have to be in the 'wings' folder.
# The config's file name is the wing's ID. Used in the permission or the setwing command.
# You can recreate this file and the default wings by deleting the wings folder and reloading the plugin.
# When making changes in the main config or a wing config, you can use the customwings reload command.
# Addiontally you can use the ingame editor menu to change the settings.
# When deleting wings or change the config file names, you will have to restart your server.
# If true the wing will be shown then the player is moving, otherwise it will stop spawning the wing particles when the player starts to move.
showWhenMoving: true
# The worlds where wing can be equipped. Use "all" for all worlds.
whitelistedWorlds:
- "all"
- "world" # Default overworld
- "world_nether" # Default nether
- "world_the_end" # Default end
# Requires vault. Allows players to buy the wings though the menu.
# Will automatically be disabled if vault is not found.
economy:
# Type of price to pay.
# "economy" - Default vault economy.
# "token" - TokenManager.
priceType: "economy"
# Price to pay to unlock the wings.
# -1 = cannot buy; 0 = free.
price: 10
# The item that will show up in menu's.
menuItem:
#If true the wing will not show up in the wing select menu. (Can still be equiped with the /wings setwing command)
hideInMenu: false
name: "&5Example Wing" # Also used in other places where the wing name is used.
material: DIRT
slot: 0
page: 1 # Has to be smaller or equal to the pages in the main config.
loreWhenEquipped:
- "&6You have the &5Example Wing &6equipped"
loreWhenUnequipped:
- "&3You do not have the &5Example Wing &3equipped"
loreWhenNoPermission:
- "&cYou do not own the &5Example Wing"
loreWhenCanBuy:
- "&eYou can buy this for ${PRICE}"
# The settings for the actual wing.
wing:
# The starting height of the wing, starting from the players feet. Can be negative
startVertical: -0.1
# Offset the wing to the left or right. Negative numbers are to the right
startHorizontalOffset: 0
# The starting distance from the player. Accepts negative numbers.
startDistanceToPlayer: 0.3
# The distance between each particle in the horizonal and vertical direction.
distanceBetweenParticles: 0.1
# The amount of game ticks between the spawing of the wing's particles.
timer: 2
# If true the wing will have a flapping animation.
flapAnimation: true
# The speed at which the wing should flap. (This is the degrees it moves everytime the wing's particles are spawned).
flapSpeed: 4
# The starting position of the wings in degrees. 0 = next to the player. 90 = behind the player.
startOffset: 30
# The stopping position of the wings in degrees. Only used when wingAnimation is enabled. 90 = behind the player. 0 = next to the player.
stopOffset: 70
# If true only the right side of the wing will be spawed. Usefully for text or pixelart that can't be mirrored. It won't be able to have a flapping animiation.
onlyOneSide: false
# The grid layout of the wing. Use an '-' to not spawn a particle. Any other character must have a maching on under 'particles'.
# You only need to make the right side of the wing, it will be duplicated to the other side
particleLayout:
1: "-,-,-,-,x,x,x,-,-,-"
2: "-,-,-,x,x,x,x,x,-,-"
3: "-,-,x,x,x,x,x,x,x,-"
4: "-,x,x,x,x,x,x,x,x,-"
5: "x,x,x,x,x,x,x,x,x,x"
6: "x,x,x,x,x,x,x,x,x,x"
7: "x,x,x,x,x,x,x,x,x,x"
8: "x,x,x,x,x,x,x,x,x,x"
9: "-,-,x,x,x,x,x,x,x,x"
10: "-,-,-,x,x,x,x,x,x,x"
11: "-,-,-,x,x,x,x,x,x,x"
12: "-,-,-,-,x,x,x,x,x,x"
13: "-,-,-,-,x,x,x,x,x,x"
14: "-,-,-,-,-,x,x,x,x,-"
15: "-,-,-,-,-,x,x,x,x,-"
16: "-,-,-,-,-,-,x,x,x,-"
17: "-,-,-,-,-,-,x,x,x,-"
18: "-,-,-,-,-,-,-,x,x,-"
19: "-,-,-,-,-,-,-,-,x,-"
# The different particles that can be used in the particleLayout.
particles:
# The ID of the particle used as a character in the particleLayout.
x:
# The name of the particle that you want to use. All minecraft particles can be found here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Particle.html.
# Note that not all particles might be available in your minecraft version. If an invalid particle is given, a Barrier particle will be used instead.
particle: "CRIT_MAGIC"
# Some particles, like FIREWORKS_SPARK or FLAME, can have directional moving settings.
# "distance" is the horizontal distance the particle will move from it's original location in the direction of the angle
# "height" is the vertical distance the particle will move from it's original location
# "angle" is the angle at with the particle will fly towards. 0 is parallel to the wing, -90 is to the back of the wing.
# "speed" is the velocity the particle will have
# Note that each type of particle will only stay 'alive' for a certain amount of time. This cannot be changed.
# So you will have to balance distance, height and speed to get the particle to end up where you want it to.
distance: 0
height: 0
angle: 0
speed: 0
# Redstone, Spell_mob and Spell_mob_ambient can have a color value. This is given in HEX format writting as 0xRRGGBB e.a 0xFF00FF. Or as an RGB int.
color: 0xFFFFFF
# A note particle can also have a color. But it works a bit differently. Minecraft has 24 values for a note's color.
# So you can enter a value from 1-24 here.
noteColor: 6
# ITEM_CRACK, BLOCK_CRACK, BLOCK_DUST and FALLING_DUST require a material to work correctly.
blockType: DIRT