From f2503456c142871ba614f22685ad2924e9f2a691 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Sat, 24 Jun 2017 13:25:47 +0100 Subject: [PATCH] changed recipe and duration to 3 mins --- README.md | 5 +++-- depends.txt | 1 + init.lua | 11 +++++++++-- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b8f83e6..122335c 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ 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 ' command to hide/unhide players or themselves by leaving it blank. @@ -14,3 +14,4 @@ Changelog: - 0.1 - Initial Upload - 0.2 - Added error checking and a 10 second warning before becoming visible - 0.3 - Potions can now be stacked + - 0.4 - Potion recipe changed now that Nyan Cat no longer in default game diff --git a/depends.txt b/depends.txt index d6b786c..29f829c 100644 --- a/depends.txt +++ b/depends.txt @@ -1,2 +1,3 @@ default vessels +flowers diff --git a/init.lua b/init.lua index 69d99b1..47ef003 100644 --- a/init.lua +++ b/init.lua @@ -1,7 +1,7 @@ invisibility = {} -local effect_time = 300 -- 5 minutes +local effect_time = 180 -- 3 minutes -- reset player invisibility if they go offline @@ -119,7 +119,14 @@ minetest.register_node("invisibility:potion", { minetest.register_craft( { output = "invisibility:potion", 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