Cube Genetics 是一款适用于 Bukkit 服务器的实时 NBT 编辑插件。它允许你直接从聊天界面加载实体、方块实体(如信标、箱子、告示牌、刷怪笼)以及玩家(包括在线和离线)的 NBT 结构数据。由于它结合使用聊天菜单与 Bukkit 的对话 API,因此无需客户端模组。将插件安装到你的服务器后,所有拥有权限(默认为 OP)的玩家都可以开始使用它来加载并编辑周围环境的 NBT 数据。
要进入 NBT 编辑模式,用户需运行 /NBT 命令。此时,与你交互的对象的数据将显示在你的聊天窗口中。由于使用了 Bukkit 对话 API,没有其他额外的命令;相反,插件会直接处理你的聊天输入。这最小化了与其他插件的命令冲突,并使交互更加顺畅。你可以使用 'prev' 和 'next' 关键字在结果页之间移动,使用 'cd' 更改目录,使用 'up' 向上移动一级文件夹。你可以在当前文件夹内创建新标签,例如 'newstring Name Awesome Sword',或者编辑现有标签,例如 'edit Name Awesomer Sword'。完成 NBT 标签编辑后,使用 'save' 关键字将标签保存回其所属对象,使用 'exit' 或 'done' 退出编辑模式并返回普通聊天状态。
以下是你可以使用 Cube Genetics 完成的一些示例:
- 自定义物品名称和描述
- 对不可附魔的物品进行离谱等级的附魔
- 无限分配的发射器(将数量设置为 -1)
- 自定义玩家头颅
- 编辑村民交易
- 复制物品
- 编辑已书写书
- 自定义药水效果(包括原版通常无法获得的效果)
- 更换画作
- 彩色和格式化文本,包括特殊字符(物品、告示牌、书籍、命令方块)
- 编辑玩家数据(行走速度、飞行速度、背包)
- 将方块用作头盔
- 编辑生物属性(生命值、攻击时间、药水效果、装备、防止消失等)
- 为你的生物创建自定义刷怪笼(玩家距离、附近最大实体数、生成速率)
- 给自己一些饼干!(虽然你可能本来就能做到这一点,但我们不要因为这而削弱了更多饼干的伟大之处)
有关你可以随意摆弄的完整 NBT 标签列表,请查看 Minecraft Wiki 这里 和 这里。
这个插件最棒的部分在于它是实时操作的,无需下载 .dat 文件,在 MCEdit 或 INVEdit 等独立程序中编辑它们,重新上传到服务器并重启。它也不依赖于任何其他修改或对游戏代码的黑客操作。所有这些功能都内置于 Minecraft 中,即使你卸载该插件,这些功能仍然会继续有效。
如果你之前使用过库存编辑器或 SethBling 的 MCEdit 过滤器,并希望能在你的 Bukkit 服务器上实时执行相同操作,那么这款插件就是为你准备的。
安装方法
1. 在向你的首选 Mojang 神明献上适当的祭品后,将 jar 文件放入服务器的 plugin 文件夹中。
2. 在服务器重启时想一个机智的评论。
完成!
注意:Cube Genetics 兼容 CraftBukkit 1.4.4 及以上版本。
命令
在服务器眼中只有一个真正的命令,并且只有一个对应的权限节点:CubeGenetics.NBT。NBT 命令会将你置于编辑模式,随后允许你在聊天中输入其余的关键字命令。
请注意,命令和目录名称不区分大小写,但标签名称和值区分大小写。Mojang 随意地大写了标签名称,因此在你习惯之前,可能需要打开上面的 Wiki 链接作为参考。
此外,如果标签位于列表中而不是复合结构中,则不一定需要名称,因此这些命令将在适用情况下仅使用值创建新标签。可选参数用 {花括号} 表示。如果你在编辑或删除列表中的标签,请使用标签的数字代替其名称。
help - 顾名思义,提供帮助信息
cd [目录名称] - 切换到指定的目录。你可以一次性输入多个子目录,而不必多次运行命令,例如:"cd inventory 0 tag display" 会将你带到 /Inventory/0/tag/display。
up {层级} - 向上移动一级。你可以添加一个数字来指定向上移动的层级数,而不必多次运行命令。
next - 如果有下一页,则显示数据的下一页。
prev/previous - 显示数据的上一页。
player [玩家名称] 或 player me - 加载玩家的 NBT 数据。
edit [名称] [值] - 编辑现有标签的值。
rename [名称] [新名称] - 将标签重命名为你指定的名称。注意,这在列表中无效,因为列表使用数字而非名称。
remove [名称] - 删除一个标签。
copy {名称} - 复制一个标签,如果未指定名称,则复制当前目录。
paste - 将复制的标签粘贴到当前目录中
merge - 将复制标签的内容粘贴到当前目录中(当你复制根目录时非常有用)
newcompound {名称} - 创建一个新的复合标签。
newlist {名称} - 创建一个新的列表。
newstring {name} [value] - 创建一个新的字符串。若要使用格式化代码,请将节符号(§)替换为与符号(&)。如果在列表中创建未命名字符串,请将名称设为 null。(这是因为字符串中可能包含空格,导致插件无法判断第一个词是字符串的名称还是值的首个单词。)
newint {name} [value] - 创建一个新的整数标签。
newbyte {name} [value] - 创建一个新的字节标签。
newshort {name} [value] - 创建一个新的短整型标签。
newdouble {name} [value] - 创建一个新的双精度浮点数标签。
newlong {name} [value] - 创建一个新的长整型标签。
newfloat {name} [value] - 创建一个新的单精度浮点数标签。
newintarray {名称} [值1],[值2],[值3],等等 - 创建一个新的整型数组标签。请注意,值之间以逗号分隔,且不需要使用方括号。
newbytearray {名称} [值1],[值2],[值3],等等 - 创建一个新的字节数组标签。与上述相同。
save - 将标签数据保存回其来源的对象中。
macro define [名称] {参数1} ... {参数N} - 创建一个名为指定名称并带有传入参数的新宏。输入要包含在宏中的命令后,create 会保存该宏并使其可用。更多信息,请参阅宏页面。
exit/done- 退出编辑模式并返回普通聊天。
Cube Genetics is a live NBT editing plugin for Bukkit servers. It lets you load the NBT structures of entities, tile entities (such as beacons, chests, signs, mobspawners), and players (both online and offline) right from the chat interface. Since it uses the chat menu along with Bukkit's conversations API, there's no client mod needed. Once the plugin is installed to your server, all players with permission (defaults to OP) can start using it to load and edit the NBT data of their surroundings.
To enter NBT editing mode, the user runs the /NBT command. Now the NBT data of objects you interact with will show up in your chat window. Since it uses the Bukkit conversations API, there are no other commands; rather, the plugin operates on your chat input. This minimizes conflicting commands with other plugins and makes interaction smoother. You can use the 'prev' and 'next' keywords to move through the results pages, 'cd' to change directory, and 'up' to move up a folder. You can create a new tag within the current folder, for instance 'newstring Name Awesome Sword', or you can edit a current tag, 'edit Name Awesomer Sword'. Once you're done editing the NBT tags, the 'save' keyword saves the tags back to the object they belong to, and 'exit' or 'done' takes you out of edit mode and back to regular chat.
Here's some examples of things you can do with Cube Genetics:
- Custom item names and lore
- Enchant un-enchantable items to ridiculous levels
- Infinite dispensers (set quantity to -1)
- Custom player heads
- Editing villager offers
- Duplicate items
- Editing written books
- Custom potion effects (including effects not usually attainable in vanilla)
- Change paintings
- Colored and formatted text, including magic characters (Items, signs, books, command blocks)
- Edit player data (Walking speed, flight speed, inventory)
- Use blocks as helmets
- Edit mob attributes (Health, attack time, potion effects, equipment, prevent despawning etc.)
- Create custom spawners for your mobs (Player distance, maximum nearby entities, spawn rate)
- Give yourself cookies! (Well you could probably already do this but let's not allow that to detract from the greatness of more cookies)
For a full list of NBT tags you can tinker with, check the minecraft wiki here and here.
The best part about this plugin is it does it all live with no need to download .dat files, edit them in a standalone program like MCEdit or INVEdit, reupload them to the server and restart. It also doesn't rely on any other modifications or hacks of the game code. All this functionality is built into minecraft and would continue to work even if you were to uninstall the plugin.
If you've used inventory editors or SethBling's MCEdit filters before and wished you could do the same in real time on your bukkit server, this is the plugin for you.
Installation
1. After making a proper sacrifice to your preferred Mojang god, drop the jar into your server's plugin folder.
2. Think of a witty comment while the server restarts.
Done!
Note: Cube Genetics is compatible with CraftBukkit 1.4.4 and up.
Commands
There's only one real command in the eyes of the server, and only one permission node to go along with it: CubeGenetics.NBT. The NBT command puts you into edit mode which then allows for the rest of the keyword commands to be typed into chat.
Note that commands and directory names aren't case sensitive but tag names and values are. Mojang decided to arbitrarily capitalize tag names so you'll probably need the wiki links above open as a reference until you get used to it.
Also, names aren't necessarily required for a tag if it's in a list instead of a compound, so these commands will create new tags with just a value if applicable. Optional parameters are denoted with {curly braces}. If you're editing or removing a tag in a list, use the tag's number in place of its name.
help - does what is says on the tin
cd [directory name] - changes to the directory you specify. You can put in multiple subdirectories instead of having to run the command multiple times, for example: "cd inventory 0 tag display" would take you to /Inventory/0/tag/display.
up {level} - goes up a level. You can add a number of levels to go up instead of running it multiple times.
next - displays the next page of data if there is one.
prev/previous - displays the previous page of data.
player [player name] or player me - loads a player's NBT data.
edit [name] [value] - edits an existing tag's value.
rename [name] [newname] - renames a tag to the name you specify. Note that this will not work in lists since they use numbers instead of names.
remove [name] - removes a tag.
copy {name} - copies a tag or the current directory if no name is specified.
paste - pastes the copied tag into the current directory
merge - pastes the contents of the copied tag into the current directory (useful when you're copying root directories)
newcompound {name} - creates a new compound tag.
newlist {name} - creates a new list.
newstring {name} [value] - creates a new string. To use formatting codes replace the section sign (§) with an ampersand (&). If creating a unnamed string in a list, type null for the name. (This is due to the ability to have spaces in strings, leaving the plugin unsure whether the first word is the name of the string or the first word of the value)
newint {name} [value] - creates a new integer tag.
newbyte {name} [value] - creates a new byte tag.
newshort {name} [value] - creates a new short tag.
newdouble {name} [value] - creates a new double tag.
newlong {name} [value] - creates a new long tag.
newfloat {name} [value] - creates a new float tag.
newintarray {name} [value1],[value2],[value3],etc. - creates a new int array tag. Note that the values are delimited by commas and no brackets are required.
newbytearray {name} [value1],[value2],[value3],etc. - creates a new byte array tag. Same as above.
save - saves the tag data back to the object it came from.
macro define [name] {arg1} ... {argN} - creates a new macro with the name you specify and any parameters you pass in. After entering in the commands to be included in the macro, create saves the macro and enables you to use it. For more information, see the macro page.
exit/done- exits edit mode and goes back to regular chat.
评论 0
登录后参与评分
还没有评论,来抢沙发吧