changed recipe and duration to 3 mins

master
TenPlus1 2017-06-24 13:25:47 +01:00
parent bf4156b357
commit f2503456c1
3 changed files with 13 additions and 4 deletions

View File

@ -1,9 +1,9 @@
Invisibility Potion by TenPlus1 Invisibility Potion by TenPlus1
This mod lets you craft an invisibility potion using 1x Nyan Cat Rainbow and 1x Glass Bottle. This mod lets you craft an invisibility potion using one of each sapling (tree, jungle, pine, acacia, aspen, bush, acacia bush), a red mushroom and glass bottle.
Use potion to hide yourself AND nametag (0.4.14 dev only) for 5 minutes. 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. Server admin can use the '/vanish <name>' command to hide/unhide players or themselves by leaving it blank.
@ -14,3 +14,4 @@ Changelog:
- 0.1 - Initial Upload - 0.1 - Initial Upload
- 0.2 - Added error checking and a 10 second warning before becoming visible - 0.2 - Added error checking and a 10 second warning before becoming visible
- 0.3 - Potions can now be stacked - 0.3 - Potions can now be stacked
- 0.4 - Potion recipe changed now that Nyan Cat no longer in default game

View File

@ -1,2 +1,3 @@
default default
vessels vessels
flowers

View File

@ -1,7 +1,7 @@
invisibility = {} invisibility = {}
local effect_time = 300 -- 5 minutes local effect_time = 180 -- 3 minutes
-- reset player invisibility if they go offline -- reset player invisibility if they go offline
@ -119,7 +119,14 @@ minetest.register_node("invisibility:potion", {
minetest.register_craft( { minetest.register_craft( {
output = "invisibility:potion", output = "invisibility:potion",
type = "shapeless", type = "shapeless",
recipe = {"default:nyancat_rainbow", "vessels:glass_bottle"}, recipe = {
"default:sapling", "default:junglesapling",
"default:pine_sapling", "default:acacia_sapling",
"default:aspen_sapling", "default:bush_sapling",
"default:acacia_bush_sapling",
"vessels:glass_bottle", "flowers:mushroom_red",
},
}) })
-- invisibility function -- invisibility function