Skip to content

Create Functions

Changxing Cao edited this page Aug 24, 2018 · 9 revisions

Create your own functions

Notice our cmd is used to set a block with left-bottom (x1,y1,z1) and right-up(x2,y2,z2) box.
Your AI function is to generate a new intelligent map in this customized block.

How to write your own function

under src/main/java/ccx/build folder

write under the file BuildBlocks.java to create your own world.

Command Usage

  1. We use the cmd

"cmd GOLD_BLOCK(Material) buildHouse(Function_name) 20 20 20 (len wid height)"

to create House groups having certain length/width/height.

  1. We use another cmd

"build x1 y1 z1 x2 y2 z2"

to create Blocks having certain coordinate.

The Function is under a You can easily change function with Command_cmd.java to create your own command.

Clone this wiki locally