diff options
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | depends.txt | 4 | ||||
| -rw-r--r-- | init.lua | 30 | 
3 files changed, 35 insertions, 1 deletions
| @@ -4,7 +4,7 @@ by TenPlus1  Depends: Farming Redo -This mod adds a barrel used to ferment grapes into glasses of wine, 9 of which can then be crafted into a bottle of wine.  It can also ferment honey into mead, barley into beer and apples into cider. +This mod adds a barrel used to ferment grapes into glasses of wine, 9 of which can then be crafted into a bottle of wine. It can also ferment honey into mead, barley into beer, wheat into weizen (wheat beer), and apples into cider.  Change log: diff --git a/depends.txt b/depends.txt index b39fd0d..af2d4c5 100644 --- a/depends.txt +++ b/depends.txt @@ -1,4 +1,8 @@  default  intllib?  lucky_block? +<<<<<<< HEAD  pipeworks? +======= +pipeworks? +>>>>>>> upstream/master @@ -136,6 +136,28 @@ minetest.register_node("wine:glass_beer", {  	on_use = minetest.item_eat(2),  }) +-- glass of weizen, or wheat beer +-- The image is a lighter version of the one from RiverKpocc @ deviantart.com +minetest.register_node("wine:glass_wheat_beer", { +	description = S("Wheat Beer"), +	drawtype = "torchlike", --"plantlike", +	visual_scale = 0.8, +	tiles = {"wine_wheat_beer_glass.png"}, +	inventory_image = "wine_wheat_beer_glass.png", +	wield_image = "wine_wheat_beer_glass.png", +	paramtype = "light", +	is_ground_content = false, +	sunlight_propagates = true, +	walkable = false, +	selection_box = { +		type = "fixed", +		fixed = {-0.2, -0.5, -0.2, 0.2, 0.3, 0.2} +	}, +	groups = {vessel = 1, dig_immediate = 3, attached_node = 1}, +	sounds = default.node_sound_glass_defaults(), +	on_use = minetest.item_eat(2), +}) +  -- glass of honey mead  minetest.register_node("wine:glass_mead", {  	description = S("Honey-Mead"), @@ -276,11 +298,14 @@ minetest.register_node("wine:wine_barrel", {  	mesh = "wine_barrel.obj",  	paramtype = "light",  	paramtype2 = "facedir", +  	groups = {  		choppy = 2, oddly_breakable_by_hand = 1, flammable = 2,  		tubedevice = 1, tubedevice_receiver = 1  	}, +  	legacy_facedir_simple = true, +-- 	on_place = minetest.rotate_node,  	on_construct = function(pos)  		local meta = minetest.get_meta(pos) @@ -397,6 +422,7 @@ minetest.register_abm({  			return  		end +  		-- does it contain any of the source items on the list?  		local has_item  		for n = 1, #ferment do @@ -411,16 +437,19 @@ minetest.register_abm({  		-- is there room for additional fermentation?  		if not inv:room_for_item("dst", ferment[has_item][2]) then +  			meta:set_string("infotext", S("Fermenting Barrel (FULL)"))  			return  		end  		local status = meta:get_float("status") +  		-- fermenting (change status)  		if status < 100 then  			meta:set_string("infotext", S("Fermenting Barrel (@1% Done)", status))  			meta:set_float("status", status + 5) +  		else  			inv:remove_item("src", ferment[has_item][1])  			inv:add_item("dst", ferment[has_item][2]) @@ -441,6 +470,7 @@ if minetest.get_modpath("lucky_block") then  lucky_block:add_blocks({  	{"dro", {"wine:glass_wine"}, 5},  	{"dro", {"wine:glass_beer"}, 5}, +	{"dro", {"wine:glass_weizen_beer"}, 5},  	{"dro", {"wine:glass_mead"}, 5},  	{"dro", {"wine:glass_cider"}, 5},  	{"dro", {"wine:glass_tequila"}, 5}, | 
