Cuberite Forum
WorldEdit - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Plugins (https://forum.cuberite.org/forum-1.html)
+--- Forum: Plugin Releases (https://forum.cuberite.org/forum-2.html)
+--- Thread: WorldEdit (/thread-870.html)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18


RE: WorldEdit - DiamondToaster - 04-07-2015

If it's the math.pow() thing that's making it confusing, maybe you can implement something like this?
http://stackoverflow.com/questions/1515399/can-you-make-custom-operators-in-c

Make a ^ operator that acts like math.pow?

Not sure how feasible that is though.


RE: WorldEdit - NiLSPACE - 04-07-2015

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.


RE: WorldEdit - DiamondToaster - 04-07-2015

Welp, it works now. Tongue I'm betting that the tricky part is tokenizing the command into a proper equation.


RE: WorldEdit - NiLSPACE - 04-09-2015

Finaly it works!Big Grin
[Image: 0c6b771882.jpg]


RE: WorldEdit - xoft - 04-09-2015

Niiiiice Smile


RE: WorldEdit - NiLSPACE - 04-09-2015

I even managed to make the formula able to change block types/meta like in the real WorldEditBig Grin:
[Image: 7e361f2499.jpg]


RE: WorldEdit - xoft - 04-09-2015

Impressive


RE: WorldEdit - NiLSPACE - 04-10-2015

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


RE: WorldEdit - DiamondToaster - 04-10-2015

Pretty nice stump you got there. Smile Nice job.


RE: WorldEdit - NiLSPACE - 04-12-2015

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.