WorldEdit
#91
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.
Reply
Thanks given by:
#92
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.
Reply
Thanks given by:
#93
Welp, it works now. Tongue I'm betting that the tricky part is tokenizing the command into a proper equation.
Reply
Thanks given by:
#94
Finaly it works!Big Grin
[Image: 0c6b771882.jpg]
Reply
Thanks given by: tonibm19 , DiamondToaster
#95
Niiiiice Smile
Reply
Thanks given by:
#96
I even managed to make the formula able to change block types/meta like in the real WorldEditBig Grin:
[Image: 7e361f2499.jpg]
Reply
Thanks given by: tonibm19
#97
Impressive
Reply
Thanks given by: NiLSPACE
#98
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
Reply
Thanks given by:
#99
Pretty nice stump you got there. Smile Nice job.
Reply
Thanks given by: NiLSPACE
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.
Reply
Thanks given by:




Users browsing this thread: 15 Guest(s)