Cuberite Forum

Full Version: WorldEdit
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
If it's the math.pow() thing that's making it confusing, maybe you can implement something like this?
http://stackoverflow.com/questions/15153...ators-in-c

Make a ^ operator that acts like math.pow?

Not sure how feasible that is though.
Well, I tried it again today, and then I got the same results both in Lua and in Java, so I probably did something wrong. I hope the guys from the original WorldEdit plugin know what I'm doing wrong.
Welp, it works now. Tongue I'm betting that the tricky part is tokenizing the command into a proper equation.
Finaly it works!Big Grin
[Image: 0c6b771882.jpg]
Niiiiice Smile
I even managed to make the formula able to change block types/meta like in the real WorldEditBig Grin:
[Image: 7e361f2499.jpg]
Impressive
I'm starting to love this command:
[Image: d1b3a8eea8.jpg]

The command handler looks a little messy, but I'm planning on cleaning things up allot when I get to work on https://github.com/mc-server/WorldEdit/issues/64

Especialy if other people agree with making folders for different parts of the plugin (commands, generation, etc)

Code is uploaded: https://github.com/mc-server/WorldEdit/pull/65
Pretty nice stump you got there. Smile Nice job.
Wow, I've just written the generate command, and I'm already rewriting stuff in it. I now moved all the code that loads the formula in it's own class. This way we can use it on other places as well. We can probably move about every structure like pyramids and cylinders to that.

I'm doing all this stuff while working on issue #64.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18