Mythruna

Modder's Workbench => Scripting => Topic started by: GaraQuor on December 30, 2012, 04:06:14 AM



Title: CubeChange V0.2 by Gara
Post by: GaraQuor on December 30, 2012, 04:06:14 AM
Hello :D
i have scripted a new script that allows you to change the world with commands such as world-edit on minecraft.
Then select the tools "select corner 1" for first define the first posistion
and select the tools "select corner 2" for define the second posistion

Commands:
-setblock
Then type the command "~setblock " + the id of the block
Ex: for grass type "~setblock 2"
Before:
(http://img15.hostingpics.net/pics/678845Mythruna1356879411568.png)
After
(http://img15.hostingpics.net/pics/985747Mythruna1356879411569.png)

-replaceall
For Replace all block except air with a block
Then type the command "~replace " + the id of the block that will replace
Ex: for stone type "~replaceall 4"

-replaceblock
For Replace the block1 by block2
Then type the command "~replaceblock " + the id of the block we want to replace + " " + the id of the block that will replace
Ex: for replace sand by stone type "~replaceall 3 4"


-deleteblock
For delete all block except air
Then type the command "~deleteblock"
Ex: type "~deleteblock"

-setwalls
For create a wall on the contours of the selection
Then type the command "~setwalls " + the id of the block
Ex:for rock type "~setwalls 6"

Warning: you must have the grant "admin"

Download link : http://simcraft.vacau.com/CubeChange.init.groovy (http://simcraft.vacau.com/CubeChange.init.groovy)
Video:

http://www.youtube.com/watch?v=LBKVnb0_aDM (http://www.youtube.com/watch?v=LBKVnb0_aDM)

*And sorry for my very bad English :)


Title: Re: CubeChange V0.1 by Gara
Post by: Michael on December 30, 2012, 11:46:59 AM
Gara you make me so jealous :)
Keep up the great work!


Title: Re: CubeChange V0.1 by Gara
Post by: GaraQuor on December 30, 2012, 01:51:36 PM
thanks :)


Title: Re: CubeChange V0.1 by Gara
Post by: Michael on December 31, 2012, 04:46:54 PM
I'm using ChangeBlock and your money system for my server :)


Title: Re: CubeChange V0.1 by Gara
Post by: Michael on December 31, 2012, 04:48:41 PM
BUG: I was trying to say set the item to something else with a metadata, like in minecraft 5:1 sets it to spruce wood planks

When entering 5:1 into the chat, it crashed.


Title: Re: CubeChange V0.1 by Gara
Post by: BenKenobiWan on December 31, 2012, 07:37:22 PM
BUG: I was trying to say set the item to something else with a metadata, like in minecraft 5:1 sets it to spruce wood planks

When entering 5:1 into the chat, it crashed.
As you scroll through blocks in the normal game, they are named "Dirt (1)", "Dirt Slope (2)" or whatever. I'm pretty sure the number in parentheses is what you enter for this mod. None of the blocks are numbered with a colon.


Title: Re: CubeChange V0.1 by Gara
Post by: Michael on December 31, 2012, 08:23:41 PM
BUG: I was trying to say set the item to something else with a metadata, like in minecraft 5:1 sets it to spruce wood planks

When entering 5:1 into the chat, it crashed.
As you scroll through blocks in the normal game, they are named "Dirt (1)", "Dirt Slope (2)" or whatever. I'm pretty sure the number in parentheses is what you enter for this mod. None of the blocks are numbered with a colon.
Yea, i remembered that and forgot to post an update on that :P


Title: Re: CubeChange V0.1 by Gara
Post by: GaraQuor on January 01, 2013, 03:28:35 AM
BenKenobiWan, yes that's it


Title: Re: CubeChange V0.2 by Gara
Post by: GaraQuor on January 01, 2013, 08:42:01 AM
V2.0 OK


Title: Re: CubeChange V0.2 by Gara
Post by: Duff_Beer on June 23, 2014, 12:19:04 AM
Is this only for single player or can it be used on multiplayer as well?


Title: Re: CubeChange V0.2 by Gara
Post by: pspeed on June 23, 2014, 01:06:26 AM
Is this only for single player or can it be used on multiplayer as well?

It can be used for multiplayer if the server adds it, I think.  My server doesn't support it... the griefing potentially would be tremendous.


Title: Re: CubeChange V0.2 by Gara
Post by: Michael on June 23, 2014, 09:51:24 AM
Is this only for single player or can it be used on multiplayer as well?

It can be used for multiplayer if the server adds it, I think.  My server doesn't support it... the griefing potentially would be tremendous.
If you wanted to, you could edit the script for people with a certain grant. Although, I believe it's only for "grant.admin"


Title: Re: CubeChange V0.2 by Gara
Post by: GaraQuor on October 05, 2014, 08:37:16 AM
yes the "grant.admin" is required
And the script was made for server, not for single player ;)


Title: Re: CubeChange V0.2 by Gara
Post by: Rayblon on January 13, 2015, 08:48:31 PM
This thing is amazing!

It changed 3.5 million blocks without crashing my server. Hell, this thing outperforms Minecraft's Worldedit with large edits.


Buuuut it also caused my server to run out of memory after it finished. Ahh well.


Title: Re: CubeChange V0.2 by Gara
Post by: GaraQuor on January 15, 2015, 04:31:36 AM
Sorry for your "out of memory" ^^
I did not do it for 3.5million blocks :p


Title: Re: CubeChange V0.2 by Gara
Post by: Rayblon on January 15, 2015, 08:39:10 AM
Sorry for your "out of memory" ^^
I did not do it for 3.5million blocks :p

*starts making 20 million block edits*

(http://vignette1.wikia.nocookie.net/t-r-o-t-c/images/0/0c/Mexican_troll_face_by_mariodude12312-d5mtl9z.png/revision/latest/scale-to-width/479?cb=20140912213621)


Title: Re: CubeChange V0.2 by Gara
Post by: Michael on February 16, 2015, 12:47:53 PM
I wish I could download this.. but.. :c doesn't work.


Title: Re: CubeChange V0.2 by Gara
Post by: Rayblon on February 16, 2015, 12:53:09 PM
I wish I could download this.. but.. :c doesn't work.

I have a copy of it... I think.


Title: Re: CubeChange V0.2 by Gara
Post by: GaraQuor on February 16, 2015, 02:29:37 PM
http://simcraft.vacau.com/CubeChange.init.groovy (right click and save target as ... ) :) I will restore the old links, but it will take several day, i have problem with my e-mail, domain name ...


Title: Re: CubeChange V0.2 by Gara
Post by: Michael on February 21, 2015, 10:48:33 AM
Gara and I are now cooperating on CubeChange. It can now be found at: http://mythruna.com/mediawiki/index.php?title=CubeChange

I have the made the changes of a (in my opinion) good formatting system. Currently it should only be used for clients! It lacks permissions for now (working on a new permission based system for it). Permissions by then will only be active on servers. Look at the wiki page for more details.