[Mod] invisibility Potion [0.5]

Post Reply
User avatar
TenPlus1
Member
Posts: 3722
Joined: Mon Jul 29, 2013 13:38
In-game: TenPlus1
Contact:

[Mod] invisibility Potion [0.5]

by TenPlus1 » Post

screenshot.png
screenshot.png (24.94 KiB) Viewed 1554 times
This mod lets you craft an invisibility potion using 1x of each sapling (tree, jungle, pine, aspen, acacia, bush, acacia bush), 1x Red Mushroom and 1x Glass Bottle.

Use potion to hide yourself AND nametag (0.4.15+ only) for 3 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

ContentDB: https://content.minetest.net/packages/T ... visibility

License: MIT
Last edited by TenPlus1 on Mon Oct 09, 2023 17:32, edited 7 times in total.

User avatar
Desour
Member
Posts: 1472
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: Desour
In-game: DS
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.

Re: [MOD] invisibility Potion [0.1]

by Desour » Post

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
he/him; Codeberg; GitHub; ContentDB; public personal TODO list; "DS" is preferred (but often too short)

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [MOD] invisibility Potion [0.1]

by azekill_DIABLO » Post

HEy tenPlus1, where r u?!?Bonk!Aeh...Hello.

+1
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
TenPlus1
Member
Posts: 3722
Joined: Mon Jul 29, 2013 13:38
In-game: TenPlus1
Contact:

Re: [MOD] invisibility Potion [0.1]

by TenPlus1 » Post

I'm open to suggestions for alternative craft recipe's :)

User avatar
xeranas
Member
Posts: 162
Joined: Fri Feb 05, 2016 11:06

Re: [Mod] invisibility Potion [0.1]

by xeranas » Post

I guess mobs would still attack player?

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] invisibility Potion [0.1]

by azekill_DIABLO » Post

i think nyan cat rainbow would be better, less expensive...
Diamond would also be cool!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
ErrorNull
Member
Posts: 274
Joined: Thu Mar 03, 2016 00:43
GitHub: ErrorNull0

Re: [Mod] invisibility Potion [0.1]

by ErrorNull » Post

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.

User avatar
Desour
Member
Posts: 1472
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: Desour
In-game: DS
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.

Re: [Mod] invisibility Potion [0.1]

by Desour » Post

yeah, put some nc rainbow into bottle and water it down, a giraffe can eat rainbow, so why not
he/him; Codeberg; GitHub; ContentDB; public personal TODO list; "DS" is preferred (but often too short)

Minetest Sam
Member
Posts: 98
Joined: Sat Nov 14, 2015 09:26

Re: [Mod] invisibility Potion [0.1]

by Minetest Sam » Post

+1 Good Job 11!

User avatar
burli
Member
Posts: 1643
Joined: Fri Apr 10, 2015 13:18

Re: [Mod] invisibility Potion [0.1]

by burli » Post

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 ;-)

User avatar
TenPlus1
Member
Posts: 3722
Joined: Mon Jul 29, 2013 13:38
In-game: TenPlus1
Contact:

Re: [Mod] invisibility Potion [0.2]

by TenPlus1 » Post

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

Minetest Sam
Member
Posts: 98
Joined: Sat Nov 14, 2015 09:26

Re: [Mod] invisibility Potion [0.2]

by Minetest Sam » Post

11, can you make it splash and add support with Mobs redo so maybe it can also make mobs invisible?

User avatar
TenPlus1
Member
Posts: 3722
Joined: Mon Jul 29, 2013 13:38
In-game: TenPlus1
Contact:

Re: [Mod] invisibility Potion [0.2]

by TenPlus1 » Post

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 :)

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] invisibility Potion [0.2]

by azekill_DIABLO » Post

hey tenplus1 can i also call you 11?it's easier to remenber :)
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

Minetest Sam
Member
Posts: 98
Joined: Sat Nov 14, 2015 09:26

Re: [Mod] invisibility Potion [0.2]

by Minetest Sam » Post

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

User avatar
Desour
Member
Posts: 1472
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: Desour
In-game: DS
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.

Re: [Mod] invisibility Potion [0.2]

by Desour » Post

haha, mix into food, so if the mob eats players...
he/him; Codeberg; GitHub; ContentDB; public personal TODO list; "DS" is preferred (but often too short)

Byakuren
Member
Posts: 818
Joined: Tue Apr 14, 2015 01:59
GitHub: raymoo
IRC: Hijiri
In-game: Raymoo + Clownpiece

Re: [Mod] invisibility Potion [0.2]

by Byakuren » Post

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

Code: Select all

local invisible = function(player, toggle)
  ...
end

invisibility.invisible = invisible
Every time a mod API is left undocumented, a koala dies.

User avatar
TailsTheFoxDoes MT
Member
Posts: 415
Joined: Mon Jan 18, 2016 20:50
In-game: TailsTheFox
Location: Mobius

Re: [Mod] invisibility Potion [0.2]

by TailsTheFoxDoes MT » Post

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?
I'm the TailsTMM of minetest, in other words, i rock.
BRAAAAAZZZZAAAA!!!!!!!!!!!!!!!!!!!!!!!!!!!
BTW it means TailsTheMeseMinecart, but that isn't my name, it's just a way of saying that i basically do the same thing Dantdm does but i do it with minetest And you problably can't see the invisible ink.
My mods:
My first mod:tails_boss

Mob_pack now has voice acting! Do you want YOUR VOICE included? Look in my posts for the thread!

User avatar
Desour
Member
Posts: 1472
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: Desour
In-game: DS
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.

Re: [Mod] invisibility Potion [0.2]

by Desour » Post

maybe add a magic cloak for admins
he/him; Codeberg; GitHub; ContentDB; public personal TODO list; "DS" is preferred (but often too short)

User avatar
TenPlus1
Member
Posts: 3722
Joined: Mon Jul 29, 2013 13:38
In-game: TenPlus1
Contact:

Re: [Mod] invisibility Potion [0.4]

by TenPlus1 » Post

Updated to Version 0.4:

- Potion duration reduced to 3 minutes.
- Crafting recipe changed now that Nyan Cats no longer in default game.

Recipe: 1x of each sapling (tree, jungle, pine, aspen, acacia, bush, acacia bush), 1x Red Mushroom and 1x Glass Bottle.

User avatar
TenPlus1
Member
Posts: 3722
Joined: Mon Jul 29, 2013 13:38
In-game: TenPlus1
Contact:

Re: [Mod] invisibility Potion [0.5]

by TenPlus1 » Post

Updated to version 0.5:

- Using newer functions, requires Minetest 0.4.16 to run.

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] invisibility Potion [0.5]

by azekill_DIABLO » Post

TenPlus1 wrote:Updated to version 0.5:

- Using newer functions, requires Minetest 0.4.16 to run.
is that third time i see this post ? :D
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
kristovish
Member
Posts: 39
Joined: Tue Jul 19, 2022 00:42
GitHub: kristovish
In-game: kristovish

Re: [Mod] invisibility Potion [0.5]

by kristovish » Post

I am using this mod on my server. I kept it because it worked. but yesterday I used it to disappear for a while. But it does not work. the name tag did disappear but it didn't make me invisible. in fact it's weird since sometimes it works making me invisible but not the defined time only a few seconds. other times it just hides the name from me and other times it just doesn't do anything. What can be? It does not generate errors of any kind

User avatar
TenPlus1
Member
Posts: 3722
Joined: Mon Jul 29, 2013 13:38
In-game: TenPlus1
Contact:

Re: [Mod] invisibility Potion [0.5]

by TenPlus1 » Post

@kristovish - What version of minetest are you using, and what mods are active ?

User avatar
kristovish
Member
Posts: 39
Joined: Tue Jul 19, 2022 00:42
GitHub: kristovish
In-game: kristovish

Re: [Mod] invisibility Potion [0.5]

by kristovish » Post

TenPlus1 wrote:
Sun Sep 11, 2022 05:40
@kristovish - What version of minetest are you using, and what mods are active ?
the server is running on multicraft 2.0.2. but personally I play from 5.6 on minetest. and my server have a huge list of mods. I think it will be difficult to discover why it does not work at all. The whole server works without problems, even the potion, only it doesn't make me completely invisible, as I mentioned a while ago.

what is the line of code that makes you invisible? maybe that way I. can find out if it's another mod that interferes and discover what is really happening

Post Reply

Who is online

Users browsing this forum: Nininik and 16 guests