more grass + story mod update
This commit is contained in:
parent
8424c61949
commit
8298775602
@ -116,20 +116,65 @@ minetest.register_decoration({
|
|||||||
deco_type = "simple",
|
deco_type = "simple",
|
||||||
place_on = {"default:grass"},
|
place_on = {"default:grass"},
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
noise_params = {
|
fill_ratio = 0.07,
|
||||||
offset = -0.015,
|
biomes = {
|
||||||
scale = 0.5,
|
"grassland", "forest"
|
||||||
spread = {x=200, y=200, z=200},
|
|
||||||
seed = 329,
|
|
||||||
octaves = 3,
|
|
||||||
persist = 0.6
|
|
||||||
},
|
},
|
||||||
|
y_min = 0,
|
||||||
|
y_max = 31000,
|
||||||
|
decoration = "default:plant_grass",
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "simple",
|
||||||
|
place_on = {"default:grass"},
|
||||||
|
sidelen = 16,
|
||||||
|
fill_ratio = 0.07,
|
||||||
|
biomes = {
|
||||||
|
"grassland", "forest"
|
||||||
|
},
|
||||||
|
y_min = 0,
|
||||||
|
y_max = 31000,
|
||||||
|
decoration = "default:plant_grass_2",
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "simple",
|
||||||
|
place_on = {"default:grass"},
|
||||||
|
sidelen = 16,
|
||||||
|
fill_ratio = 0.06,
|
||||||
|
biomes = {
|
||||||
|
"grassland", "forest"
|
||||||
|
},
|
||||||
|
y_min = 0,
|
||||||
|
y_max = 31000,
|
||||||
|
decoration = "default:plant_grass_3",
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "simple",
|
||||||
|
place_on = {"default:grass"},
|
||||||
|
sidelen = 16,
|
||||||
|
fill_ratio = 0.04,
|
||||||
biomes = {
|
biomes = {
|
||||||
"grassland"
|
"grassland"
|
||||||
},
|
},
|
||||||
y_min = 0,
|
y_min = 0,
|
||||||
y_max = 31000,
|
y_max = 31000,
|
||||||
decoration = "default:plant_grass",
|
decoration = "default:plant_grass_4",
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "simple",
|
||||||
|
place_on = {"default:grass"},
|
||||||
|
sidelen = 16,
|
||||||
|
fill_ratio = 0.04,
|
||||||
|
biomes = {
|
||||||
|
"grassland"
|
||||||
|
},
|
||||||
|
y_min = 0,
|
||||||
|
y_max = 31000,
|
||||||
|
decoration = "default:plant_grass_5",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_decoration({
|
minetest.register_decoration({
|
||||||
|
@ -116,20 +116,65 @@ minetest.register_decoration({
|
|||||||
deco_type = "simple",
|
deco_type = "simple",
|
||||||
place_on = {"default:grass"},
|
place_on = {"default:grass"},
|
||||||
sidelen = 16,
|
sidelen = 16,
|
||||||
noise_params = {
|
fill_ratio = 0.07,
|
||||||
offset = -0.015,
|
biomes = {
|
||||||
scale = 0.5,
|
"grassland", "forest"
|
||||||
spread = {x=200, y=200, z=200},
|
|
||||||
seed = 329,
|
|
||||||
octaves = 3,
|
|
||||||
persist = 0.6
|
|
||||||
},
|
},
|
||||||
|
y_min = 0,
|
||||||
|
y_max = 31000,
|
||||||
|
decoration = "default:plant_grass",
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "simple",
|
||||||
|
place_on = {"default:grass"},
|
||||||
|
sidelen = 16,
|
||||||
|
fill_ratio = 0.07,
|
||||||
|
biomes = {
|
||||||
|
"grassland", "forest"
|
||||||
|
},
|
||||||
|
y_min = 0,
|
||||||
|
y_max = 31000,
|
||||||
|
decoration = "default:plant_grass_2",
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "simple",
|
||||||
|
place_on = {"default:grass"},
|
||||||
|
sidelen = 16,
|
||||||
|
fill_ratio = 0.06,
|
||||||
|
biomes = {
|
||||||
|
"grassland", "forest"
|
||||||
|
},
|
||||||
|
y_min = 0,
|
||||||
|
y_max = 31000,
|
||||||
|
decoration = "default:plant_grass_3",
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "simple",
|
||||||
|
place_on = {"default:grass"},
|
||||||
|
sidelen = 16,
|
||||||
|
fill_ratio = 0.04,
|
||||||
biomes = {
|
biomes = {
|
||||||
"grassland"
|
"grassland"
|
||||||
},
|
},
|
||||||
y_min = 0,
|
y_min = 0,
|
||||||
y_max = 31000,
|
y_max = 31000,
|
||||||
decoration = "default:plant_grass",
|
decoration = "default:plant_grass_4",
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_decoration({
|
||||||
|
deco_type = "simple",
|
||||||
|
place_on = {"default:grass"},
|
||||||
|
sidelen = 16,
|
||||||
|
fill_ratio = 0.04,
|
||||||
|
biomes = {
|
||||||
|
"grassland"
|
||||||
|
},
|
||||||
|
y_min = 0,
|
||||||
|
y_max = 31000,
|
||||||
|
decoration = "default:plant_grass_5",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_decoration({
|
minetest.register_decoration({
|
||||||
|
@ -347,6 +347,54 @@ minetest.register_node("default:plant_grass", {
|
|||||||
groups = {crumbly = 3, plant = 1},
|
groups = {crumbly = 3, plant = 1},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_node("default:plant_grass_2", {
|
||||||
|
description = "Grass (Plant)",
|
||||||
|
tiles = {"default_plant_grass_2.png"},
|
||||||
|
drawtype = "plantlike",
|
||||||
|
paramtype = "light",
|
||||||
|
inventory_image = "default_plant_grass_2.png",
|
||||||
|
buildable_to = true,
|
||||||
|
walkable = false,
|
||||||
|
groups = {crumbly = 3, plant = 1},
|
||||||
|
drop = "default:plant_grass",
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("default:plant_grass_3", {
|
||||||
|
description = "Grass (Plant)",
|
||||||
|
tiles = {"default_plant_grass_3.png"},
|
||||||
|
drawtype = "plantlike",
|
||||||
|
paramtype = "light",
|
||||||
|
inventory_image = "default_plant_grass_3.png",
|
||||||
|
buildable_to = true,
|
||||||
|
walkable = false,
|
||||||
|
groups = {crumbly = 3, plant = 1},
|
||||||
|
drop = "default:plant_grass",
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("default:plant_grass_4", {
|
||||||
|
description = "Grass (Plant)",
|
||||||
|
tiles = {"default_plant_grass_4.png"},
|
||||||
|
drawtype = "plantlike",
|
||||||
|
paramtype = "light",
|
||||||
|
inventory_image = "default_plant_grass_4.png",
|
||||||
|
buildable_to = true,
|
||||||
|
walkable = false,
|
||||||
|
groups = {crumbly = 3, plant = 1},
|
||||||
|
drop = "default:plant_grass",
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("default:plant_grass_5", {
|
||||||
|
description = "Grass (Plant)",
|
||||||
|
tiles = {"default_plant_grass_5.png"},
|
||||||
|
drawtype = "plantlike",
|
||||||
|
paramtype = "light",
|
||||||
|
inventory_image = "default_plant_grass_5.png",
|
||||||
|
buildable_to = true,
|
||||||
|
walkable = false,
|
||||||
|
groups = {crumbly = 3, plant = 1},
|
||||||
|
drop = "default:plant_grass",
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_node("default:flower_1", {
|
minetest.register_node("default:flower_1", {
|
||||||
description = "Flower",
|
description = "Flower",
|
||||||
tiles = {"default_flower_1.png"},
|
tiles = {"default_flower_1.png"},
|
||||||
|
@ -347,6 +347,54 @@ minetest.register_node("default:plant_grass", {
|
|||||||
groups = {crumbly = 3, plant = 1},
|
groups = {crumbly = 3, plant = 1},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_node("default:plant_grass_2", {
|
||||||
|
description = "Grass (Plant)",
|
||||||
|
tiles = {"default_plant_grass_2.png"},
|
||||||
|
drawtype = "plantlike",
|
||||||
|
paramtype = "light",
|
||||||
|
inventory_image = "default_plant_grass_2.png",
|
||||||
|
buildable_to = true,
|
||||||
|
walkable = false,
|
||||||
|
groups = {crumbly = 3, plant = 1},
|
||||||
|
drop = "default:plant_grass",
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("default:plant_grass_3", {
|
||||||
|
description = "Grass (Plant)",
|
||||||
|
tiles = {"default_plant_grass_3.png"},
|
||||||
|
drawtype = "plantlike",
|
||||||
|
paramtype = "light",
|
||||||
|
inventory_image = "default_plant_grass_3.png",
|
||||||
|
buildable_to = true,
|
||||||
|
walkable = false,
|
||||||
|
groups = {crumbly = 3, plant = 1},
|
||||||
|
drop = "default:plant_grass",
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("default:plant_grass_4", {
|
||||||
|
description = "Grass (Plant)",
|
||||||
|
tiles = {"default_plant_grass_4.png"},
|
||||||
|
drawtype = "plantlike",
|
||||||
|
paramtype = "light",
|
||||||
|
inventory_image = "default_plant_grass_4.png",
|
||||||
|
buildable_to = true,
|
||||||
|
walkable = false,
|
||||||
|
groups = {crumbly = 3, plant = 1},
|
||||||
|
drop = "default:plant_grass",
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("default:plant_grass_5", {
|
||||||
|
description = "Grass (Plant)",
|
||||||
|
tiles = {"default_plant_grass_5.png"},
|
||||||
|
drawtype = "plantlike",
|
||||||
|
paramtype = "light",
|
||||||
|
inventory_image = "default_plant_grass_5.png",
|
||||||
|
buildable_to = true,
|
||||||
|
walkable = false,
|
||||||
|
groups = {crumbly = 3, plant = 1},
|
||||||
|
drop = "default:plant_grass",
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_node("default:flower_1", {
|
minetest.register_node("default:flower_1", {
|
||||||
description = "Flower",
|
description = "Flower",
|
||||||
tiles = {"default_flower_1.png"},
|
tiles = {"default_flower_1.png"},
|
||||||
|
BIN
mods/default/textures/default_plant_grass_2.png
Normal file
BIN
mods/default/textures/default_plant_grass_2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 295 B |
BIN
mods/default/textures/default_plant_grass_3.png
Normal file
BIN
mods/default/textures/default_plant_grass_3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 308 B |
BIN
mods/default/textures/default_plant_grass_4.png
Normal file
BIN
mods/default/textures/default_plant_grass_4.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 309 B |
BIN
mods/default/textures/default_plant_grass_5.png
Normal file
BIN
mods/default/textures/default_plant_grass_5.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 313 B |
@ -53,6 +53,38 @@ minetest.override_item("default:plant_grass", {drop = {
|
|||||||
}
|
}
|
||||||
}})
|
}})
|
||||||
|
|
||||||
|
minetest.override_item("default:plant_grass_2", {drop = {
|
||||||
|
max_items = 1,
|
||||||
|
items = {
|
||||||
|
{items = {'farming:wheat_seeds'},rarity = 5},
|
||||||
|
{items = {'default:plant_grass'}},
|
||||||
|
}
|
||||||
|
}})
|
||||||
|
|
||||||
|
minetest.override_item("default:plant_grass_3", {drop = {
|
||||||
|
max_items = 1,
|
||||||
|
items = {
|
||||||
|
{items = {'farming:wheat_seeds'},rarity = 5},
|
||||||
|
{items = {'default:plant_grass'}},
|
||||||
|
}
|
||||||
|
}})
|
||||||
|
|
||||||
|
minetest.override_item("default:plant_grass_4", {drop = {
|
||||||
|
max_items = 1,
|
||||||
|
items = {
|
||||||
|
{items = {'farming:wheat_seeds'},rarity = 5},
|
||||||
|
{items = {'default:plant_grass'}},
|
||||||
|
}
|
||||||
|
}})
|
||||||
|
|
||||||
|
minetest.override_item("default:plant_grass_5", {drop = {
|
||||||
|
max_items = 1,
|
||||||
|
items = {
|
||||||
|
{items = {'farming:wheat_seeds'},rarity = 5},
|
||||||
|
{items = {'default:plant_grass'}},
|
||||||
|
}
|
||||||
|
}})
|
||||||
|
|
||||||
minetest.register_craftitem("farming:flour", {
|
minetest.register_craftitem("farming:flour", {
|
||||||
description = "Flour",
|
description = "Flour",
|
||||||
inventory_image = "farming_flour.png",
|
inventory_image = "farming_flour.png",
|
||||||
|
@ -53,6 +53,38 @@ minetest.override_item("default:plant_grass", {drop = {
|
|||||||
}
|
}
|
||||||
}})
|
}})
|
||||||
|
|
||||||
|
minetest.override_item("default:plant_grass_2", {drop = {
|
||||||
|
max_items = 1,
|
||||||
|
items = {
|
||||||
|
{items = {'farming:wheat_seeds'},rarity = 5},
|
||||||
|
{items = {'default:plant_grass'}},
|
||||||
|
}
|
||||||
|
}})
|
||||||
|
|
||||||
|
minetest.override_item("default:plant_grass_3", {drop = {
|
||||||
|
max_items = 1,
|
||||||
|
items = {
|
||||||
|
{items = {'farming:wheat_seeds'},rarity = 5},
|
||||||
|
{items = {'default:plant_grass'}},
|
||||||
|
}
|
||||||
|
}})
|
||||||
|
|
||||||
|
minetest.override_item("default:plant_grass_4", {drop = {
|
||||||
|
max_items = 1,
|
||||||
|
items = {
|
||||||
|
{items = {'farming:wheat_seeds'},rarity = 5},
|
||||||
|
{items = {'default:plant_grass'}},
|
||||||
|
}
|
||||||
|
}})
|
||||||
|
|
||||||
|
minetest.override_item("default:plant_grass_5", {drop = {
|
||||||
|
max_items = 1,
|
||||||
|
items = {
|
||||||
|
{items = {'farming:wheat_seeds'},rarity = 5},
|
||||||
|
{items = {'default:plant_grass'}},
|
||||||
|
}
|
||||||
|
}})
|
||||||
|
|
||||||
minetest.register_craftitem("farming:flour", {
|
minetest.register_craftitem("farming:flour", {
|
||||||
description = "Flour",
|
description = "Flour",
|
||||||
inventory_image = "farming_flour.png",
|
inventory_image = "farming_flour.png",
|
||||||
|
@ -39,8 +39,8 @@ end)
|
|||||||
|
|
||||||
story.generator = {}
|
story.generator = {}
|
||||||
story.generator.names = {"A", "B", "C", "D", "E", "F", "G"}
|
story.generator.names = {"A", "B", "C", "D", "E", "F", "G"}
|
||||||
story.generator.file_paths = {minetest.get_modpath(minetest.get_current_modname()).."/parts/test"}
|
|
||||||
story.generator.parts = {}
|
story.generator.parts = {}
|
||||||
|
story.generator.dialogs = {}
|
||||||
story.generator.players_storys = {}
|
story.generator.players_storys = {}
|
||||||
|
|
||||||
function story.generator.gen_next_step(player)
|
function story.generator.gen_next_step(player)
|
||||||
@ -85,21 +85,26 @@ function story.generator.new_player(player)
|
|||||||
story.generator.players_storys[player:get_player_name()].met_characters_num = 0
|
story.generator.players_storys[player:get_player_name()].met_characters_num = 0
|
||||||
end
|
end
|
||||||
|
|
||||||
function story.generator.load_parts()
|
function story.generator.get_part(name)
|
||||||
-- testing
|
if not story.generator.parts[name] then
|
||||||
local file = io.open(story.generator.file_paths[1], "r")
|
local file = io.open(minetest.get_modpath(minetest.get_current_modname()).."/parts/"..name..".part", "r")
|
||||||
story.generator.parts[1] = file:read()
|
story.generator.parts[name] = file:read()
|
||||||
io.close(file)
|
io.close(file)
|
||||||
|
return story.generator.parts[name]
|
||||||
|
else
|
||||||
|
return story.generator.parts[name]
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function story.generator.get_dialog(name)
|
||||||
function story.generator.gen_dialog(player)
|
if not story.generator.dialogs[name] then
|
||||||
-- coming soon
|
local file = io.open(minetest.get_modpath(minetest.get_current_modname()).."/parts/"..name..".dialog", "r")
|
||||||
str = ""
|
story.generator.dialogs[name] = file:read()
|
||||||
for i = 0, 10 do
|
io.close(file)
|
||||||
str = str
|
return story.generator.dialogs[name]
|
||||||
|
else
|
||||||
|
return story.generator.dialogs[name]
|
||||||
end
|
end
|
||||||
return str
|
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_on_newplayer(function(player)
|
minetest.register_on_newplayer(function(player)
|
||||||
@ -165,4 +170,3 @@ minetest.register_craftitem("story:human", {
|
|||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
story.generator.load_parts()
|
|
||||||
|
@ -39,8 +39,8 @@ end)
|
|||||||
|
|
||||||
story.generator = {}
|
story.generator = {}
|
||||||
story.generator.names = {"A", "B", "C", "D", "E", "F", "G"}
|
story.generator.names = {"A", "B", "C", "D", "E", "F", "G"}
|
||||||
story.generator.file_paths = {minetest.get_modpath(minetest.get_current_modname()).."/parts/test"}
|
|
||||||
story.generator.parts = {}
|
story.generator.parts = {}
|
||||||
|
story.generator.dialogs = {}
|
||||||
story.generator.players_storys = {}
|
story.generator.players_storys = {}
|
||||||
|
|
||||||
function story.generator.gen_next_step(player)
|
function story.generator.gen_next_step(player)
|
||||||
@ -85,21 +85,26 @@ function story.generator.new_player(player)
|
|||||||
story.generator.players_storys[player:get_player_name()].met_characters_num = 0
|
story.generator.players_storys[player:get_player_name()].met_characters_num = 0
|
||||||
end
|
end
|
||||||
|
|
||||||
function story.generator.load_parts()
|
function story.generator.get_part(name)
|
||||||
-- testing
|
if not story.generator.parts[name] then
|
||||||
local file = io.open(story.generator.file_paths[1], "r")
|
local file = io.open(minetest.get_modpath(minetest.get_current_modname()).."/parts/"..name..".part", "r")
|
||||||
story.generator.parts[1] = file:read()
|
story.generator.parts[name] = file:read()
|
||||||
io.close(file)
|
io.close(file)
|
||||||
|
return story.generator.parts[name]
|
||||||
|
else
|
||||||
|
return story.generator.parts[name]
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function story.generator.get_dialog(name)
|
||||||
function story.generator.gen_dialog(player)
|
if not story.generator.dialogs[name] then
|
||||||
-- coming soon
|
local file = io.open(minetest.get_modpath(minetest.get_current_modname()).."/parts/"..name..".dialog", "r")
|
||||||
str = ""
|
story.generator.dialogs[name] = file:read()
|
||||||
for i = 0, 10 do
|
io.close(file)
|
||||||
str = str
|
return story.generator.dialogs[name]
|
||||||
|
else
|
||||||
|
return story.generator.dialogs[name]
|
||||||
end
|
end
|
||||||
return str
|
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_on_newplayer(function(player)
|
minetest.register_on_newplayer(function(player)
|
||||||
@ -165,4 +170,3 @@ minetest.register_craftitem("story:human", {
|
|||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
story.generator.load_parts()
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user