Trees Partially Work. Added recipes and foods
|
@ -0,0 +1,3 @@
|
|||
default
|
||||
intllib?
|
||||
lucky_block?
|
|
@ -0,0 +1 @@
|
|||
This mod adds bees and beehives into minetest
|
|
@ -0,0 +1,21 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2018 TenPlus1
|
||||
|
||||
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:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
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.
|
|
@ -0,0 +1,22 @@
|
|||
# Template
|
||||
|
||||
Bees =
|
||||
Honey Extractor =
|
||||
Wild Bee Hive =
|
||||
Artificial Bee Hive =
|
||||
Industrial Bee Hive =
|
||||
Colony died, not enough flowers in area! =
|
||||
Requires Queen bee to function =
|
||||
Progress =
|
||||
Does not have empty frame(s) =
|
||||
Queen inserted, now for empty frames =
|
||||
Bees are aclimating =
|
||||
Empty hive frame =
|
||||
Filled hive frame =
|
||||
Honey Bottle =
|
||||
Bees wax =
|
||||
Honey comb =
|
||||
Queen Bee =
|
||||
Smoker =
|
||||
Grafting tool =
|
||||
[MOD] Bees Loaded! =
|
|
@ -0,0 +1 @@
|
|||
name = bees
|
|
@ -0,0 +1,104 @@
|
|||
BEES MOD V2.3
|
||||
-------------
|
||||
|
||||
FEATURES
|
||||
--------
|
||||
|
||||
2.3
|
||||
- protection check when opening artificial/industrial hives
|
||||
- protection check when removing items from extractor
|
||||
- Intllib support (template added)
|
||||
- Wild hives are removed if found floating in mid air
|
||||
- Change compatibility abm to lbm
|
||||
- Change from WTFPL to MIT license
|
||||
- Make wild hive abm less intensive (thanks VanessaE)
|
||||
- Added 9x Lucky Blocks
|
||||
- Smokers have 200 uses before breaking
|
||||
|
||||
2.2.2
|
||||
- Pipeworks compatibility (Industrial beehive)
|
||||
|
||||
2.2.1
|
||||
- removed steel dependency temporarily
|
||||
- fixed the craft for the extractor (and added alias for)
|
||||
|
||||
2.2
|
||||
- craft for extractor
|
||||
- extractor texture update
|
||||
- a craft for the smoker
|
||||
|
||||
2.1
|
||||
- bees polinate flowers nearby, causing them to multiply
|
||||
- add formspec to wild and artificial hive when using grafting tool
|
||||
- smoke, flying wax and bee particles
|
||||
- smokers to calm down the bees before opening the hive
|
||||
- a centrifuge to extract the honey and from the filled frames
|
||||
- grab eatable honeycomb from wild hives
|
||||
- craft a grafting tool to extract queen bees from wild hives
|
||||
- craft artificial hives and frames
|
||||
|
||||
1.0
|
||||
- spawn wild bee hives on tree leaves
|
||||
- use the queen bee to populate artificial hives
|
||||
- plant flowers near hives to increase their productivity
|
||||
- spawning bee colonies
|
||||
|
||||
FUTURE
|
||||
------
|
||||
- more realistic spawning of wild bee hives
|
||||
|
||||
CONTRIBUTORS
|
||||
------------
|
||||
- bas080
|
||||
- VanessaE (wild bee hive nodebox)
|
||||
- Neuromancer (textures for wild bee hive and inspiration for other textures)
|
||||
- Novatux (enabled pipeworks compatibility)
|
||||
- TenPlus1 (tweaked and tidied code, protection check)
|
||||
|
||||
FORUM
|
||||
-----
|
||||
https://forum.minetest.net/viewtopic.php?pid=102905
|
||||
|
||||
LICENSE
|
||||
-------
|
||||
- codes is WTFPL
|
||||
- textures are CC BY-SA
|
||||
|
||||
CRAFTS
|
||||
------
|
||||
|
||||
Honey Extractor: S = steel ingot, T = stick, M = mese crystal
|
||||
|
||||
_ S _
|
||||
S T S
|
||||
M S M
|
||||
|
||||
Empty Frame: W = wood, S = stick
|
||||
|
||||
W W W
|
||||
S S S
|
||||
S S S
|
||||
|
||||
Grafting Tool: S = steel ingot, T = stick
|
||||
|
||||
_ S
|
||||
T _
|
||||
|
||||
Artificial Beehive: W = wood, S = stick
|
||||
|
||||
W W W
|
||||
W S W
|
||||
W S W
|
||||
|
||||
Smoker: S = steel ingot, T = torch, R = red wool
|
||||
|
||||
S R
|
||||
_ T
|
||||
_ S
|
||||
|
||||
Industrial Beehive: S = steel ingot, P = plastic sheeting, H = artificial hive,
|
||||
P = pipeworks tube
|
||||
|
||||
S P S
|
||||
T H T
|
||||
S P S
|
After Width: | Height: | Size: 21 KiB |
After Width: | Height: | Size: 460 B |
After Width: | Height: | Size: 628 B |
After Width: | Height: | Size: 366 B |
After Width: | Height: | Size: 445 B |
After Width: | Height: | Size: 642 B |
After Width: | Height: | Size: 543 B |
After Width: | Height: | Size: 200 B |
After Width: | Height: | Size: 477 B |
After Width: | Height: | Size: 346 B |
After Width: | Height: | Size: 465 B |
After Width: | Height: | Size: 582 B |
After Width: | Height: | Size: 135 B |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 202 B |
After Width: | Height: | Size: 378 B |
After Width: | Height: | Size: 697 B |
After Width: | Height: | Size: 336 B |
After Width: | Height: | Size: 502 B |
After Width: | Height: | Size: 255 B |
After Width: | Height: | Size: 670 B |
|
@ -114,7 +114,7 @@ minetest.register_craft({
|
|||
"farming:mixingbowl", "group:water_bucket", "",
|
||||
"farming:flour", "farming:salt", ""
|
||||
},
|
||||
replacements = {{"group:food_mortar_pestle", "farming:mortar_pestle"}},
|
||||
replacements = {{"farming:mixingbowl", "farming:mixingbowl"}},
|
||||
})
|
||||
|
||||
-- sliced bread
|
||||
|
@ -154,6 +154,33 @@ minetest.register_craft({
|
|||
recipe = "farming:bread_slice"
|
||||
})
|
||||
|
||||
--bun
|
||||
minetest.register_craftitem("farming:bun", {
|
||||
description = S("Bun"),
|
||||
inventory_image = "farming_bun.png",
|
||||
on_use = minetest.item_eat(1),
|
||||
groups = {food_toast = 1, flammable = 2},
|
||||
})
|
||||
|
||||
minetest.register_craftitem("farming:dough_bun", {
|
||||
description = S("Bun Dough"),
|
||||
inventory_image = "farming_dough_bun.png",
|
||||
groups = {food_dough = 1, flammable = 2},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "farming:dough_bun",
|
||||
recipe = {"farming:dough"},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
cooktime = 3,
|
||||
output = "farming:bun",
|
||||
recipe = "farming:dough_bun"
|
||||
})
|
||||
|
||||
-- toast sandwich
|
||||
minetest.register_craftitem("farming:toast_sandwich", {
|
||||
description = S("Toast Sandwich"),
|
||||
|
|
150
farming/food.lua
|
@ -35,6 +35,45 @@ minetest.register_craftitem("farming:bacon", {
|
|||
inventory_image = "farming_bacon.png",
|
||||
groups = {food_pork = 1},
|
||||
})
|
||||
|
||||
--= Pepperoni
|
||||
minetest.register_craftitem("farming:pepperoni", {
|
||||
description = S("Pepperoni"),
|
||||
inventory_image = "farming_pepperoni.png",
|
||||
})
|
||||
|
||||
--= Cheese
|
||||
minetest.register_craftitem("farming:cheese", {
|
||||
description = S("Cheese"),
|
||||
inventory_image = "farming_cheese.png",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:cheese",
|
||||
recipe = {
|
||||
{"farming:pot", "group:food_milk", ""},
|
||||
{"farming:salt", "", ""},
|
||||
{"", "", ""},
|
||||
},
|
||||
replacements = {{ "farming:pot", "farming:pot"}},
|
||||
replacements = {{ "farming:soy_milk", "vessels:glass_bottle"}}
|
||||
})
|
||||
|
||||
|
||||
--= Cheese Slice
|
||||
minetest.register_craftitem("farming:cheese_slice", {
|
||||
description = S("Cheese Slice"),
|
||||
inventory_image = "farming_cheese_slice.png",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "farming:cheese_slice 9",
|
||||
recipe = {
|
||||
"farming:cheese"
|
||||
},
|
||||
})
|
||||
|
||||
--= Foobar
|
||||
minetest.register_craftitem("farming:foobar", {
|
||||
description = S("Foobar"),
|
||||
|
@ -49,3 +88,114 @@ minetest.register_craft({
|
|||
},
|
||||
replacements = {{"group:bucket_empty", "bucket:bucket_empty"}},
|
||||
})
|
||||
|
||||
--= Tofu
|
||||
minetest.register_craftitem("farming:tofu_silken", {
|
||||
description = S("Silken Tofu"),
|
||||
inventory_image = "farming_tofu_silken.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem("farming:tofu_firm", {
|
||||
description = S("Firm Tofu"),
|
||||
inventory_image = "farming_tofu_firm.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem("farming:tofacon_raw", {
|
||||
description = S("Raw Tofacon"),
|
||||
inventory_image = "farming_tofacon.png",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:tofacon_raw 5",
|
||||
recipe = {
|
||||
{"farming:cutting_board", "farming:tofu_firm", "farming:cooking_oil"},
|
||||
{"farming:salt", "farming:flour", "group:food_sugar"},
|
||||
{"", "", ""},
|
||||
},
|
||||
replacements = {{ "farming:cutting_board", "farming:cutting_board"}}
|
||||
})
|
||||
|
||||
minetest.register_craftitem("farming:tofacon_cooked", {
|
||||
description = S("Cooked Tofacon"),
|
||||
inventory_image = "farming_tofacon_cooked.png",
|
||||
groups = {food_pork = 1},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
cooktime = 4,
|
||||
output = "farming:tofacon_cooked",
|
||||
recipe = "farming:tofacon_raw"
|
||||
})
|
||||
|
||||
--= Baits
|
||||
minetest.register_craftitem("farming:bait_fruit", {
|
||||
description = S("Fruit Bait"),
|
||||
inventory_image = "farming_bait_fruit.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem("farming:bait_grain", {
|
||||
description = S("Grain Bait"),
|
||||
inventory_image = "farming_bait_grain.png",
|
||||
})
|
||||
|
||||
--= Sandwiches
|
||||
minetest.register_craftitem("farming:pork_bbq", {
|
||||
description = S("BBQ Pulled Pork"),
|
||||
inventory_image = "farming_bbq_pulled_pork.png",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:pork_bbq",
|
||||
recipe = {
|
||||
{"farming:cutting_board", "farming:tofacon_cooked", "farming:bun"},
|
||||
{"farming:tomato", "farming:spice_leaf", ""},
|
||||
{"", "", ""},
|
||||
},
|
||||
replacements = {{ "farming:cutting_board", "farming:pot"}},
|
||||
})
|
||||
|
||||
minetest.register_craftitem("farming:burger_cheeseburger", {
|
||||
description = S("Cheeseburger"),
|
||||
inventory_image = "farming_cheeseburger.png",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:burger_cheeseburger",
|
||||
recipe = {
|
||||
{"farming:burger_ham", "group:food_cheese", ""},
|
||||
{"", "", ""},
|
||||
{"", "", ""},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craftitem("farming:burger_ham", {
|
||||
description = S("Hamburger"),
|
||||
inventory_image = "farming_hamburger.png",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:burger_ham",
|
||||
recipe = {
|
||||
{"farming:skillet", "group:food_meat", ""},
|
||||
{"farming:bun", "", ""},
|
||||
{"", "", ""},
|
||||
},
|
||||
replacements = {{ "farming:skillet", "farming:skillet"}},
|
||||
})
|
||||
|
||||
|
||||
|
||||
--= Sugar
|
||||
minetest.register_craftitem("farming:sugar", {
|
||||
description = S("Sugar"),
|
||||
inventory_image = "farming_sugar.png",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "farming:sugar",
|
||||
recipe = {
|
||||
"default:papyrus"
|
||||
}
|
||||
})
|
|
@ -1,16 +1,16 @@
|
|||
minetest.register_craftitem("farming:pizza", {
|
||||
description = ("Pizza"),
|
||||
inventory_image = "farming_pizza.png",
|
||||
minetest.register_craftitem("farming:pizza_pepperoni", {
|
||||
description = ("Pepperoni Pizza"),
|
||||
inventory_image = "farming_pepperoni_pizza.png",
|
||||
on_use = minetest.item_eat(5),
|
||||
groups = {flammable = 2},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "farming:pizza",
|
||||
output = "farming:pizza_pepperoni",
|
||||
recipe = {
|
||||
"farming:juicer", "farming:tomato", "",
|
||||
"", "", "",
|
||||
"", "", ""
|
||||
{"farming:bakeware", "farming:dough", "farming:tomato"},
|
||||
{"group:food_cheese", "farming:pepperoni", ""},
|
||||
{"", "", ""},
|
||||
},
|
||||
})
|
||||
replacements = {{ "farming:bakeware", "farming:bakeware"}}
|
||||
})
|
||||
|
|
|
@ -677,6 +677,9 @@ dofile(farming.path.."/fruit.lua")
|
|||
dofile(farming.path.."/utensils/presser.lua")
|
||||
dofile(farming.path.."/utensils/mixing_bowl.lua")
|
||||
dofile(farming.path.."/utensils/bakeware.lua")
|
||||
dofile(farming.path.."/utensils/pot.lua")
|
||||
dofile(farming.path.."/utensils/juicer.lua")
|
||||
dofile(farming.path.."/utensils/cutting_board.lua")
|
||||
|
||||
dofile(farming.path.."/trees/support.lua")
|
||||
dofile(farming.path.."/trees/nodereg.lua")
|
||||
|
@ -685,6 +688,9 @@ dofile(farming.path.."/trees/bamboo.lua")
|
|||
dofile(farming.path.."/trees/itemreg.lua")
|
||||
dofile(farming.path.."/trees/framework.lua")
|
||||
dofile(farming.path.."/trees/trees.lua")
|
||||
|
||||
|
||||
dofile(farming.path.."/food/pizza.lua")
|
||||
-- helper function
|
||||
local function ddoo(file, check)
|
||||
|
||||
|
|
|
@ -1,19 +1,10 @@
|
|||
minetest.register_craft({
|
||||
output = "farming:soy_milk",
|
||||
recipe = {
|
||||
{"group:food_sugar", "group:food_milk", "group:food_sugar"},
|
||||
{"group:food_sugar", "group:food_egg", "group:food_sugar"},
|
||||
{"group:food_wheat", "group:food_flour", "group:food_wheat"},
|
||||
},
|
||||
replacements = {{ "mobs:bucket_milk", "bucket:bucket_empty"}}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "farming:sauce_soy",
|
||||
recipe = {
|
||||
{"farming:juicer", "farming:soybeans", ""},
|
||||
{"group:water", "farming:salt", ""},
|
||||
{"group:water_bucket", "farming:salt", ""},
|
||||
{"", "", ""},
|
||||
},
|
||||
replacements = {{ "default:water", "bucket:bucket_empty"}}
|
||||
})
|
||||
replacements = {{ "default:water_source", "bucket:bucket_empty"}},
|
||||
replacements = {{ "default:river_water_source", "bucket:bucket_empty"}}
|
||||
})
|
After Width: | Height: | Size: 402 B |
After Width: | Height: | Size: 368 B |
After Width: | Height: | Size: 423 B |
After Width: | Height: | Size: 619 B |
After Width: | Height: | Size: 304 B |
After Width: | Height: | Size: 389 B |
After Width: | Height: | Size: 484 B |
After Width: | Height: | Size: 648 B |
After Width: | Height: | Size: 827 B |
After Width: | Height: | Size: 541 B |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 258 B |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 352 B |
After Width: | Height: | Size: 272 B |
After Width: | Height: | Size: 167 B |
After Width: | Height: | Size: 200 B |
After Width: | Height: | Size: 367 B |
After Width: | Height: | Size: 322 B |
|
@ -60,4 +60,9 @@ MIT License Japanese Foods
|
|||
|
||||
leek
|
||||
rice
|
||||
soybeans
|
||||
soybeans
|
||||
|
||||
MIT License MysticalAgriculture
|
||||
|
||||
--blocks
|
||||
basic_reprocessor
|
|
@ -1,31 +1,29 @@
|
|||
local type = fruit_names
|
||||
node_type = fruit_names
|
||||
local fruit_names = {"cherries","olives","pomegranate","cinnamon","peach","apricot","apple","avocado","fig","breadfruit","banana","almond","cashew","date","dragonfruit","durian","grapes","guava","hazelnut","grapefruit","gooseberry","jackfruit","coconut","candlenut","lemon","lime","lychee","nutmeg","maple","mango","papaya","passionfruit","pecan","persimmon","pistachio","plum","rambutan","soursop","starfruit","tamarind","vanillabean","walnut","peppercorn","pawpaw","spiderweb","orange"}
|
||||
local fruit_names = {"cherry","pomegranate","peach","apricot","cinnamon","apple","avocado","fig","breadfruit","banana","almond","cashew","date","dragonfruit","durian","guava","hazelnut","grapefruit","gooseberry","jackfruit","coconut","candlenut","lemon","lime","lychee","olive","nutmeg","maple","mango","papaya","passionfruit","pecan","persimmon","pistachio","plum","rambutan","soursop","starfruit","tamarind","vanillabean","walnut","peppeprcorn","pawpaw","paperbark","spiderweb","orange"}
|
||||
for i, v in ipairs(fruit_names)do
|
||||
minetest.register_abm({
|
||||
label = "Fruit Pod Grow",
|
||||
nodenames = {"farming:pod","farming:pod2","farming:pod3"},
|
||||
neighbors = {"air"},
|
||||
interval = 7,
|
||||
chance = 0.5,
|
||||
chance = 2,
|
||||
action = function(pos, node)
|
||||
local meta = minetest.get_meta(pos)
|
||||
if(node.name == "farming:pod")then
|
||||
local type = meta:get_string("type")
|
||||
minetest.set_node(pos,{name="farming:pod2"})
|
||||
meta:set_string("type",type)
|
||||
meta:set_string("type",v)
|
||||
old_expansion.particles_leafdrop(pos)
|
||||
elseif(node.name == "farming:pod2")then
|
||||
local type = meta:get_string("type")
|
||||
minetest.set_node(pos,{name="farming:pod3"})
|
||||
meta:set_string("type",type)
|
||||
meta:set_string("type",v)
|
||||
old_expansion.particles_leafdrop(pos)
|
||||
elseif(node.name == "farming:pod3")then
|
||||
local type = meta:get_string("type")
|
||||
minetest.set_node(pos,{name = "farming:fruit_"..type})
|
||||
meta:set_string("type",type)
|
||||
minetest.set_node(pos,{name = "farming:fruit_"..v})
|
||||
meta:set_string("type",v)
|
||||
old_expansion.particles_leafdrop(pos)
|
||||
end
|
||||
if(meta:get_string("type") ~= "") then
|
||||
end
|
||||
end
|
||||
})
|
||||
})
|
||||
end
|
|
@ -211,25 +211,29 @@ minetest.register_node("farming:log_paperbark", {
|
|||
})
|
||||
|
||||
-- -- -- -- -- -- -- Fruits
|
||||
local fruit_names = {"cherries","olives","pomegranate","cinnamon","peach","apricot","apple","avocado","fig","breadfruit","banana","almond","cashew","date","dragonfruit","durian","grapes","guava","hazelnut","grapefruit","gooseberry","jackfruit","coconut","candlenut","lemon","lime","lychee","nutmeg","maple","mango","papaya","passionfruit","pecan","persimmon","pistachio","plum","rambutan","soursop","starfruit","tamarind","vanillabean","walnut","peppercorn","pawpaw","spiderweb","orange"}
|
||||
local fruit_names = {"cherry","pomegranate","peach","apricot","cinnamon","apple","avocado","fig","breadfruit","banana","almond","cashew","date","dragonfruit","durian","guava","hazelnut","grapefruit","gooseberry","jackfruit","coconut","candlenut","lemon","lime","lychee","olive","nutmeg","maple","mango","papaya","passionfruit","pecan","persimmon","pistachio","plum","rambutan","soursop","starfruit","tamarind","vanillabean","walnut","peppeprcorn","pawpaw","paperbark","spiderweb","orange"}
|
||||
for k,v in ipairs(fruit_names)do
|
||||
minetest.register_node("farming:fruit_"..v,{
|
||||
description = v,
|
||||
tiles = {"fruit_"..v..".png"},
|
||||
wield_image = {"fruit_"..v..".png"},
|
||||
inventory_image = {"fruit_"..v..".png"},
|
||||
drawtype = "plantlike",
|
||||
waving = 1,
|
||||
walkable = false,
|
||||
paramtype = "light",
|
||||
groups = {choppy=3, not_in_creative_inventory = 1, oddly_breakable_by_hand = 1, old_expansion_fruit = 2},
|
||||
paramtype2 = "wallmounted",
|
||||
is_ground_content = true,
|
||||
groups = {choppy=3,oddly_breakable_by_hand = 1, old_expansion_fruit = 2, leafdecay = 3, leafdecay_drop = 1, attached_node = 1},
|
||||
on_construct = function(pos)
|
||||
minetest.get_meta(pos):set_string("type", v)
|
||||
end,
|
||||
on_rightclick = function(pos, node, puncher, pointed_thing)
|
||||
local meta = minetest.get_meta(pos)
|
||||
local type = meta:get_string("type")
|
||||
minetest.swap_node(pos, {name = "farming:pod"})
|
||||
minetest.set_node(pos, {name = "farming:pod"})
|
||||
meta:set_string("type",type)
|
||||
pos.y = pos.y - 0.2;
|
||||
minetest.add_item(pos,{name="farming:"..type, count = 3})
|
||||
|
||||
end
|
||||
})
|
||||
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
minetest.register_craftitem("farming:cutting_board", {
|
||||
description = ("Cutting Board"),
|
||||
inventory_image = "farming_cutting_board.png",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'farming:cutting_board',
|
||||
recipe = {
|
||||
{"default:brick", "", "",},
|
||||
{"", "default:stick", "",},
|
||||
{"", "", "group:wood"},
|
||||
}
|
||||
})
|
|
@ -0,0 +1,13 @@
|
|||
minetest.register_craftitem("farming:juicer", {
|
||||
description = ("Juicer"),
|
||||
inventory_image = "farming_juicer.png",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'farming:juicer',
|
||||
recipe = {
|
||||
{"", "group:stone", "",},
|
||||
{"", "default:slab_stone", "",},
|
||||
{"", "", "",},
|
||||
}
|
||||
})
|
|
@ -0,0 +1,13 @@
|
|||
minetest.register_craftitem("farming:pot", {
|
||||
description = ("Pot"),
|
||||
inventory_image = "farming_pot.png",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'farming:pot',
|
||||
recipe = {
|
||||
{"", "", "",},
|
||||
{"default:stick", "default:brick", "default:brick",},
|
||||
{"", "default:brick", "default:brick"},
|
||||
}
|
||||
})
|
|
@ -17,9 +17,9 @@ local function active_formspec(fuel_percent, item_percent)
|
|||
default.gui_bg..
|
||||
default.gui_bg_img..
|
||||
default.gui_slots..
|
||||
"list[current_name;src;2.5,1;1,1;]"..
|
||||
"image[3.75,1.5;1,1;gui_furnace_arrow_bg.png^[lowpart:"..
|
||||
(item_percent)..":gui_furnace_arrow_fg.png^[transformR270]"..
|
||||
"list[current_name;src;3.44,0.6;1,1;]"..
|
||||
"image[3.45,.07;1,.2;mp_mw_bar.png^[lowpart:"..
|
||||
(item_percent)..":mp_mw_bar_on.png^[transformR270]"..
|
||||
"list[current_name;dst;4.75,0.96;3,2;]"..
|
||||
"list[current_player;main;0,4.25;8,1;]"..
|
||||
"list[current_player;main;0,5.5;8,3;8]"..
|
||||
|
@ -36,8 +36,8 @@ local inactive_formspec =
|
|||
default.gui_bg..
|
||||
default.gui_bg_img..
|
||||
default.gui_slots..
|
||||
"list[current_name;src;2,1.75;1,1;]"..
|
||||
"image[3.75,1.5;1,1;gui_furnace_arrow_bg.png^[transformR270]"..
|
||||
"list[current_name;src;3.44,0.6;1,1;]"..
|
||||
"image[3.45,.07;1,.2;mp_mw_bar.png^[transformR270]"..
|
||||
"list[current_name;dst;3,2.50;2,1;]"..
|
||||
"list[current_player;main;0,4.25;8,1;]"..
|
||||
"list[current_player;main;0,5.5;8,3;8]"..
|
||||
|
@ -198,22 +198,18 @@ local function presser_node_timer(pos, elapsed)
|
|||
end
|
||||
end
|
||||
|
||||
if inv:contains_item("src", "farming:soybean")then
|
||||
if inv:contains_item("src", "farming:soybeans")then
|
||||
if inv:room_for_item("dst", "farming:bait_fruit") then
|
||||
inv:remove_item("src", "farming:soybean")
|
||||
inv:remove_item("src", "farming:soybeans")
|
||||
inv:add_item("dst", "farming:bait_fruit")
|
||||
inv:add_item("dst", "farming:milk_soy")
|
||||
end
|
||||
end
|
||||
|
||||
if inv:contains_item("src", "farming:milk_soy")then
|
||||
inv:remove_item("src", "farming:milk_soy")
|
||||
inv:add_item("dst", "farming:tofu_silken")
|
||||
end
|
||||
end
|
||||
|
||||
if inv:contains_item("src", "farming:tofu_silken")then
|
||||
inv:remove_item("src", "farming:tofu_silken")
|
||||
inv:add_item("dst", "farming:tofu_firm")
|
||||
inv:add_item("dst", "farming:soy_milk")
|
||||
end
|
||||
|
||||
if inv:contains_item("src", "farming:seed_cotton")then
|
||||
|
@ -239,12 +235,12 @@ end
|
|||
minetest.register_node("farming:presser", {
|
||||
description = "Presser",
|
||||
tiles = {
|
||||
"pressertop.png",
|
||||
"apiarytop.png",
|
||||
"presserside.png",
|
||||
"presserside.png",
|
||||
"presserside.png",
|
||||
"presserfront.png"
|
||||
"farming_presser_top.png",
|
||||
"farming_presser_bottom.png",
|
||||
"farming_presser_side.png",
|
||||
"farming_presser_side.png",
|
||||
"farming_presser_side.png",
|
||||
"farming_presser_front.png"
|
||||
},
|
||||
paramtype2 = "facedir",
|
||||
groups = {cracky = 2, tubedevice = 1, tubedevice_receiver = 1},
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
minetest.register_craftitem("farming:skillet", {
|
||||
description = ("Skillet"),
|
||||
inventory_image = "farming_skillet.png",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'farming:skillet',
|
||||
recipe = {
|
||||
{"default:brick", "", "",},
|
||||
{"", "default:brick", "",},
|
||||
{"", "", "default:stick"},
|
||||
}
|
||||
})
|