Scripting Clan Projects

Started by Zoocata, October 27, 2011, 12:27:58 AM

Previous topic - Next topic

Zoocata

Here is where you post MOD ideas, or scripts in general.

Lazy Kat

Meowy Chwysmiss

Zoocata

Read the title. "Clan Projects". Emphasis on "clan".

vampirefrog


Zoocata


Lazy Kat

Meowy Chwysmiss

Lazy Kat

Oh yeah, I remember!
You should make the weapons, and fps view like Half-Life!
Meowy Chwysmiss

Zoocata

Minecraft script is almost done. I need help with selecting the next cube.
I tried "universaldelta 1" but that made it so you could only break cubes in one direction.
any suggestions?
also, the range is a bit messy. I can go all the way across the map, and still break a brick on the other side XD

Zoocata

ah, forgot to post the script. Here goes:

bind LSHIFT [  digcube ]

digging = 0

digcube = [
if (= $digging 0) [

digging = 1

sleep 1000 [   
// enter edit mode
edittoggle

// clear selections
cancelsel

// keep a consistent gridsize
gridpower 4


// delete the cube we're facing
editface 0 1

// select next cube
universaldelta 1
cancelsel


// return to normal mode
edittoggle

digging = 0
]
]




     
]

unixfreak

Zoocata, this is what i had, doesn't work though as i said (one direction only)
bind LSHIFT [  digcube ]

digging = 0

digcube = [
                if (= $digging 0) [

                        digging = 1

                        // cancel any selection (doesnt seem to work though)
                        cubecancel
                        cancelsel

                        // keep a consistent gridsize
                        gridpower 4


                        // alpha the cube we are digging
                        sleep 50 [
                                edittoggle
                                alpha
                                edittoggle
                        ]

                        sleep 1000 [
                                // enter edit mode
                                edittoggle


                                // delete the cube we're facing'
                                editdel

                                // select the next cube (instead of empty grid)
                                universaldelta 1

                                //return to normal mode
                                edittoggle

                                digging = 0
                        ]
                ]


                //onrelease [ clearsleep ]


]


what is "editface" for and does it work better?
Join the Red Eclipse discord! https://www.redeclipse.net/discord