REAL FLOATING BRICKS - Hackplant [update 2.0]

Author Topic: REAL FLOATING BRICKS - Hackplant [update 2.0]  (Read 17593 times)

Introducing

A mod that lets you plant floating bricks


This mod is old, and buggy. Please delete it and use this instead.


Changelog
  • 12/16/2014 @ [12:33pm]: Hackplant Released
  • 12/16/2014 @ [12:35pm]: Fixed glitch (loading single floating brick insta-destroyed brick)
  • 12/17/2014 @ [1:51pm]: MASSIVE glitch fixed (couldn't plant floating bricks at certain orientations)
  • 12/17/2014 @ [9:33pm]: Removed debug echo
  • 1/24/2018 (four years later!) @ [6:29pm]: Deleted links to mod and released Floating Bricks, an updated and less buggy version of this mod.
« Last Edit: January 24, 2018, 07:25:30 PM by Darksaber2213 »

Interesting. Will this destroy my server?

Also, how do you get RTB prefs to work?

Interesting. Will this destroy my server?
No, of course not. This mod was extensively tested.

Also, how do you get RTB prefs to work?

RTB_registerPref("pref name", "category", "pref variable", "type (bool, int, etc.)", "addon file (script_name)", 0, 0, 0);

Oh, forget yes. Finally a good floating brick mod.


..what's wrong with the default sfx?



Neat. Ill be sure to try this out.

// checkPlantingError from jes00 (thanks)

Your welcome.

echo(%error);

Might want to take that out though.


Mind if I just finish wiping my keyboard.

what is this

eval("%client.undoStack.val" @ %client.undoStack.head @ " = \"" @ %brick @ "\tPLANT\";");
%client.undoStack.head++;


you can just do

%client.undoStack.push(%brick TAB "PLANT");
« Last Edit: December 17, 2014, 03:17:46 AM by Zeblote »

what is this

eval("%client.undoStack.val" @ %client.undoStack.head @ " = \"" @ %brick @ "\tPLANT\";");
%client.undoStack.head++;


you can just do

%client.undoStack.push(%brick TAB "PLANT");

Fixed. I used some code from jes00 but it turns out that most of it didn't work so I just rewrote most of it. This was the only working part so I left it in.

Cool.  Although, the download link doesn't work for me.