可投掷TNT插件
版本: Paper/Spigot 1.21.5
作者: TomMustBe12
概述
本插件添加了一个有趣且混乱的新功能——可投掷TNT!玩家在手持TNT时右键点击即可投掷出已点燃的TNT投射物。在生存模式中,TNT会从玩家的物品栏中移除,并在经过一段可自定义的短暂引信时间后爆炸。
服务器管理员可以配置TNT的速度和引信时间,玩家也可以通过简单的命令来开启或关闭此功能。
功能特性
- 手持TNT时右键点击即可投掷TNT
- 适用于生存模式和创造模式,在生存模式下每次投掷消耗一个TNT
- 生成已点燃的TNT,并遵循真实的飞行轨迹
- 可配置的引信持续时间和速度倍率
- 通过
/tnttoggle 命令由OP控制开关,以便在不使用时禁用该功能
- 提供用于全局TNT设置的管理员命令
- 完整的权限控制,用于管理开关和管理员操作
- 配置文件确保设置重启后依然持久保存。
命令与权限
/tnttoggle
- 为执行命令的玩家切换可投掷TNT功能的开启/关闭状态
- 权限:
throwabletnt.toggle(默认:仅限OP)
/tntspeed <speed>
- 设置全局投掷TNT的速度倍率
- 示例:
/tntspeed 1.5
- 权限:
throwabletnt.admin(默认:仅限OP)
/tntfuse <ticks>
- 设置全局引信时间(单位:刻,20刻 = 1秒)
- 示例:
/tntfuse 40 将引信时间设置为2秒
- 权限:
throwabletnt.admin(默认:仅限OP)
/throwabletnt reload
- 重新加载插件的配置
- 权限:
throwabletnt.admin(默认:仅限OP)
权限摘要
| 权限 |
描述 |
默认状态 |
throwabletnt.toggle |
允许玩家切换可投掷TNT功能 |
仅限OP |
throwabletnt.admin |
允许配置引信/速度以及重载配置 |
仅限OP |
使用说明
- 确保你手中拿着TNT。
- 右键点击(空气或方块)以投掷TNT。
- 如果你处于生存模式,你的物品栏中将减少一个TNT。
- TNT会向前飞行,然后在设定的引信时间后爆炸。
- 使用
/tnttoggle 启用或禁用你自己的可投掷TNT功能。
示例
/tnttoggle # 为你启用或禁用可投掷TNT
/tntspeed 2.0 # 将投掷速度设置为正常速度的两倍
/tntfuse 60 # 将引信时间设置为3秒
/throwabletnt reload # 重载配置文件
Throwable TNT Plugin
Version: Paper/Spigot 1.21.5
Author: TomMustBe12
Overview
This plugin adds a fun and chaotic new feature - Throwable TNT! Players can right-click while holding TNT to throw a primed TNT projectile. TNT is removed from the player’s inventory in Survival mode and explodes after a customizable short fuse.
Server admins can configure the TNT speed and fuse time, and players can toggle the feature on or off with simple commands.
Features
- Throw TNT by right-clicking while holding TNT
- Works in survival and creative and consumes one TNT per throw in survival
- Primed TNT is spawned and follows a realistic trajectory
- Configurable fuse duration and velocity multiplier
- OP controlled toggle with
/tnttoggle for when not in use
- Admin commands for global TNT settings
- Full permission control for toggles and admin actions
- Config means settings are persistent across reboots.
Commands & Permissions
/tnttoggle
- Toggles throwable TNT on/off for the executing player
- Permission:
throwabletnt.toggle (default: OP only)
/tntspeed <speed>
- Sets the global speed multiplier for thrown TNT
- Example:
/tntspeed 1.5
- Permission:
throwabletnt.admin (default: OP only)
/tntfuse <ticks>
- Sets the global fuse time in ticks (20 ticks = 1 second)
- Example:
/tntfuse 40 sets a 2-second fuse
- Permission:
throwabletnt.admin (default: OP only)
/throwabletnt reload
- Reloads the plugin’s configuration
- Permission:
throwabletnt.admin (default: OP only)
Permissions Summary
| Permission |
Description |
Default |
throwabletnt.toggle |
Allows players to toggle throwable TNT |
OP only |
throwabletnt.admin |
Allows configuring fuse/speed and reloading |
OP only |
Usage Instructions
- Make sure you’re holding TNT in your hand.
- Right-click (air or block) to throw the TNT.
- If you’re in Survival mode, one TNT will be removed from your inventory.
- The TNT will fly forward, then explode after the set fuse time.
- Use
/tnttoggle to enable or disable your own throwable TNT usage.
Example
/tnttoggle # Enables or disables throwable TNT for you
/tntspeed 2.0 # Sets the throw speed to double the normal velocity
/tntfuse 60 # Sets fuse time to 3 seconds
/throwabletnt reload # Reloads config
评论 0
登录后参与评分
还没有评论,来抢沙发吧