这个插件是我在几天内制作完成的,它允许你向玻璃或生物投掷砖块,甚至可以向那些可能与你结怨的人投掷 ;D
该插件会自动集成 Lands 和 WorldGuard,使管理员和土地所有者能够防止他人用砖块破坏他们受保护的区域。
权限节点:
bricks.admin - 访问插件专用的管理命令,例如 /brickenable 和 /brickdisable,用于开启或关闭插件功能。
WorldGuard 相关内容:
检查所有相关区域中的 bricks-can-break-glass 标志。默认情况下(如果用户未定义),当前设置为 true。
Lands 相关内容:
如果相关地块中的 block-break 标志被禁用,则砖块不会在地块主张范围内打破玻璃。
配置相关内容:
可以在 ThrowableBricks/config.yml 下自定义多个值:
damageFromBrick: 实体被砖块击中时受到的伤害。
powerDamageMultiplier: 应用力量附魔时的伤害倍率。
defaultPickupDelay: 砖块需要多少刻才能再次被拾取。
minTicksLived: 砖块需要存活多少刻后才能对实体造成伤害。
checkDistance: 检查可造成伤害的实体的距离。
cooldown: 砖块再次被投掷前需要等待的时间。
damageMultipleEntitiesAtOnce: 是否允许砖块同时击中多个实体。
allowEnchantmentsOnThrowableItem: 是否允许为可投掷物品附魔力量或击退。
throwMaterial: 用作砖块的物品材质,默认为 BRICK。
throwSound: 投掷砖块时播放的声音。
smashSound: 砖块破碎时播放的声音。
breakableMaterials: 被砖块击中后会破碎的材质列表。
在我的 YouTube 频道上有演示:
This plugin that I made over a few days adds the ability for you to throw bricks at glass, or even mobs, and people that might have beef with you ;D
It automatically hooks into Lands and WorldGuard, allowing administrators and land owners to prevent people from messing their protected areas up with bricks.
Permission nodes:
bricks.admin - Access plugin admin-specific commands, such as /brickenable and /brickdisable to turn the functionality of the plugin on or off.
WorldGuard stuff:
Check the bricks-can-break-glass flag on all relevant regions, by default as of now it is set to true, if not defined by the user.
Lands stuff:
Bricks don't break glass in a land claim, if the block-break flag is disabled in the relevant lands.
Config stuff:
Several values can be customised under ThrowableBricks/config.yml
damageFromBrick: Damage when an entity is hit by a brick.
powerDamageMultiplier: The damage multiplier to apply with the Power enchantment.
defaultPickupDelay: How long in ticks until the brick can be picked up again.
minTicksLived: How many ticks need to pass before the brick can hurt entities.
checkDistance: The distance to check for any available entities to damage.
cooldown: How long until a brick can the thrown again.
damageMultipleEntitiesAtOnce: If bricks should hit multiple entities at once.
allowEnchantmentsOnThrowableItem: If bricks can be enchanted with Power, or Punch.
throwMaterial: The item material to use for the brick, by default of course, it's BRICK.
throwSound: The sound to play when the brick is thrown.
smashSound: The sound to play when the brick shatters.
breakableMaterials: A list of materials that the brick will break if they're hit with it.
Demonstrated on my YouTube channel:
评论 0
登录后参与评分
还没有评论,来抢沙发吧