Vanish
安装方法
- 从 GitHub、Modrinth 或 CurseForge 下载
.jar 文件
- 将文件放入
mods 文件夹中
- 重启服务器!
功能
- 你完全不可见且无法被检测
- 不会显示容器(箱子、 barrels、末影箱和潜影盒)的打开/关闭动画
- 你不会产生声音(放置、破坏、行走、使用物品等...)
- 你已从命令选择器中移除(
/msg、/gamemode...)
- 你已从
/list 命令列表中移除
- 你不会出现在服务器列表的玩家预览和玩家计数中
- 你不会阻碍方块放置
- 你的进度更新、死亡信息、加入/离开消息等已被隐藏
- 在隐身/解除隐身的时会发送假的加入/离开消息
- 对实体隐藏
- 支持 Bluemap
- 支持 Dynmap
- 支持 Squaremap
- 隐藏睡眠状态
- 将已隐身的玩家排除在玩家计数之外
- 阻止方块交互(压力板、垂滴叶、绊线、耕地、红石矿石、幽匿传感器/幽匿尖啸体以及海龟蛋)
- 阻止玩家产生的振动(幽匿传感器/幽匿尖啸体和监守者)
- 阻止生物生成
- 阻止区块加载 / 生成
- 阻止实体碰撞
- 阻止拾取实体掉落物(箭矢、经验球、物品和三叉戟)
- 阻止特殊生物生成(刷怪笼、骷髅陷阱、僵尸增援、袭击、幻翼)
- 阻止横扫之刃攻击玩家
- 阻止发射器装备盔甲
- 阻止试炼刷怪笼检测
- 阻止宝库检测
- 隐藏可追踪的实体(箭矢、烟花火箭、钓鱼竿...)
- 隐藏玩家信标点 (1.21.6+)
配置
配置文件位于 ./config/vanish.hocon。使用 /vanish reload 重新加载它。
# 在行动栏中显示隐身状态
action-bar=true
# 阻止已隐身的玩家使用聊天
disable-chat=true
# 阻止已隐身的玩家使用 /msg
disable-msg=true
# 对实体隐藏已隐身的玩家,阻止敌对实体锁定玩家,以及更多
hide-from-entities=true
# 阻止已隐身玩家的世界交互
interaction {
# 阻止推进进度
advancement-progress=false
# 阻止方块交互(压力板、垂滴叶、绊线、耕地、红石矿石、幽匿传感器/幽匿尖啸体以及海龟蛋)
blocks=true
# 阻止区块加载 / 生成
chunk-loading=false
# 阻止实体碰撞
entity-collisions=true
# 阻止拾取实体掉落物(箭矢、经验球、物品和三叉戟)
entity-pickup=true
# 阻止生物生成
mob-spawning=true
# 阻止玩家产生的振动
vibrations=true
}
# 当为已隐身玩家使用占位符 vanish:vanished 时显示的文本
place-holder-display=" <gray>☠"
命令
/vanish - 切换隐身状态
/vanish reload - 重新加载配置文件
/vanish on <players> - 对其他玩家启用隐身
/vanish off <players> - 对其他玩家禁用隐身
你需要是管理员或拥有以下权限才能使用此模组
vanish.command.vanish - 访问 /vanish 命令
vanish.command.vanish.reload - 使用 /vanish reload 重新加载配置
vanish.command.vanish.other - 设置他人的隐身状态
vanish.feature.view - 查看隐身玩家
vanish_on_join:true - 始终以隐身状态加入
vanish:vanished - 如果玩家处于隐身状态,则显示文本(可通过配置自定义)
vanish:online - 查看该占位符的玩家能看到的玩家数量
开发者
在你的 build.gradle 中添加 Modrinth Maven 仓库。
repositories {
// 那里可能还有其他仓库,只需将其添加到末尾即可
maven { url "https://api.modrinth.com/maven" }
}
将 Vanish 声明为可选依赖项!
dependencies {
// 这里也会有其他依赖项
modCompileOnly "maven.modrinth:vanish:[VERSION]"
}
在使用 API 之前,你需要确保模组确实已加载,通过检查 FabricLoader.getInstance().isModLoaded("melius-vanish");。
如果模组存在,你可以使用 VanishAPI 和 VanishEvents 来集成你自己的模组。
数据包
数据包可以使用实体谓词,例如 vanish:visible
来检查实体是否处于隐身状态。你应该将此谓词添加到你的数据包中,并使用它来检查玩家
是否能被其他玩家看到(考虑到隐身状态)。它的設計是在未安装隐身模组时返回 true,
以保持与原版兼容。
Vanish
How to Install
- Download the
.jar file from GitHub, Modrinth or CurseForge
- Drop the file into your
mods folder
- Restart your server!
Features
- You are completely invisible and undetectable
- No open/close container (chests, barrels, ender chests, and shulker boxes) animations
- You don't make noise (placing, breaking, walking, using items...)
- You are removed from command selectors (
/msg, /gamemode...)
- You get removed from
/list command
- You don't appear in the server list player sample and player count
- You don't obstruct block placement
- Your advancement, death, join/leave messages, and others are hidden
- Fake join/leave messages are sent on vanish/un-vanish
- Hide from entities
- Bluemap support
- Dynmap support
- Squaremap support
- Hide sleep status
- Exclude vanished players from player count
- Prevents block interactions (pressure plates, dripleaf, tripwire, farmland, redstone ore, sculk sensor/shrieker and turtle egg)
- Prevents player vibrations (sculk sensor/shrieker and warden)
- Prevents mob spawning
- Prevents chunk loading / generation
- Prevents entity collisions
- Prevents entity pickups (arrows, experience orbs, items and tridents)
- Prevents special mob spawning (spawners, skeleton traps, zombie reinforcements, raids, phantoms)
- Prevents sweeping edge attacking players
- Prevents dispensers equipping armor
- Prevents trial spawner detection
- Prevents vault detection
- Hide traceable entities (arrows, firework rockets, fishing rod...)
- Hide player waypoints (1.21.6+)
Config
The config file is located at ./config/vanish.hocon. Use /vanish reload to reload it.
# Show vanish status in the action bar
action-bar=true
# Prevents vanished players from using chat
disable-chat=true
# Prevents vanished players from using /msg
disable-msg=true
# Hide vanished players from entities, prevents hostile entities from targeting players, and more
hide-from-entities=true
# Prevent vanished player world interactions
interaction {
# Prevent progressing advancements
advancement-progress=false
# Prevent block interactions (pressure plates, dripleaf, tripwire, farmland, redstone ore, sculk sensor/shrieker and turtle egg
blocks=true
# Prevent chunk loading / generation
chunk-loading=false
# Prevent entity collisions
entity-collisions=true
# Prevent entity pickups (arrows, experience orbs, items and tridents)
entity-pickup=true
# Prevent mob spawning
mob-spawning=true
# Prevent player vibrations
vibrations=true
}
# Text to be displayed when placeholder vanish:vanished is used for a vanished player
place-holder-display=" <gray>☠"
Commands
/vanish - Toggle vanish
/vanish reload - Reload config file
/vanish on <players> - Enable vanish for other players
/vanish off <players> - Disable vanish for other players
You need to be an operator or have these permissions to be able to use the mod
vanish.command.vanish - Access to /vanish command
vanish.command.vanish.reload - Use /vanish reload to reload the config
vanish.command.vanish.other - Set the vanish-status of others
vanish.feature.view - See vanished player
vanish_on_join:true - Always join vanished
vanish:vanished - Displays a text (configurable via config) if a player is vanished
vanish:online - The number of players that the player viewing the placeholder can see
Developers
Add the modrinth maven repository to your build.gradle.
repositories {
// There might be other repos there too, just add it at the end
maven { url "https://api.modrinth.com/maven" }
}
Declare vanish as an optional dependency!
dependencies {
// You will have other dependencies here too
modCompileOnly "maven.modrinth:vanish:[VERSION]"
}
Before using the API you need to make sure the mod is actually loaded, by checking FabricLoader.getInstance().isModLoaded("melius-vanish");.
If the mod is present you can use VanishAPI and VanishEvents to integrate your own mods.
Datapacks
Datapacks can use an entity predicate like vanish:visible
to check if an entity is vanished. You should add this predicate to your datapack and use it to check whether a player
can be seen by other players (in respect to vanish). It is designed to return true when the vanish mod is not installed
to stay compatible with vanilla.
评论 0
登录后参与评分
还没有评论,来抢沙发吧