Compare commits
5 Commits
5b6c4cf2d9
...
deded059cd
Author | SHA1 | Date |
---|---|---|
Tre | deded059cd | |
TenPlus1 | a896639e9e | |
TenPlus1 | 3995342712 | |
TenPlus1 | 0198733706 | |
TenPlus1 | bca7783f04 |
13
README.md
|
@ -11,9 +11,12 @@ Support for hud/hunger, hbhunger and stamina has been added.
|
||||||
|
|
||||||
https://forum.minetest.net/viewtopic.php?f=9&t=13285
|
https://forum.minetest.net/viewtopic.php?f=9&t=13285
|
||||||
|
|
||||||
Released under WTFPL
|
|
||||||
|
|
||||||
0.1 - Initial release
|
Change log:
|
||||||
0.2 - Added meat pie
|
|
||||||
0.3 - Fix cake inside - Added banana cake
|
- 0.1 - Initial release
|
||||||
0.4 - Added support for stamina mod
|
- 0.2 - Added meat pie
|
||||||
|
- 0.3 - Fix cake inside - Added banana cake
|
||||||
|
- 0.4 - Added support for stamina mod
|
||||||
|
|
||||||
|
Lucky Blocks: 9
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
default
|
default
|
||||||
hunger?
|
hunger?
|
||||||
hbhunger?
|
hbhunger?
|
||||||
farming?
|
|
||||||
mobs?
|
|
||||||
ethereal?
|
|
||||||
stamina?
|
stamina?
|
||||||
|
lucky_block?
|
130
init.lua
|
@ -57,7 +57,7 @@ local replace_pie = function(node, puncher, pos)
|
||||||
stamina.change(puncher, 4)
|
stamina.change(puncher, 4)
|
||||||
|
|
||||||
minetest.sound_play("stamina_eat", {
|
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
|
-- none of the above found? add to health instead
|
||||||
else
|
else
|
||||||
|
@ -168,8 +168,8 @@ register_pie("pie", "Cake")
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "pie:pie_0",
|
output = "pie:pie_0",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"farming:sugar", "mobs:bucket_milk", "farming:sugar"},
|
{"food:sugar", "mobs:bucket_milk", "food:sugar"},
|
||||||
{"farming:sugar", "mobs:egg", "farming:sugar"},
|
{"food:sugar", "mobs:egg", "food:sugar"},
|
||||||
{"farming:wheat", "farming:flour", "farming:wheat"},
|
{"farming:wheat", "farming:flour", "farming:wheat"},
|
||||||
},
|
},
|
||||||
replacements = {{ "mobs:bucket_milk", "bucket:bucket_empty"}}
|
replacements = {{ "mobs:bucket_milk", "bucket:bucket_empty"}}
|
||||||
|
@ -181,38 +181,38 @@ register_pie("choc", "Chocolate Cake")
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "pie:choc_0",
|
output = "pie:choc_0",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"farming:cocoa_beans", "mobs:bucket_milk", "farming:cocoa_beans"},
|
{"food:chocolate_powder", "mobs:bucket_milk", "food:chocolate_powder"},
|
||||||
{"farming:sugar", "mobs:egg", "farming:sugar"},
|
{"food:sugar", "mobs:egg", "food:sugar"},
|
||||||
{"farming:wheat", "farming:flour", "farming:wheat"},
|
{"farming:wheat", "farming:flour", "farming:wheat"},
|
||||||
},
|
},
|
||||||
replacements = {{ "mobs:bucket_milk", "bucket:bucket_empty"}}
|
replacements = {{ "mobs:bucket_milk", "bucket:bucket_empty"}}
|
||||||
})
|
})
|
||||||
|
|
||||||
-- strawberry cheesecake
|
-- strawberry cheesecake
|
||||||
register_pie("scsk", "Strawberry Cheesecake")
|
--register_pie("scsk", "Strawberry Cheesecake")
|
||||||
|
--
|
||||||
minetest.register_craft({
|
--minetest.register_craft({
|
||||||
output = "pie:scsk_0",
|
-- output = "pie:scsk_0",
|
||||||
recipe = {
|
-- recipe = {
|
||||||
{"ethereal:strawberry", "mobs:bucket_milk", "ethereal:strawberry"},
|
-- {"ethereal:strawberry", "mobs:bucket_milk", "ethereal:strawberry"},
|
||||||
{"farming:sugar", "mobs:egg", "farming:sugar"},
|
-- {"farming:sugar", "mobs:egg", "farming:sugar"},
|
||||||
{"farming:wheat", "farming:flour", "farming:wheat"},
|
-- {"farming:wheat", "farming:flour", "farming:wheat"},
|
||||||
},
|
-- },
|
||||||
replacements = {{ "mobs:bucket_milk", "bucket:bucket_empty"}}
|
-- replacements = {{ "mobs:bucket_milk", "bucket:bucket_empty"}}
|
||||||
})
|
--})
|
||||||
|
--cant make it on MMS
|
||||||
-- coffee cake
|
-- coffee cake
|
||||||
register_pie("coff", "Coffee Cake")
|
--register_pie("coff", "Coffee Cake")
|
||||||
|
--
|
||||||
minetest.register_craft({
|
--minetest.register_craft({
|
||||||
output = "pie:coff_0",
|
-- output = "pie:coff_0",
|
||||||
recipe = {
|
-- recipe = {
|
||||||
{"farming:coffee_beans", "mobs:bucket_milk", "farming:coffee_beans"},
|
-- {"farming:coffee_beans", "mobs:bucket_milk", "farming:coffee_beans"},
|
||||||
{"farming:sugar", "mobs:egg", "farming:sugar"},
|
-- {"farming:sugar", "mobs:egg", "farming:sugar"},
|
||||||
{"farming:wheat", "farming:flour", "farming:wheat"},
|
-- {"farming:wheat", "farming:flour", "farming:wheat"},
|
||||||
},
|
-- },
|
||||||
replacements = {{ "mobs:bucket_milk", "bucket:bucket_empty"}}
|
-- replacements = {{ "mobs:bucket_milk", "bucket:bucket_empty"}}
|
||||||
})
|
--})
|
||||||
|
|
||||||
-- red velvet cake
|
-- red velvet cake
|
||||||
register_pie("rvel", "Red Velvet Cake")
|
register_pie("rvel", "Red Velvet Cake")
|
||||||
|
@ -220,8 +220,8 @@ register_pie("rvel", "Red Velvet Cake")
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "pie:rvel_0",
|
output = "pie:rvel_0",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"farming:cocoa_beans", "mobs:bucket_milk", "dye:red"},
|
{"food:chocolate_powder", "mobs:bucket_milk", "dye:red"},
|
||||||
{"farming:sugar", "mobs:egg", "farming:sugar"},
|
{"food:sugar", "mobs:egg", "food:sugar"},
|
||||||
{"farming:flour", "mobs:cheese", "farming:flour"},
|
{"farming:flour", "mobs:cheese", "farming:flour"},
|
||||||
},
|
},
|
||||||
replacements = {{ "mobs:bucket_milk", "bucket:bucket_empty"}}
|
replacements = {{ "mobs:bucket_milk", "bucket:bucket_empty"}}
|
||||||
|
@ -238,16 +238,76 @@ minetest.register_craft({
|
||||||
{"", "", ""}
|
{"", "", ""}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
--cant make it on MMS
|
||||||
-- banana cake
|
-- 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({
|
minetest.register_craft({
|
||||||
output = "pie:bana_0",
|
output = "pie:orange_0",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"ethereal:banana", "mobs:bucket_milk", "ethereal:banana"},
|
{"food:orange", "mobs:bucket_milk", "food:orange"},
|
||||||
{"farming:sugar", "mobs:egg", "farming:sugar"},
|
{"food:sugar", "mobs:egg", "food:sugar"},
|
||||||
{"farming:wheat", "farming:flour", "farming:wheat"},
|
{"farming:wheat", "farming:flour", "farming:wheat"},
|
||||||
},
|
},
|
||||||
replacements = {{ "mobs:bucket_milk", "bucket:bucket_empty"}}
|
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")
|
||||||
|
|
27
license.txt
|
@ -1,14 +1,21 @@
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
Copyright (c) 2016 TenPlus1
|
||||||
Version 2, December 2004
|
|
||||||
|
|
||||||
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
|
The above copyright notice and this permission notice shall be included in
|
||||||
copies of this license document, and changing it is allowed as long
|
all copies or substantial portions of the Software.
|
||||||
as the name is changed.
|
|
||||||
|
|
||||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
0. You just DO WHAT THE FUCK YOU WANT TO.
|
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.
|
||||||
|
|
After Width: | Height: | Size: 280 B |
After Width: | Height: | Size: 300 B |
After Width: | Height: | Size: 387 B |
After Width: | Height: | Size: 244 B |
After Width: | Height: | Size: 657 B |
After Width: | Height: | Size: 280 B |
After Width: | Height: | Size: 310 B |
After Width: | Height: | Size: 394 B |
After Width: | Height: | Size: 244 B |
After Width: | Height: | Size: 394 B |
After Width: | Height: | Size: 215 B |
After Width: | Height: | Size: 265 B |
After Width: | Height: | Size: 342 B |
After Width: | Height: | Size: 238 B |
After Width: | Height: | Size: 200 B |