[mod] fish food (for "watercritters"/mobs_water) [fish_food]

juli
Member
 
Posts: 203
Joined: Sat Jun 11, 2016 10:31
GitHub: cpdef
In-game: juli

[mod] fish food (for "watercritters"/mobs_water) [fish_food]

by juli » Fri Apr 07, 2017 15:28

This mod allows u to feed fishes, so that there spawn more fishes.
This is good to build a fish farm or if u wanna get more fishes for a lake or aquarium.

Download: https://github.com/cpdef/minetest-fish_food/archive/master.zip
Github: https://github.com/cpdef/minetest-fish_food

screenshot
+ Spoiler


install and depends:
+ Spoiler


crafting
+ Spoiler


license:
code: LGPL 2.1+ free software license or later
textures: CC0

usage:
Very simple: after a left click, on a fish or jellyfish, spawns a second fish/jellyfish by a chance under 10%.
Last edited by juli on Sat Apr 08, 2017 07:05, edited 2 times in total.
 

User avatar
Andrey01
Member
 
Posts: 2170
Joined: Wed Oct 19, 2016 15:18
Location: Russia, Moscow
GitHub: Andrey2470T
In-game: Andrey01

Re: [mod] fish food (for "watercritters"/mobs_water) [fish_f

by Andrey01 » Fri Apr 07, 2017 19:18

These fishes look like ones from Animals Modpack
DL9Eh7xVBw7DXwLAMX1lStE21bSD2XUQ
 

Gundul
Member
 
Posts: 358
Joined: Thu Aug 27, 2015 10:55
Location: Europe/Asia
GitHub: berengma
IRC: Gundul

Re: [mod] fish food (for "watercritters"/mobs_water) [fish_f

by Gundul » Sat Apr 08, 2017 06:10

Hi Juli, a download link to your github would be helpful for those who
want to try your mod :)
 

juli
Member
 
Posts: 203
Joined: Sat Jun 11, 2016 10:31
GitHub: cpdef
In-game: juli

Re: [mod] fish food (for "watercritters"/mobs_water) [fish_f

by juli » Sat Apr 08, 2017 07:06

@Gundul yes i added the link now
@Andrey01 the mod doesn't contain any fishes, it adds only the ability to feed the fishes from "water-critters"/mobs_water mod
 

juli
Member
 
Posts: 203
Joined: Sat Jun 11, 2016 10:31
GitHub: cpdef
In-game: juli

Re: [mod] fish food (for "watercritters"/mobs_water) [fish_f

by juli » Sat Apr 08, 2017 14:09

After a question of Gundul (ingame) i changed the feed process so that it is a bit more realistic.
Now all fishes inside radius 4 are feed if i click on the water near them.
But i restricted it to a max of 10 fishes after they reproduced exponential :)
 

Sokomine
Member
 
Posts: 3616
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine

Re: [mod] fish food (for "watercritters"/mobs_water) [fish_f

by Sokomine » Tue Apr 11, 2017 03:46

Thanks for taking care of the poor fishes and adding a way to feed them. Will those beautiful jelleyfish (don't remember which mod they come from) also be fed?
A list of my mods can be found here.
 

Gundul
Member
 
Posts: 358
Joined: Thu Aug 27, 2015 10:55
Location: Europe/Asia
GitHub: berengma
IRC: Gundul

Re: [mod] fish food (for "watercritters"/mobs_water) [fish_f

by Gundul » Fri Apr 14, 2017 06:41

Hi Juli


fish_food crashed the server a few days ago:

Code: Select all
2017-04-09 16:19:22: ACTION[Server]: DS uses fish_food:fish_food, pointing at [nothing]
2017-04-09 16:19:22: ACTION[Main]: IRC: Disconnected.
2017-04-09 16:19:23: ACTION[Main]: [fishing] Server shuts down. saving trophies table
2017-04-09 16:19:24: ERROR[Main]: ServerError: Lua: Runtime error from mod 'fish_food' in callback item_OnUse(): Invalid position (expected table got nil).
2017-04-09 16:19:24: ERROR[Main]: stack traceback:
2017-04-09 16:19:24: ERROR[Main]:       [C]: in function 'get_objects_inside_radius'
2017-04-09 16:19:24: ERROR[Main]:       .minetest/mods/fish_food/init.lua:43: in function </home/mars/.minetest/mods/fish_food/init.lua:33>


Maybe ask DS how he was using it so server crashed.
 

User avatar
DS-minetest
Member
 
Posts: 1022
Joined: Thu Jun 19, 2014 19:49
Location: in front of my pc (which is at home)
GitHub: DS-Minetest
In-game: DS

Re: [mod] fish food (for "watercritters"/mobs_water) [fish_f

by DS-minetest » Fri Apr 14, 2017 08:03

Gundul wrote:Hi Juli


fish_food crashed the server a few days ago:

Code: Select all
2017-04-09 16:19:22: ACTION[Server]: DS uses fish_food:fish_food, pointing at [nothing]
2017-04-09 16:19:22: ACTION[Main]: IRC: Disconnected.
2017-04-09 16:19:23: ACTION[Main]: [fishing] Server shuts down. saving trophies table
2017-04-09 16:19:24: ERROR[Main]: ServerError: Lua: Runtime error from mod 'fish_food' in callback item_OnUse(): Invalid position (expected table got nil).
2017-04-09 16:19:24: ERROR[Main]: stack traceback:
2017-04-09 16:19:24: ERROR[Main]:       [C]: in function 'get_objects_inside_radius'
2017-04-09 16:19:24: ERROR[Main]:       .minetest/mods/fish_food/init.lua:43: in function </home/mars/.minetest/mods/fish_food/init.lua:33>


Maybe ask DS how he was using it so server crashed.

As it is written there, I use fish_food:fish_food. This means I leftclick with the fish_food:fish_food.
Do not call me -minetest.
Call me DS or DS-minetest.
I am German, so you don't have to pm me English if you are also German.
The background is a lie.
 

Gundul
Member
 
Posts: 358
Joined: Thu Aug 27, 2015 10:55
Location: Europe/Asia
GitHub: berengma
IRC: Gundul

Re: [mod] fish food (for "watercritters"/mobs_water) [fish_f

by Gundul » Fri Apr 14, 2017 12:54

DS-minetest wrote:As it is written there, I use fish_food:fish_food. This means I leftclick with the fish_food:fish_food.


LOL we all know reading :) The question is what means "pointing at [nothing]"
So while leftclick what did you point at with your crosshair ? An entity or just nothing at all ?
 

User avatar
DS-minetest
Member
 
Posts: 1022
Joined: Thu Jun 19, 2014 19:49
Location: in front of my pc (which is at home)
GitHub: DS-Minetest
In-game: DS

Re: [mod] fish food (for "watercritters"/mobs_water) [fish_f

by DS-minetest » Fri Apr 14, 2017 13:13

Gundul wrote:LOL we all know reading :) The question is what means "pointing at [nothing]"
So while leftclick what did you point at with your crosshair ? An entity or just nothing at all ?

Nothing, I tried to eat it.
Do not call me -minetest.
Call me DS or DS-minetest.
I am German, so you don't have to pm me English if you are also German.
The background is a lie.
 

juli
Member
 
Posts: 203
Joined: Sat Jun 11, 2016 10:31
GitHub: cpdef
In-game: juli

Re: [mod] fish food (for "watercritters"/mobs_water) [fish_f

by juli » Mon Apr 17, 2017 10:41

LOL u tried to eat fish food :P
I think u are not a fish ...
Ok i fix it (if pos == nil then return end)
thx for finding the error
juli
 


Return to WIP Mods



Who is online

Users browsing this forum: No registered users and 5 guests