Cube Genetics

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.

-
View User Profile
-
Send Message
Posted Jan 4, 2013@DevKnorke
UI running on the server is not possible, that falls under the realm of client mods. I've chosen to keep it solely as a server side plugin for ease of use. If I do decide to add a companion client mod in the future, I'll code it myself for tighter integration and full creative control. It will always be able to be used without client mods so adding a UI will require a fair amount of modification to enable both options. Not something I'm planning on implementing any time soon.
-
View User Profile
-
Send Message
Posted Jan 4, 2013Is there a possibility of you giving me the source code of this plugin?
I would like to create an Java-UI which runs on my server and allows easier editing of the tags. But I don't want to recreate work someone already did before me. You can include this UI in your plugin when I finished it if you want to.
-
View User Profile
-
Send Message
Posted Jan 2, 2013@Kyran_
thanks. i figured it out... silly me... i got a bit confused
-
View User Profile
-
Send Message
Posted Jan 1, 2013@Najumicom
You just add the entity tags as outlined here into the SpawnData compound. Unless you're spawning multiple entities with one spawner, in which case you create an unnamed compound for each entity in the SpawnPotentials compound and add the tags to each compound. Any tags applicable to an entity can be added. They're all listed on the linked page.
-
View User Profile
-
Send Message
Posted Jan 1, 2013this looks great.... DOWNLOADING :D
-
View User Profile
-
Send Message
Posted Dec 31, 2012The staff must be behind on plugin approvals, the newest upload is still pending. Here's an alternate download for Cube Genetics 1.1, working for craftbukkit versions 1.4.4 to 1.4.6.
Happy New Year's!
-
View User Profile
-
Send Message
Posted Dec 30, 2012@acecoolman123
Hah thanks so much! The newest upload is still pending approval so hopefully the download will be available shortly.
Also, I meant to film a couple tutorials but holiday business got in the way. I hope to have them up within a week or two.
-
View User Profile
-
Send Message
Posted Dec 30, 2012Fantastic work Kyran_! This is by far the best live nbt editor for bukkit. Thanks for being so amazing :D
-
View User Profile
-
Send Message
Posted Dec 30, 2012I've just uploaded the new version 1.1 to work with craftbukkit 1.4.6! I've also added in the copy/paste ability.
The new file is backwards compatible back to 1.4.4, so if you haven't updated yet or are running the Recommended Build instead, you can still pick up this release to get access to the copy/paste functionality.
Just in time for infinite fireworks dispensers for new years! (set the "Count" tag to -1)
Cheers!
-
View User Profile
-
Send Message
Posted Dec 21, 2012@nough32
What craftbukkit version are you using? If it's not working with 1.4.5 R0.2 then post up the full stack trace and I'll have a look. Otherwise, try using that version of craftbukkit or wait until the next update.
It should be updated for 1.4.6 when a beta release comes out (hopefully pretty soon)
I'm also adding in copy/paste so it's easier to move things around.
-
View User Profile
-
Send Message
Posted Dec 21, 2012i am trying to load it up in a home bukkit server, but it wont let me access.
could not pass event playerquitevent to cubegenetics v1.01 later on it says " caused by: java.lang.classnotfoundexception: net.minecraft.server.NBTBase
confusion much?
-
View User Profile
-
Send Message
Posted Dec 20, 2012update?
-
View User Profile
-
Send Message
Posted Dec 18, 2012@nough32
Hmmm I wasn't aware of this change. Though now that I look under the mobspawner section of the Chunk Format wiki page, I notice some new tags pertaining to xp. The wiki page doesn't have descriptions of them yet but I'm sure you could conduct some experiments yourself. Maybe load the tags of a spawner, let it spawn some mobs and then check it's data again to see if anything has changed. Hopefully soon they'll have some more information on what those tags do.
-
View User Profile
-
Send Message
Posted Dec 18, 2012great plugin, i am building farms on a new server map for the admin, and was wondering whether something like this existed. it does, and he is looking into installing it (hopefully). i will use it for myself on home servers, but i have one question.
is it possible to change the properties of spawners so that mobs killed from them do not decrease their xp? i know mojang has changed spawners so that the xp/drops decrease over time, and was wondering whether there is an NBT to fix it.
-
View User Profile
-
Send Message
Posted Dec 18, 2012Perfect, saves me time so I can use all these SuperCoolServerMods on my server to work on my adventure map. :)
Thanks again! :)
-
View User Profile
-
Send Message
Posted Dec 17, 2012@Kyran_
Thanks a lot! All works perfectly now.
-
View User Profile
-
Send Message
Posted Dec 17, 2012I was working on an rpg server with a friend of mine when i stumbled upon this, made some pretty amazing dungeon loot with it =D I made a custom potion of nausea for 2:30, called it wine and made it purple. This by far my favorite plugin I've ever used. Keep up the good work! =D
-
View User Profile
-
Send Message
Posted Dec 17, 2012@AscorbinS
You server's probably running Java 6 instead of 7. Nothing big to worry about. Code compiled for Java 6 will run on 7 but not vice versa, so I've recompiled it for 6. Try out the new jar, it should solve the issues you were having.
-
View User Profile
-
Send Message
Posted Dec 16, 2012@Kyran_
Sorry, but do you mean that we have or we haven't the latest version?
-
View User Profile
-
Send Message
Posted Dec 16, 2012@AscorbinS
Ahh your server must be running the last version of Java. Sorry about that, let me recompile it with Java 6 and I'll have an update up in just a sec!
@antidust
There shouldn't be any conflicting plugins, it only has the one command. The rest of the "commands" are done with the bukkit conversations api so only the plugin sees them.
Tutorials are on my short list, hope to have some out this week. Anything in particular you're interested in, in terms of examples I could use? I was thinking mob spawners, colored names and lore, custom player heads, and custom potions. If there's any one thing you'd like an example of, leave a comment. In the mean time, check out the links above to the NBT pages on the minecraft wiki for a list of all the things you can edit.