Compare commits

...

5 Commits

Author SHA1 Message Date
Tre deded059cd Modified pies to work with MMS 2017-07-28 09:22:12 -05:00
TenPlus1 a896639e9e remove farming, mobs and ethereal dependency 2016-11-30 10:28:45 +00:00
TenPlus1 3995342712 added 9x lucky blocks 2016-11-12 10:55:32 +00:00
TenPlus1 0198733706 Changed license 2016-08-19 19:34:53 +01:00
TenPlus1 bca7783f04 fixed stamina eat sound 2016-07-23 17:53:51 +01:00
19 changed files with 121 additions and 53 deletions

View File

@ -11,9 +11,12 @@ Support for hud/hunger, hbhunger and stamina has been added.
https://forum.minetest.net/viewtopic.php?f=9&t=13285
Released under WTFPL
0.1 - Initial release
0.2 - Added meat pie
0.3 - Fix cake inside - Added banana cake
0.4 - Added support for stamina mod
Change log:
- 0.1 - Initial release
- 0.2 - Added meat pie
- 0.3 - Fix cake inside - Added banana cake
- 0.4 - Added support for stamina mod
Lucky Blocks: 9

View File

@ -1,7 +1,5 @@
default
hunger?
hbhunger?
farming?
mobs?
ethereal?
stamina?
lucky_block?

130
init.lua
View File

@ -57,7 +57,7 @@ local replace_pie = function(node, puncher, pos)
stamina.change(puncher, 4)
minetest.sound_play("stamina_eat", {
to_player = name, gain = 0.7, max_hear_distance = 5})
pos = pos, gain = 0.7, max_hear_distance = 5})
-- none of the above found? add to health instead
else
@ -168,8 +168,8 @@ register_pie("pie", "Cake")
minetest.register_craft({
output = "pie:pie_0",
recipe = {
{"farming:sugar", "mobs:bucket_milk", "farming:sugar"},
{"farming:sugar", "mobs:egg", "farming:sugar"},
{"food:sugar", "mobs:bucket_milk", "food:sugar"},
{"food:sugar", "mobs:egg", "food:sugar"},
{"farming:wheat", "farming:flour", "farming:wheat"},
},
replacements = {{ "mobs:bucket_milk", "bucket:bucket_empty"}}
@ -181,38 +181,38 @@ register_pie("choc", "Chocolate Cake")
minetest.register_craft({
output = "pie:choc_0",
recipe = {
{"farming:cocoa_beans", "mobs:bucket_milk", "farming:cocoa_beans"},
{"farming:sugar", "mobs:egg", "farming:sugar"},
{"food:chocolate_powder", "mobs:bucket_milk", "food:chocolate_powder"},
{"food:sugar", "mobs:egg", "food:sugar"},
{"farming:wheat", "farming:flour", "farming:wheat"},
},
replacements = {{ "mobs:bucket_milk", "bucket:bucket_empty"}}
})
-- strawberry cheesecake
register_pie("scsk", "Strawberry Cheesecake")
minetest.register_craft({
output = "pie:scsk_0",
recipe = {
{"ethereal:strawberry", "mobs:bucket_milk", "ethereal:strawberry"},
{"farming:sugar", "mobs:egg", "farming:sugar"},
{"farming:wheat", "farming:flour", "farming:wheat"},
},
replacements = {{ "mobs:bucket_milk", "bucket:bucket_empty"}}
})
--register_pie("scsk", "Strawberry Cheesecake")
--
--minetest.register_craft({
-- output = "pie:scsk_0",
-- recipe = {
-- {"ethereal:strawberry", "mobs:bucket_milk", "ethereal:strawberry"},
-- {"farming:sugar", "mobs:egg", "farming:sugar"},
-- {"farming:wheat", "farming:flour", "farming:wheat"},
-- },
-- replacements = {{ "mobs:bucket_milk", "bucket:bucket_empty"}}
--})
--cant make it on MMS
-- coffee cake
register_pie("coff", "Coffee Cake")
minetest.register_craft({
output = "pie:coff_0",
recipe = {
{"farming:coffee_beans", "mobs:bucket_milk", "farming:coffee_beans"},
{"farming:sugar", "mobs:egg", "farming:sugar"},
{"farming:wheat", "farming:flour", "farming:wheat"},
},
replacements = {{ "mobs:bucket_milk", "bucket:bucket_empty"}}
})
--register_pie("coff", "Coffee Cake")
--
--minetest.register_craft({
-- output = "pie:coff_0",
-- recipe = {
-- {"farming:coffee_beans", "mobs:bucket_milk", "farming:coffee_beans"},
-- {"farming:sugar", "mobs:egg", "farming:sugar"},
-- {"farming:wheat", "farming:flour", "farming:wheat"},
-- },
-- replacements = {{ "mobs:bucket_milk", "bucket:bucket_empty"}}
--})
-- red velvet cake
register_pie("rvel", "Red Velvet Cake")
@ -220,8 +220,8 @@ register_pie("rvel", "Red Velvet Cake")
minetest.register_craft({
output = "pie:rvel_0",
recipe = {
{"farming:cocoa_beans", "mobs:bucket_milk", "dye:red"},
{"farming:sugar", "mobs:egg", "farming:sugar"},
{"food:chocolate_powder", "mobs:bucket_milk", "dye:red"},
{"food:sugar", "mobs:egg", "food:sugar"},
{"farming:flour", "mobs:cheese", "farming:flour"},
},
replacements = {{ "mobs:bucket_milk", "bucket:bucket_empty"}}
@ -238,16 +238,76 @@ minetest.register_craft({
{"", "", ""}
},
})
--cant make it on MMS
-- banana cake
register_pie("bana", "Banana Cake")
--register_pie("bana", "Banana Cake")
--
--minetest.register_craft({
-- output = "pie:bana_0",
-- recipe = {
-- {"ethereal:banana", "mobs:bucket_milk", "ethereal:banana"},
-- {"farming:sugar", "mobs:egg", "farming:sugar"},
-- {"farming:wheat", "farming:flour", "farming:wheat"},
-- },
-- replacements = {{ "mobs:bucket_milk", "bucket:bucket_empty"}}
--})
--My pies for MMS
--orange pie
register_pie("orange","Orange Pie")
minetest.register_craft({
output = "pie:bana_0",
output = "pie:orange_0",
recipe = {
{"ethereal:banana", "mobs:bucket_milk", "ethereal:banana"},
{"farming:sugar", "mobs:egg", "farming:sugar"},
{"food:orange", "mobs:bucket_milk", "food:orange"},
{"food:sugar", "mobs:egg", "food:sugar"},
{"farming:wheat", "farming:flour", "farming:wheat"},
},
replacements = {{ "mobs:bucket_milk", "bucket:bucket_empty"}}
})
--apple pie
register_pie("apple","Apple Pie")
minetest.register_craft({
output = "pie:apple_0",
recipe = {
{"default:apple", "mobs:bucket_milk", "default:apple"},
{"food:sugar", "mobs:egg", "food:sugar"},
{"farming:wheat", "farming:flour", "farming:wheat"},
},
replacements = {{ "mobs:bucket_milk", "bucket:bucket_empty"}}
})
--bread pudding
register_pie("brpd","Bread Pudding")
minetest.register_craft({
output = "pie:brpd_0",
recipe = {
{"farming:bread", "mobs:bucket_milk", "farming:bread"},
{"food:sugar", "mobs:egg", "food:sugar"},
{"farming:wheat", "farming:flour", "farming:wheat"},
},
replacements = {{ "mobs:bucket_milk", "bucket:bucket_empty"}}
})
-- add lucky blocks
if minetest.get_modpath("lucky_block") then
lucky_block:add_blocks({
{"nod", "pie:pie_0", 0},
{"nod", "pie:choc_0", 0},
{"nod", "pie:orange_0", 0},
{"tro", "pie:pie_0"},
{"nod", "pie:rvel_0", 0},
{"nod", "pie:orange_0", 0},
{"nod", "pie:brpd_0", 0},
{"nod", "pie:meat_0", 0},
{"lig"},
})
end
print ("[MOD] Pie loaded")

View File

@ -1,14 +1,21 @@
The MIT License (MIT)
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (c) 2016 TenPlus1
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

BIN
textures/apple_bottom.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 280 B

BIN
textures/apple_inside.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 B

BIN
textures/apple_inv.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 387 B

BIN
textures/apple_side.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 B

BIN
textures/apple_top.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 657 B

BIN
textures/brpd_bottom.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 280 B

BIN
textures/brpd_inside.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

BIN
textures/brpd_inv.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 394 B

BIN
textures/brpd_side.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 B

BIN
textures/brpd_top.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 394 B

BIN
textures/orange_bottom.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 B

BIN
textures/orange_inside.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 265 B

BIN
textures/orange_inv.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 342 B

BIN
textures/orange_side.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 238 B

BIN
textures/orange_top.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 B