I would code these myself but I honestly don't have much experience with events.
The first one is simple. I just want it so that if a player clicks a block he becomes invisible.
function invisibility(%client)
{
%client.player.hideNode("ALL");
}
I don't know how much this code will help, lol. But use it for the event
(yes, I want the name to be shown still)
onActivate -> Player -> setInvisibility
Now for the more difficult one. I'd like it so that a player can click a block with
their key, and the key will be taken from them.
onKeyMatch -> client? or player? -> takeItem
Thank you guys for looking through this. If you're wondering why I need this,
I'm just trying to make it so that someone will have two choices:
(invisibility or change datablock)
They only get to pick one using their key.
I know there are other ways to do this, but I gave my reasons. It HAS to be this way.
Again thanks for looking over this.
