These here forums are read-only. Click here to go to the new forums, where you can actually post and stuff!
Sorry for the inconvenience
-Andrew
It has come to my attention that ever since BlockDefinitions has been added as a server feature for MCGalaxy (and ProCraft, which I will not cover in this guide), very few people have known about the feature, let alone know how to use it. This tutorial will hopefully teach you the fundamentals as I cover each and every step, as well as a few things to keep in mind when adding blocks to the server. I will also provide examples of the block creation process as I go along.
/globalblock (shortcut /gb), /levelblock (shortcut /lb)
These two commands are the base commands used when you want to add a block either globally, meaning every single map on your server created or not will share that one block, or locally, where it's on a per-map basis. Also, locally-defined blocks will overwrite global blocks. Be sure you keep in mind if you create blocks locally. I recommend creating local blocks starting at ID 254, that way any blocks you later decide to add globally won't accidentally disappear from your locally-defined blocks that you had defined before.
[+Command Parameters+]
/gb add [ID]
This begins the creation of a new block. Remember, the only valid IDs are between 1 and 254.
/gb abort
Use this command to quit the creation process at any point.
/gb copy [Copied ID] [New ID]
Use this to copy an existing defined block to another ID. Local blocks are already defined for you, so it should make copying and editing existing blocks easier.
/gb edit [ID]
Use this command to edit one of many properties of a defined block, such as shape, collision, etc. Use the command without an ID parameter to see the list of editable properties if you need any further help.
/gb info [ID]
View information about a specific defined block.
/gb list
This lists all the defined global blocks that have been created.
/gb remove [ID]
Remove an ID you added/edited.
/gb revert
If you need to go back a step because you realized you made a mistake, then use this command.
Take note that /lb works exactly the same as /gb, the only difference is whether the blocks created are usable on all maps or on a single (local) map. Alternatively, overseer (personal) maps use /os lb for local block creation.
==== In this example I will create a simple Wood slab, just to cover all the parameters. ====
/gb add 66
/gb Wood slab
/gb 0
/gb 1
The texture ID I want to use is at ID 4, or the fifth texture at the top left of terrain.png, defaulted to wood planks. I recommend to try not to get confused between Texture IDs and Block IDs. Texture IDs go from left to right and top to bottom. To easily view the terrain atlas, press F10 while in-game to pull it up (this only works in later versions of the client, so if you haven't updated, then I highly recommend doing so).
In order to use a custom texture for your block, you will need to either create or edit an existing terrain.png file. You can find the default one inside of "default.zip" in the "texpacks" folder of your client. After you have your terrain ready, you can upload it to a filehosting website like imgur.com or dropbox.com and get the direct URL for it (This URL should end in a .png, if it does not, then it is not the correct URL). Once you have the URL copied, you can then use /texture level[zip] or /texture global[zip] command to apply it in your server. (or /os map texture[zip], if this is an overseer/realm.)
Each face can also have a unique texture mapped to it if desired. After the initial block creation process has been completed, you can further manipulate what your blocks appearance is, for example if I wanted a bookcase with 2 sides as planks. The command I would use would for further texture editing would be /... edit [block ID] toptex/bottomtex/fronttex/backtex/lefttex/righttex [texture ID] , where ... is how the block was created, either globally or locally.
/gb 1
/gb 1
/gb 0 0 0
/gb 16 8 16
/gb 2
I want the block to be collidable so I put the number to 2. The other numbers I can simply ignore.
if you choose 0, the block will be walk through, like an air block.
Normally, the third choice is the de-facto when it comes to general blocks.
/gb 1
/gb yes
/gb 1
0=none 1=wood 2=gravel 3=grass 4=stone 5=metal 6=glass 7=cloth 8=sand 9=snow
/gb no
/gb 0
/gb 0
/gb 1
And really, that's it. Your block has been created and can now be used! Keep in mind that you can only edit blocks that have been defined, so if you want to redefine the original block's parameters then you have to completely define it all over again.
Oops nvm.
I'm happy that I was one of the few people who first learned how to use it :p
Thanks for writing this guide for the people who don't know how to use it though!