Page 1 of 1
[Mod] invisibility Potion [0.2]

Posted:
Tue Jun 07, 2016 15:43
by TenPlus1
This mod lets you craft an invisibility potion using 1x Nyan Cat Rainbow and 1x Glass Bottle.
Use potion to hide yourself AND nametag (0.4.14 dev only) for 5 minutes.
Server admin can use the '/vanish <name>' command to hide/unhide players or themselves by leaving it blank, and Yes... I am in the picture below :)

Depends: default, vessels
Source:
https://github.com/tenplus1/invisibilityLicense: MIT
- 0.1 - Initial release
- 0.2 - Changed recipe, added 10 second warning and error checking
Re: [MOD] invisibility Potion [0.1]

Posted:
Tue Jun 07, 2016 16:46
by DS-minetest
TenPlus1 wrote:you mash one sweet Nyan Cat into a dirty Glass Bottle and drink it. or something like this
O_O
now i dont want to be a nyan cat anymore
Re: [MOD] invisibility Potion [0.1]

Posted:
Tue Jun 07, 2016 17:09
by azekill_DIABLO
HEy tenPlus1, where r u?!?Bonk!Aeh...Hello.
+1
Re: [MOD] invisibility Potion [0.1]

Posted:
Tue Jun 07, 2016 19:01
by TenPlus1
I'm open to suggestions for alternative craft recipe's :)
Re: [Mod] invisibility Potion [0.1]

Posted:
Tue Jun 07, 2016 20:59
by xeranas
I guess mobs would still attack player?
Re: [Mod] invisibility Potion [0.1]

Posted:
Wed Jun 08, 2016 10:13
by azekill_DIABLO
i think nyan cat rainbow would be better, less expensive...
Diamond would also be cool!
Re: [Mod] invisibility Potion [0.1]

Posted:
Wed Jun 08, 2016 15:03
by ErrorNull
love the invisibility potion. i too would like to see if mobs can be updated to not attack playerr if invisible. but, if player successfully punches mob, player will cancel invisibility.
Re: [Mod] invisibility Potion [0.1]

Posted:
Wed Jun 08, 2016 18:25
by DS-minetest
yeah, put some nc rainbow into bottle and water it down, a giraffe can eat rainbow, so why not
Re: [Mod] invisibility Potion [0.1]

Posted:
Thu Jun 09, 2016 09:39
by Minetest Sam
+1 Good Job 11!
Re: [Mod] invisibility Potion [0.1]

Posted:
Thu Jun 09, 2016 09:48
by burli
xeranas wrote:I guess mobs would still attack player?
I guess they will, because the api did not know the invisibility.
But I think about mobs they can hear the player walking or can smell him. Invisibility wouldn't help, except the player stands still or wields a flower ;-)
Re: [Mod] invisibility Potion [0.2]

Posted:
Thu Jun 09, 2016 10:05
by TenPlus1
Updated to 0.2:
- Changed crafting recipe to 1x glass bottle and 1x nyan cat rainbow
- Added 10 second warning before becoming visible again
- Added error checking
Re: [Mod] invisibility Potion [0.2]

Posted:
Thu Jun 09, 2016 11:08
by Minetest Sam
11, can you make it splash and add support with Mobs redo so maybe it can also make mobs invisible?
Re: [Mod] invisibility Potion [0.2]

Posted:
Thu Jun 09, 2016 12:26
by TenPlus1
You don't break bottle so no splash required, it's drank and an empty bottle returned... Mobs Redo has been updated already to work with invisibile players :)
Re: [Mod] invisibility Potion [0.2]

Posted:
Thu Jun 09, 2016 15:22
by azekill_DIABLO
hey tenplus1 can i also call you 11?it's easier to remenber :)
Re: [Mod] invisibility Potion [0.2]

Posted:
Sun Jun 12, 2016 15:16
by Minetest Sam
11, I meant that the mobs can also be made invisible so that the player cant see it now here we cant forcefully make a mobs drink that potion.So, we need splash
Re: [Mod] invisibility Potion [0.2]

Posted:
Sun Jun 12, 2016 15:29
by DS-minetest
haha, mix into food, so if the mob eats players...
Re: [Mod] invisibility Potion [0.2]

Posted:
Mon Jun 13, 2016 18:45
by Byakuren
Can you not add globals apart from the mod-named table? If other modders want to use method syntax to use the invisible function, they can do local invisible = invisibility.invisible at the top of their source file. But you don't even use method syntax for your own invocations, so I don't see the point of doing this, except maybe the save the one extra line of
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
local invisible = function(player, toggle)
...
end
invisibility.invisible = invisible
Re: [Mod] invisibility Potion [0.2]

Posted:
Tue Jun 14, 2016 19:21
by TailsTheFoxDoes MT
I think the Nyan Cat is a bit expensive, plus, the potion only lasts five minutes? Could you make it so after it wears off you have to wait ten minutes or five before becoming invisible again?
Re: [Mod] invisibility Potion [0.2]

Posted:
Wed Jun 15, 2016 16:48
by DS-minetest
maybe add a magic cloak for admins