[Mod] Potions [heal_potions]

Post Reply
AnFiadhChu
Member
Posts: 13
Joined: Thu Dec 19, 2013 18:16
GitHub: AnFiadhChu
IRC: AnFiadhChu
In-game: AnFiadhChu
Location: South Africa

[Mod] Potions [heal_potions]

by AnFiadhChu » Post

A small mod that might be useful. It adds a fullheal potion and a halfheal potion to the game.

License: WTFPL

Dependencies:
default
flowers
farming
vessels

Download:
heal_potions.zip
(72 KiB) Downloaded 435 times
crafting:
Image

Image

The fullheal potion heals 10 hearts, and the halfheal heals 5 hearts.

The textures are from http://icons.webtoolhub.com/icon-p0s2281-set.aspx
(From what I could decipher from the licenses and stuff I'm allowed to use them.)

Opinions please, second release.
Attachments
potions2.png
(29.58 KiB) Not downloaded yet
potions1.png
(32.4 KiB) Not downloaded yet
Last edited by AnFiadhChu on Sat Nov 29, 2014 16:22, edited 3 times in total.

User avatar
Evergreen
Member
Posts: 2135
Joined: Sun Jan 06, 2013 01:22
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen
Location: A forest in the midwest
Contact:

Re: [Mod]Potions[potions]

by Evergreen » Post

Interesting idea, but where did you get the textures from? Also, it's better to use 16x16 textures.

User avatar
Wuzzy
Member
Posts: 4142
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: [Mod]Potions[potions]

by Wuzzy » Post

Please use a different short name than “potions”; This name is already used here: viewtopic.php?id=5549.

I think both potions are overpowered, because they heal you immediately. This can be very frustrating in combat, as it goes basically this way:
get hit
use full-heal potion
get hit
use full-heal potion

etc.
Unless you have a weapon which kills immediately I suppose it would be extremely hard, if not impossible, to kill a player with a lot of full-heal potions. You just have to use them faster than you are hit. I suppose you could even survive swimming in a lava lake if you just have enough full-heal potions. Since you are only hurt every second, but you can consume healing potions as fast as you can click.
I also think the current healing system in Minetest is just utterly flawed. It is obviously not optimized for gameplay. minetest.item_eat is overpowered. So it is not entirely your fault, after all. The sad thing is, currently all healing items I know are overpowered immediate healing items and it is just a matter of whoever runs out of healing items first. This is not true for very low healing items, like 1 half heart. This is because you may not click 19 times fast enough against a weapon which damages you by 4 hearts per hit.

By the way, do you plan to add more potions? You may be interested in my Player Effects mod.

I also planned to create potions. I think I will release such a mod maybe in 1 or 2 weeks.

AnFiadhChu
Member
Posts: 13
Joined: Thu Dec 19, 2013 18:16
GitHub: AnFiadhChu
IRC: AnFiadhChu
In-game: AnFiadhChu
Location: South Africa

Re: [Mod] Potions [heal_potions]

by AnFiadhChu » Post

@Evergreen the textures are from http://icons.webtoolhub.com/icon-p0s2281-set.aspx, I forgot to add that info, thank you for reminding me.

@Wuzzy I have fixed the name, and will probe the idea of a more balanced heal. please send me a link to your mod when it is done :)

Fredrick01
Member
Posts: 10
Joined: Tue Nov 11, 2014 05:12
IRC: Fredrick
In-game: Fredrick
Location: USA

Re: [Mod] Potions [heal_potions]

by Fredrick01 » Post

Nice mod. I was hoping to find something like this. Though I do agree with Wuzzy as to the strength of the potions, I also must say that it is a GREAT mod, and I am excited to try it. P.S. Excellent textures!!

User avatar
HeroOfTheWinds
Member
Posts: 470
Joined: Wed Apr 23, 2014 23:16
GitHub: HeroOfTheWinds
IRC: WindHero
Location: Hawaii

Re: [Mod] Potions [heal_potions]

by HeroOfTheWinds » Post

Possible idea: How about a Regen Potion? That is, a potion that continually heals you over a small period of time, say, 3-5 seconds. Then you could keep fighting while still being healed.
Nam ex spatio, omnes res venire possunt.
Why let the ground limit you when you can reach for the sky?
Back to college now, yay for sophomore year schedules. :P

AnFiadhChu
Member
Posts: 13
Joined: Thu Dec 19, 2013 18:16
GitHub: AnFiadhChu
IRC: AnFiadhChu
In-game: AnFiadhChu
Location: South Africa

Re: [Mod] Potions [heal_potions]

by AnFiadhChu » Post

I'll do that... as soon as I figure out how

User avatar
fireuser
Member
Posts: 21
Joined: Wed Jul 02, 2014 21:05

Re: [Mod] Potions [heal_potions]

by fireuser » Post

Good mod, but I wholly agree with HeroOfTheWinds. It would be good if you healed after a 3 or 5 seconds. If you could have a delayed healing, that would be great. I've tried the same thing and failed. So, keep trying! ;D

PS The textures are awesome!

User avatar
tbillion
Member
Posts: 190
Joined: Wed Apr 03, 2013 16:07
Location: 38381, US, TN, Toone
Contact:

Re: [Mod] Potions [heal_potions]

by tbillion » Post

Code: Select all

2015-11-22 07:26:28: ERROR[Main]: ModError: Failed to load and run script from /home/tjohnson/Downloads/minetest-master/bin/../mods/healpotions/init.lua:
2015-11-22 07:26:28: ERROR[Main]: ...ads/minetest-master/bin/../builtin/game/register.lua:60: Name heal_potions:fullheal_potion does not follow naming conventions: "modname:" or ":" prefix required
2015-11-22 07:26:28: ERROR[Main]: stack traceback:
2015-11-22 07:26:28: ERROR[Main]:       [C]: in function 'error'
2015-11-22 07:26:28: ERROR[Main]:       ...ads/minetest-master/bin/../builtin/game/register.lua:60: in function 'check_modname_prefix'
2015-11-22 07:26:28: ERROR[Main]:       ...ads/minetest-master/bin/../builtin/game/register.lua:98: in function 'register_item'
2015-11-22 07:26:28: ERROR[Main]:       ...ads/minetest-master/bin/../builtin/game/register.lua:177: in function 'really_register_craftitem'
2015-11-22 07:26:28: ERROR[Main]:       ...n/../mods/technic-master/technic_worldgen/crafts.lua:157: in function 'register_craftitem'
2015-11-22 07:26:28: ERROR[Main]:       ...ads/minetest-master/bin/../mods/healpotions/init.lua:2: in main chunk
2015-11-22 07:26:28: ERROR[Main]: Check debug.txt for details.

User avatar
tbillion
Member
Posts: 190
Joined: Wed Apr 03, 2013 16:07
Location: 38381, US, TN, Toone
Contact:

Re: [Mod] Potions [heal_potions]

by tbillion » Post

FIXED:

Code: Select all

--Fullheal Potion, returns 10 hearts.
minetest.register_craftitem('healpotions:fullhealpotion', {
	description = 'Fullheal potion',
	inventory_image = 'PotionsFullhealpotion.png',
	on_use = minetest.item_eat(20)
})

minetest.register_craft({
	output = 'healpotions:fullhealpotion 3',
	recipe = {
                {'default:apple', 'default:cactus', 'default:apple'},
                {'default:apple', 'farming:seed_wheat', 'default:apple'},
                {'vessels:glass_bottle', 'vessels:glass_bottle', 'vessels:glass_bottle'},
        }
})

--Halfheal Potion, returns 5 hearts.
minetest.register_craftitem('healpotions:halfhealpotion', {
	description = 'Halfheal potion',
	inventory_image = 'PotionsHalfhealpotion.png',
	on_use = minetest.item_eat(10)
})

minetest.register_craft({
	output = 'healpotions:halfhealpotion 3',
	recipe = {
                {'default:apple', 'flowers:geranium', 'default:apple'},
                {'default:papyrus', 'default:papyrus', 'default:papyrus'},
                {'vessels:glass_bottle', 'vessels:glass_bottle ','vessels:glass_bottle'},
        }
})

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 2 guests