Page 1 of 1

[Mod] Pie (is not a lie ;) ) [0.35] [pie]

PostPosted: Sun Jun 15, 2014 19:26
by Mitroman
This mod adds a pie and an apple pie into minetest... YAAAY :D. You can eat a pie (only if you not have full health) by punching it with the pie knife. Every piece gives you 2 hearts back.

Note: Now it is avaible with the hud mod.

+ Crafting

+ Screenshots


Download(ZIP): https://github.com/Mitroman/pie/archive/master.zip
Code: https://github.com/Mitroman/pie
License: CC-BY-SA 3.0
Depends: default, farming

+ Ideas


I hope you enjoy my mod. Cause I am proud of it. :).

Re: [Mod] Cake (is not a lie ;) ) 0.1 [github]

PostPosted: Sun Jun 15, 2014 21:19
by Wuzzy
The mod is missing a depends.txt file.

Your mod depends on farming from minetest_game, because you use farming:flour and farming:wheat. And it also depends on default, because of the papyrus you need for sugar.

Please add a depends.txt with this contents:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
default
farming


The descriptions for all cake sizes are identical. I would change the descriptions for the “cake parts” to something like “three-quarter cake”, “half cake” and “quarter cake”.

Re: [Mod] Cake (is not a lie ;) ) 0.1 [github]

PostPosted: Mon Jun 16, 2014 07:40
by rubenwardy
There may be another mod called "cake".

Re: [Mod] Cake (is not a lie ;) ) 0.1 [github]

PostPosted: Mon Jun 16, 2014 10:34
by Topywo
rubenwardy wrote:There may be another mod called "cake".


viewtopic.php?f=9&t=4862

Re: [Mod] Cake (is not a lie ;) ) 0.1 [github]

PostPosted: Mon Jun 16, 2014 12:29
by Mitroman
Topywo wrote:
rubenwardy wrote:There may be another mod called "cake".


viewtopic.php?f=9&t=4862


I have changed the name into pie. But at all: I think my textures are very better and the recipe too...

Re: [Mod] Cake (is not a lie ;) ) 0.1 [github]

PostPosted: Mon Jun 16, 2014 12:29
by Mitroman
Wuzzy wrote:The mod is missing a depends.txt file.

Your mod depends on farming from minetest_game, because you use farming:flour and farming:wheat. And it also depends on default, because of the papyrus you need for sugar.

Please add a depends.txt with this contents:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
default
farming


The descriptions for all cake sizes are identical. I would change the descriptions for the “cake parts” to something like “three-quarter cake”, “half cake” and “quarter cake”.


Added / Changed.

Re: [Mod] Pie (is not a lie ;) ) 0.25 [github]

PostPosted: Mon Jun 16, 2014 16:22
by rubenwardy
You can still call it cake, but you need to change the mod namespace (the folder it is saved in).

However a different name is better.

Re: [Mod] Pie (is not a lie ;) ) 0.25 [github]

PostPosted: Mon Jun 16, 2014 19:47
by Mitroman
rubenwardy wrote:You can still call it cake, but you need to change the mod namespace (the folder it is saved in).

However a different name is better.


Ok I'll change.

Re: [Mod] Cake (is not a lie ;) ) 0.1 [github]

PostPosted: Tue Jun 17, 2014 15:01
by Wuzzy
Mitroman wrote:
Wuzzy wrote:The mod is missing a depends.txt file.

Your mod depends on farming from minetest_game, because you use farming:flour and farming:wheat. And it also depends on default, because of the papyrus you need for sugar.

Please add a depends.txt with this contents:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
default
farming


The descriptions for all cake sizes are identical. I would change the descriptions for the “cake parts” to something like “three-quarter cake”, “half cake” and “quarter cake”.


Added / Changed.

There is still no depends.txt file.

Re: [Mod] Cake (is not a lie ;) ) 0.1 [github]

PostPosted: Tue Jun 17, 2014 18:19
by Mitroman
Wuzzy wrote:
Mitroman wrote:
Wuzzy wrote:The mod is missing a depends.txt file.

Your mod depends on farming from minetest_game, because you use farming:flour and farming:wheat. And it also depends on default, because of the papyrus you need for sugar.

Please add a depends.txt with this contents:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
default
farming


The descriptions for all cake sizes are identical. I would change the descriptions for the “cake parts” to something like “three-quarter cake”, “half cake” and “quarter cake”.


Added / Changed.

There is still no depends.txt file.


But It is on the forum so... but I will add the "depends.txt" file now...

Re: [Mod] Cake (is not a lie ;) ) 0.1 [github]

PostPosted: Tue Jun 17, 2014 18:22
by rubenwardy
Mitroman wrote:But It is on the forum so... but I will add the "depends.txt" file now...


People may not read it, and the Minetest program can not access the forum.

Re: [Mod] Cake (is not a lie ;) ) 0.1 [github]

PostPosted: Tue Jun 17, 2014 19:19
by Mitroman
rubenwardy wrote:
Mitroman wrote:But It is on the forum so... but I will add the "depends.txt" file now...


People may not read it, and the Minetest program can not access the forum.


Now it is on the forum in the README.md file and in the extra depends.txt file! If this is too less, I should remove this topic... Cause at all: I got no good feedback only: This needs that and that, there is another mod and so on... but the another mod is in my opinion not so good... . I am so proud about myself that I can make "good" mods, but at the moment not.

Re: [Mod] Pie (is not a lie ;) ) [0.25] [pie]

PostPosted: Tue Jun 17, 2014 19:47
by rubenwardy
I am using this a decoration on my local game I quite like it. I am just trying to help.

Re: [Mod] Pie (is not a lie ;) ) [0.25] [pie]

PostPosted: Tue Jun 17, 2014 20:03
by Mitroman
rubenwardy wrote:I am using this a decoration on my local game I quite like it. I am just trying to help.


Ok sorry. I could exaggerated... cause everyone is looking at the depends and not at the mod... this is annoying me a little bit...

Re: [Mod] Pie (is not a lie ;) ) [0.31] [pie]

PostPosted: Mon Jul 21, 2014 16:17
by TenPlus1
Great mod, am using it on Xanadu server and I changed the code slightly to work with the HUD mod and hunger... Here's what I changed in the item.lua file:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.register_craftitem("pie:knife", {
   description = "Pie knife",
   inventory_image = "pie_knife.png",
   stack_max = 1,
   on_use = function(itemstack, user, pointed_thing)
      if pointed_thing.type ~= "node" then
         return
      end

      local node = minetest.get_node(pointed_thing.under).name

      if test_pie(node) then
         minetest.chat_send_player(user:get_player_name(), "Cannot eat block!")
         return
      end
      
      if minetest.get_modpath("hud") then

         local name = user:get_player_name()
         local h = tonumber(hud.hunger[name])
         h=h+4
         if h>30 then
            minetest.chat_send_player(user:get_player_name(), "Cannot eat, not hungry")
            return
         end
         hud.hunger[name]=h
         hud.set_hunger(user)
         
      else

         if user:get_hp() == 20 then
            minetest.chat_send_player(user:get_player_name(), "Cannot eat, health full")
            return
         end
         user:set_hp(user:get_hp() + 4)
      
      end
      
      local pos = pointed_thing.under
      minetest.set_node(pos, {name=eat_pie(node)})
      
   end
})

Re: [Mod] Cake (is not a lie ;) ) 0.1 [github]

PostPosted: Fri Jul 25, 2014 14:10
by ExeterDad
Mitroman wrote:I am so proud about myself that I can make "good" mods, but at the moment not.


Please do not be discouraged! I've had a rough time getting my children to abandon MC pocket edition. And this mod has been very helpful and enjoyed by them since I installed it.

You should hear their voices when they are using your cake :P Good times.
Thank you for your work, and please keep it up.

I believe your friends are giving you "constructive criticism", which doesn't always "sound" pleasant via text.

Re: [Mod] Cake (is not a lie ;) ) 0.1 [github]

PostPosted: Sat Jul 26, 2014 11:05
by Mitroman
ExeterDad wrote:
Mitroman wrote:I am so proud about myself that I can make "good" mods, but at the moment not.


Please do not be discouraged! I've had a rough time getting my children to abandon MC pocket edition. And this mod has been very helpful and enjoyed by them since I installed it.

You should hear their voices when they are using your cake :P Good times.
Thank you for your work, and please keep it up.

I believe your friends are giving you "constructive criticism", which doesn't always "sound" pleasant via text.


Ok thanks :).

Re: [Mod] Pie (is not a lie ;) ) [0.31] [pie]

PostPosted: Sat Jul 26, 2014 11:08
by Mitroman
TenPlus1 wrote:Great mod, am using it on Xanadu server and I changed the code slightly to work with the HUD mod and hunger... Here's what I changed in the item.lua file:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.register_craftitem("pie:knife", {
   description = "Pie knife",
   inventory_image = "pie_knife.png",
   stack_max = 1,
   on_use = function(itemstack, user, pointed_thing)
      if pointed_thing.type ~= "node" then
         return
      end

      local node = minetest.get_node(pointed_thing.under).name

      if test_pie(node) then
         minetest.chat_send_player(user:get_player_name(), "Cannot eat block!")
         return
      end
      
      if minetest.get_modpath("hud") then

         local name = user:get_player_name()
         local h = tonumber(hud.hunger[name])
         h=h+4
         if h>30 then
            minetest.chat_send_player(user:get_player_name(), "Cannot eat, not hungry")
            return
         end
         hud.hunger[name]=h
         hud.set_hunger(user)
         
      else

         if user:get_hp() == 20 then
            minetest.chat_send_player(user:get_player_name(), "Cannot eat, health full")
            return
         end
         user:set_hp(user:get_hp() + 4)
      
      end
      
      local pos = pointed_thing.under
      minetest.set_node(pos, {name=eat_pie(node)})
      
   end
})


Cool. Thanks. :) I tried to make it avaible for the hud mod but I failed. Could I copy your code (for the hud mod to make it avaible) ? And what is the IP for the server? (I wanna join your server)

Re: [Mod] Pie (is not a lie ;) ) [0.31] [pie]

PostPosted: Sat Jul 26, 2014 13:16
by hoodedice
Mitroman wrote:
TenPlus1 wrote:Great mod, am using it on Xanadu server and I changed the code slightly to work with the HUD mod and hunger... Here's what I changed in the item.lua file:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.register_craftitem("pie:knife", {
   description = "Pie knife",
   inventory_image = "pie_knife.png",
   stack_max = 1,
   on_use = function(itemstack, user, pointed_thing)
      if pointed_thing.type ~= "node" then
         return
      end

      local node = minetest.get_node(pointed_thing.under).name

      if test_pie(node) then
         minetest.chat_send_player(user:get_player_name(), "Cannot eat block!")
         return
      end
      
      if minetest.get_modpath("hud") then

         local name = user:get_player_name()
         local h = tonumber(hud.hunger[name])
         h=h+4
         if h>30 then
            minetest.chat_send_player(user:get_player_name(), "Cannot eat, not hungry")
            return
         end
         hud.hunger[name]=h
         hud.set_hunger(user)
         
      else

         if user:get_hp() == 20 then
            minetest.chat_send_player(user:get_player_name(), "Cannot eat, health full")
            return
         end
         user:set_hp(user:get_hp() + 4)
      
      end
      
      local pos = pointed_thing.under
      minetest.set_node(pos, {name=eat_pie(node)})
      
   end
})


Cool. Thanks. :) I tried to make it avaible for the hud mod but I failed. Could I copy your code (for the hud mod to make it avaible) ? And what is the IP for the server? (I wanna join your server)


TenPlus manages the well known Xanadu server. You can find the IP at minetest.net/servers, or use the in game public server list to connect.

Also, this is open source. As long as you use the correct licenses, you are free to copy code.

Re: [Mod] Pie (is not a lie ;) ) [0.31] [pie]

PostPosted: Sat Jul 26, 2014 13:50
by Mitroman
TenPlus manages the well known Xanadu server. You can find the IP at minetest.net/servers, or use the in game public server list to connect.

Also, this is open source. As long as you use the correct licenses, you are free to copy code.


Ok thanks.

Re: [Mod] Pie (is not a lie ;) ) [0.35] [pie]

PostPosted: Thu Nov 27, 2014 02:19
by Inocudom
Would this mod be compatible with the following farming mod by MTDad?
https://forum.minetest.net/viewtopic.php?f=9&t=10187&hilit=mtdad

Re: [Mod] Pie (is not a lie ;) ) [0.35] [pie]

PostPosted: Thu Nov 27, 2014 05:40
by Mitroman
Inocudom wrote:Would this mod be compatible with the following farming mod by MTDad?
https://forum.minetest.net/viewtopic.php?f=9&t=10187&hilit=mtdad


Yeah it could be but I am now "offline" so I don't update my mods anymore. Maybe forever But you could ask another modder to fork my project.

Re: [Mod] Pie (is not a lie ;) ) [0.35] [pie]

PostPosted: Thu Nov 27, 2014 15:24
by Inocudom
Mitroman wrote:
Inocudom wrote:Would this mod be compatible with the following farming mod by MTDad?
https://forum.minetest.net/viewtopic.php?f=9&t=10187&hilit=mtdad


Yeah it could be but I am now "offline" so I don't update my mods anymore. Maybe forever But you could ask another modder to fork my project.

Well, there are the forks of Minetest known as Voxelands and Freeminer.