Author Topic: Server_IndestructableBricks - V2 - Prevents painting locked bricks!  (Read 3594 times)

Lockerwand

This add-on allows you to lock bricks to make them totally unmodifiable. Naturally, you can unlock the bricks too. No, this is not persisted when you saved, I don't know how to do that yet..
Simply use /uselockerwand or /lockerwand and beat on those bricks!
/useunlockerwand - Gives you the unlockerwand tool, which does as it's name implies.
/unlockerwand - Gives you the unlockerwand tool, which does as it's name implies.
/lockbypass - Allows you to destroy/interact with bricks. HOST ONLY.

What happens when a brick is locked?
You cannot do the following:
Hammer it
Wrench it
Print it
Wand it
Destructo Wand it (At least not with your brick lock safety on, as mentioned. "/lockbypass")
You can do the following:
Unlock it
Paint it, colors OR FX.

This tool is HOST ONLY.
I am considering making an obscure preference to make it SA and higher, opinions?

Code: [Select]
Modders: you can tell this by looking through the code, and frankly, you could make your own, but this tool modifies/checks the brickLocked variable.
Please post here if you find/want anything.

Planned Todo: Add lockBricksByBL_ID(); and lockBricksByName();

Download
« Last Edit: February 11, 2012, 01:57:27 PM by Lugnut1206 »

This is awesome, can't wait for next version.

This is awesome, can't wait for next version.
That's what I wanted to hear!

Edit:Bug report from jetz. I'll attempt to fix this.

Quote
Jetz: Only problem I see is that though you can't wand a brick that is locked, wanding its supporting brick will break it.


You can also apparently paint them.
« Last Edit: February 09, 2012, 02:59:10 PM by Lugnut1206 »

This tool is HOST ONLY.
I am considering making an obscure preference to make it SA and higher, opinions?
Considered using my permissions mod for this? :cookieMonster:

No, this is not persisted when you saved, I don't know how to do that yet..
can't do it any really good way.


unless someone made a save system that was more open to modders, so they could add in their own values to save.

can't do it any really good way.


unless someone made a save system that was more open to modders, so they could add in their own values to save.
I guess you could hack in an event to do it.

I guess you could hack in an event to do it.
There's no good way to do it, I said.  :cookieMonster:

This is exactly what I needed...

possible make them un-paintable also?

You should add the ability for people to build on them,not just yourself, but others too.
Also make it so you cant clear these bricks by clearing all bricks.


yeah it is
I looked through the code there was nothing related to paint

I looked through the code there was nothing related to paint
i thought you were asking if it were POSSIBLE not in the mod lol

Should rename it IndestructaBlocks. It sounds more flowy and cool :o

Anyway, this will be useful if someone makes that terrain brickpack.

You should do some sort of thing that can do a container search and make all bricks in an area indestructible. And have an option to only do your brickgroup or fully trusted brick groups.