From faab371aa546a669482b66f91b4e0ed7555b67cc Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Sat, 12 Nov 2016 11:03:04 +0000 Subject: [PATCH] added 13x lucky blocks --- README.txt | 3 +++ depends.txt | 1 + init.lua | 3 ++- lucky_block.lua | 18 ++++++++++++++++++ 4 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 lucky_block.lua diff --git a/README.txt b/README.txt index 86a5fe3..811a535 100644 --- a/README.txt +++ b/README.txt @@ -45,6 +45,9 @@ Changelog: 0.1 - Fixed growing bug 0.0 - Initial release +Lucky Blocks: 10 (plus 3 for default farming items) + + License of media (textures): ---------------------------- Created by PilzAdam (License: WTFPL): diff --git a/depends.txt b/depends.txt index 8c4c21f..3492e4b 100644 --- a/depends.txt +++ b/depends.txt @@ -1,3 +1,4 @@ default wool intllib? +lucky_block? \ No newline at end of file diff --git a/init.lua b/init.lua index 4c3b945..b08112e 100644 --- a/init.lua +++ b/init.lua @@ -1,5 +1,5 @@ --[[ - Minetest Farming Redo Mod 1.23 (14th October 2016) + Minetest Farming Redo Mod 1.23 (12th November 2016) by TenPlus1 NEW growing routine by prestidigitator auto-refill by crabman77 @@ -710,3 +710,4 @@ dofile(farming.path.."/barley.lua") dofile(farming.path.."/donut.lua") dofile(farming.path.."/mapgen.lua") dofile(farming.path.."/compatibility.lua") -- Farming Plus compatibility +dofile(farming.path.."/lucky_block.lua") diff --git a/lucky_block.lua b/lucky_block.lua new file mode 100644 index 0000000..df5c54f --- /dev/null +++ b/lucky_block.lua @@ -0,0 +1,18 @@ + +-- add lucky blocks + +if minetest.get_modpath("lucky_block") then + + lucky_block:add_blocks({ + {"dro", {"farming:corn"}, 5}, + {"dro", {"farming:coffee_cup_hot"}, 1}, + {"dro", {"farming:bread"}, 5}, + {"nod", "farming:jackolantern", 0}, + {"tro", "farming:jackolantern_on"}, + {"nod", "default:river_water_source", 1}, + {"dro", {"farming:trellis", "farming:grapes"}, 5}, + {"dro", {"farming:bottle_ethanol"}, 1}, + {"nod", "farming:melon", 0}, + {"dro", {"farming:donut", "farming:donut_chocolate", "farming:donut_apple"}, 5}, + }) +end