Add new plants
|
@ -56,14 +56,13 @@ minetest.register_node("owl_tech:crops",{
|
||||||
|
|
||||||
meta:set_string("grow_in",'')
|
meta:set_string("grow_in",'')
|
||||||
|
|
||||||
meta:set_string()
|
|
||||||
local timer =minetest.get_node_timer(pos)
|
local timer =minetest.get_node_timer(pos)
|
||||||
timer:start(10)
|
timer:start(10)
|
||||||
end,
|
end,
|
||||||
on_timer = function (pos, elapsed)
|
on_timer = function (pos, elapsed)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
local timer =minetest.get_node_timer(pos)
|
local timer =minetest.get_node_timer(pos)
|
||||||
if meta:get_int("state")==0 then
|
if meta:get_int("state")==0 and minetest.get_node(pos).name== 'mcl_core:soil_wet' then
|
||||||
local get_two_seed_around = 0
|
local get_two_seed_around = 0
|
||||||
for i = 1, #LIST_ALL_CROPS ,1 do
|
for i = 1, #LIST_ALL_CROPS ,1 do
|
||||||
if minetest.get_node({x=pos.x-1 ,y=pos.y,z=pos.z}).name == LIST_ALL_CROPS[i] then
|
if minetest.get_node({x=pos.x-1 ,y=pos.y,z=pos.z}).name == LIST_ALL_CROPS[i] then
|
||||||
|
|
|
@ -62,6 +62,7 @@ local list_all_crops ={
|
||||||
{"ruber_wheat","Ruber Wheat","owl_tech_ruber_wheat_",8,"owl_tech.seed_ruber_wheat.png","owl_tech:ruber_dust",2,200,"none"},--copgrow
|
{"ruber_wheat","Ruber Wheat","owl_tech_ruber_wheat_",8,"owl_tech.seed_ruber_wheat.png","owl_tech:ruber_dust",2,200,"none"},--copgrow
|
||||||
{"coaltus","Coaltus","owl_tech_coaltus_",8,"owl_tech.seed_coaltus.png","owl_tech:coal_dust",1,200,"owl_tech:coal_block"},
|
{"coaltus","Coaltus","owl_tech_coaltus_",8,"owl_tech.seed_coaltus.png","owl_tech:coal_dust",1,200,"owl_tech:coal_block"},
|
||||||
{"copgrow","Copgrow","owl_tech_copgrow_",8,"owl_tech.seed_copgrow.png","owl_tech:copper_dust",1,200,"owl_tech:copper_block"},
|
{"copgrow","Copgrow","owl_tech_copgrow_",8,"owl_tech.seed_copgrow.png","owl_tech:copper_dust",1,200,"owl_tech:copper_block"},
|
||||||
|
{"ironmaiden","Iron Maiden","owl_tech_iron_maiden_",8,"owl_tech.seed_iron_maiden.png","owl_tech:iron_dust",1,200,"owl_tech:iron_block"},
|
||||||
}
|
}
|
||||||
|
|
||||||
for i = 1, #list_all_crops, 1 do
|
for i = 1, #list_all_crops, 1 do
|
||||||
|
|
|
@ -76,5 +76,8 @@ LIST_ALL_CROPS={
|
||||||
}
|
}
|
||||||
--List all crops breed 1)time ,2)name new crop
|
--List all crops breed 1)time ,2)name new crop
|
||||||
CROPS_BREED={
|
CROPS_BREED={
|
||||||
wheatwheat={100,"owl_tech:plant_ruber_wheat"},
|
wheatwheat={100,"owl_tech:plant_ruber_wheat1"},
|
||||||
|
beetrootbeetroot={100,"owl_tech:plant_copgrow1"},
|
||||||
|
carrotcarrot={100,"owl_tech:plant_coaltus"},
|
||||||
|
potato_itempotato_item={100,"owl_tech:plant_ironmaiden"},
|
||||||
}
|
}
|
|
@ -685,8 +685,8 @@ local gems_orew_array={
|
||||||
{"coal","Coal ",true,1,"#1b1b1b","owl_tech_gem_1.png","owl_tech_gem_block_1.png","owl_tech_dust_block_1.png",80},
|
{"coal","Coal ",true,1,"#1b1b1b","owl_tech_gem_1.png","owl_tech_gem_block_1.png","owl_tech_dust_block_1.png",80},
|
||||||
{"sulfur","Sulfur ",true,1,"#c2a800","owl_tech_gem_1.png","owl_tech_gem_block_1.png","owl_tech_dust_block_1.png",0},
|
{"sulfur","Sulfur ",true,1,"#c2a800","owl_tech_gem_1.png","owl_tech_gem_block_1.png","owl_tech_dust_block_1.png",0},
|
||||||
{"saltpeter","Saltpeter ",true,1,"#b3e6ee","owl_tech_gem_1.png","owl_tech_gem_block_1.png","owl_tech_dust_block_1.png",0},
|
{"saltpeter","Saltpeter ",true,1,"#b3e6ee","owl_tech_gem_1.png","owl_tech_gem_block_1.png","owl_tech_dust_block_1.png",0},
|
||||||
{"diamond","Diamond ",true,3,"#d40000","owl_tech_gem_2.png","owl_tech_gem_block_2.png","owl_tech_dust_block_1.png",0},
|
{"diamond","Diamond ",true,3,"#77cefb","owl_tech_gem_2.png","owl_tech_gem_block_2.png","owl_tech_dust_block_1.png",0},
|
||||||
{"ruby","Ruby ",true,3,"#77cefb","owl_tech_gem_2.png","owl_tech_gem_block_2.png","owl_tech_dust_block_1.png",0},--
|
{"ruby","Ruby ",true,3,"#d40000","owl_tech_gem_2.png","owl_tech_gem_block_2.png","owl_tech_dust_block_1.png",0},--
|
||||||
{"raw_ruber","Raw Ruber ",false,1,"#dace00","owl_tech_gem_3.png","owl_tech_gem_block_3.png","owl_tech_dust_block_1.png",0},
|
{"raw_ruber","Raw Ruber ",false,1,"#dace00","owl_tech_gem_3.png","owl_tech_gem_block_3.png","owl_tech_dust_block_1.png",0},
|
||||||
{"ruber","Ruber ",false,1,"#171717","default_steel_ingot.png","default_steel_block.png","owl_tech_dust_block_1.png",0},
|
{"ruber","Ruber ",false,1,"#171717","default_steel_ingot.png","default_steel_block.png","owl_tech_dust_block_1.png",0},
|
||||||
}
|
}
|
||||||
|
@ -701,7 +701,6 @@ for i, value in ipairs(gems_orew_array) do
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
stack_max = 64,
|
stack_max = 64,
|
||||||
groups = {pickaxey=gems_orew_array[i][4], building_block=1, material_stone=1, blast_furnace_smeltable=1},
|
groups = {pickaxey=gems_orew_array[i][4], building_block=1, material_stone=1, blast_furnace_smeltable=1},
|
||||||
drop = "owl_tech:coal_ore",
|
|
||||||
sounds = mcl_sounds.node_sound_stone_defaults(),
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
||||||
_mcl_blast_resistance = 3,
|
_mcl_blast_resistance = 3,
|
||||||
_mcl_hardness = 3,
|
_mcl_hardness = 3,
|
||||||
|
|
|
@ -79,7 +79,7 @@ minetest.register_ore({
|
||||||
offset = 0,
|
offset = 0,
|
||||||
scale = 3,
|
scale = 3,
|
||||||
spread = {x=125, y=125, z=125},
|
spread = {x=125, y=125, z=125},
|
||||||
seed = 12341423,
|
seed = 987123,
|
||||||
octaves = 3,
|
octaves = 3,
|
||||||
persistence = 0,1,
|
persistence = 0,1,
|
||||||
lacunarity = 4,
|
lacunarity = 4,
|
||||||
|
@ -101,12 +101,12 @@ minetest.register_ore({
|
||||||
offset = 0,
|
offset = 0,
|
||||||
scale = 3,
|
scale = 3,
|
||||||
spread = {x=125, y=125, z=125},
|
spread = {x=125, y=125, z=125},
|
||||||
seed = 12341423,
|
seed = 987123,
|
||||||
octaves = 3,
|
octaves = 3,
|
||||||
persistence = 0,1,
|
persistence = 0,1,
|
||||||
lacunarity = 4,
|
lacunarity = 4,
|
||||||
},
|
},
|
||||||
noise_threshold = 1.6 ,
|
noise_threshold = 1.6,
|
||||||
random_factor = 1.0,
|
random_factor = 1.0,
|
||||||
})
|
})
|
||||||
--------------------------------------
|
--------------------------------------
|
||||||
|
|
After Width: | Height: | Size: 5.4 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 5.1 KiB |
After Width: | Height: | Size: 5.2 KiB |
After Width: | Height: | Size: 5.3 KiB |
After Width: | Height: | Size: 5.2 KiB |
After Width: | Height: | Size: 5.4 KiB |
After Width: | Height: | Size: 5.8 KiB |
After Width: | Height: | Size: 6.0 KiB |