forked from mtcontrib/plantlife_modpack
Breaking up flowers_plus mod (#5)
Splitting up flowers_plus into separate mods for seaweed, sunflowers and waterlillies, for clarity and so the user can disable them individually. Fixed sunflower maximum heat. Removed spawning, as we're already creating these things at worldgen. Added settings for rarity and max count to each mod - waterlilies, seaweed and sunflowers Removing along_shore mod as it does nothing now.
This commit is contained in:
55
pl_sunflowers/init.lua
Normal file
55
pl_sunflowers/init.lua
Normal file
@ -0,0 +1,55 @@
|
||||
-- support for i18n
|
||||
local S = minetest.get_translator("pl_sunflowers")
|
||||
|
||||
local sunflowers_max_count = tonumber(minetest.settings:get("pl_sunflowers_max_count")) or 10
|
||||
local sunflowers_rarity = tonumber(minetest.settings:get("pl_sunflowers_rarity")) or 25
|
||||
|
||||
|
||||
local box = {
|
||||
type="fixed",
|
||||
fixed = { { -0.2, -0.5, -0.2, 0.2, 0.5, 0.2 } },
|
||||
}
|
||||
|
||||
local sunflower_drop = "farming:seed_wheat"
|
||||
if minetest.registered_items["farming:seed_spelt"] then
|
||||
sunflower_drop = "farming:seed_spelt"
|
||||
end
|
||||
|
||||
minetest.register_node(":flowers:sunflower", {
|
||||
description = S("Sunflower"),
|
||||
drawtype = "mesh",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
inventory_image = "flowers_sunflower_inv.png",
|
||||
mesh = "flowers_sunflower.obj",
|
||||
tiles = { "flowers_sunflower.png" },
|
||||
walkable = false,
|
||||
buildable_to = true,
|
||||
is_ground_content = true,
|
||||
groups = { dig_immediate=3, flora=1, flammable=3, attached_node=1 },
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
selection_box = box,
|
||||
collision_box = box,
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {sunflower_drop}, rarity = 8},
|
||||
{items = {"flowers:sunflower"}},
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
biome_lib.register_on_generate({
|
||||
surface = {"default:dirt_with_grass"},
|
||||
avoid_nodes = { "flowers:sunflower" },
|
||||
max_count = sunflowers_max_count,
|
||||
rarity = sunflowers_rarity,
|
||||
min_elevation = 0,
|
||||
plantlife_limit = -0.9,
|
||||
temp_max = -0.1,
|
||||
random_facedir = {0,3},
|
||||
},
|
||||
"flowers:sunflower"
|
||||
)
|
||||
|
||||
minetest.register_alias("sunflower:sunflower", "flowers:sunflower")
|
11
pl_sunflowers/locale/pl_sunflowers.de.tr
Normal file
11
pl_sunflowers/locale/pl_sunflowers.de.tr
Normal file
@ -0,0 +1,11 @@
|
||||
# textdomain: pl_sunflowers
|
||||
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# Xanthin, 2017.
|
||||
#
|
||||
|
||||
|
||||
|
||||
Sunflower=Sonnenblume
|
10
pl_sunflowers/locale/pl_sunflowers.es.tr
Normal file
10
pl_sunflowers/locale/pl_sunflowers.es.tr
Normal file
@ -0,0 +1,10 @@
|
||||
# textdomain: pl_sunflowers
|
||||
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# Carlos Barraza <carlosbarrazaes@gmail.com>, 2017.
|
||||
#
|
||||
|
||||
|
||||
Sunflower=Girasol
|
10
pl_sunflowers/locale/pl_sunflowers.fr.tr
Normal file
10
pl_sunflowers/locale/pl_sunflowers.fr.tr
Normal file
@ -0,0 +1,10 @@
|
||||
# textdomain: pl_sunflowers
|
||||
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# fat115 <fat115@framasoft.org>, 2017.
|
||||
#
|
||||
|
||||
|
||||
Sunflower=Tournesol
|
10
pl_sunflowers/locale/pl_sunflowers.tr.tr
Normal file
10
pl_sunflowers/locale/pl_sunflowers.tr.tr
Normal file
@ -0,0 +1,10 @@
|
||||
# textdomain: pl_sunflowers
|
||||
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# mahmutelmas06@hotmail.com, 2017.
|
||||
#
|
||||
|
||||
|
||||
Sunflower=Ayçiçeği
|
11
pl_sunflowers/locale/template.txt
Normal file
11
pl_sunflowers/locale/template.txt
Normal file
@ -0,0 +1,11 @@
|
||||
# textdomain: pl_sunflowers
|
||||
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
|
||||
|
||||
|
||||
Sunflower=
|
3
pl_sunflowers/mod.conf
Normal file
3
pl_sunflowers/mod.conf
Normal file
@ -0,0 +1,3 @@
|
||||
name = pl_sunflowers
|
||||
depends = biome_lib
|
||||
optional_depends = farming, flowers
|
73
pl_sunflowers/models/flowers_sunflower.obj
Normal file
73
pl_sunflowers/models/flowers_sunflower.obj
Normal file
@ -0,0 +1,73 @@
|
||||
# Blender v2.70 (sub 0) OBJ File: 'sunflower.blend'
|
||||
# www.blender.org
|
||||
mtllib sunflower_sunflower.mtl
|
||||
o Cube
|
||||
v -0.015625 -0.500000 0.028125
|
||||
v -0.015625 -0.500000 -0.028125
|
||||
v 0.028125 -0.500000 -0.028125
|
||||
v 0.028125 -0.500000 0.028125
|
||||
v -0.015625 0.790890 0.028125
|
||||
v -0.015625 0.689140 -0.028125
|
||||
v 0.028125 0.689140 -0.028125
|
||||
v 0.028125 0.790890 0.028125
|
||||
v 0.250000 0.533494 -0.125000
|
||||
v -0.250000 0.533494 -0.125000
|
||||
v 0.250000 0.966506 0.125000
|
||||
v -0.250000 0.966506 0.125000
|
||||
v 0.267063 0.373606 -0.088749
|
||||
v 0.044375 0.303464 -0.141576
|
||||
v 0.239202 0.473737 0.108253
|
||||
v -0.008452 0.378817 0.108253
|
||||
v 0.017721 0.016639 -0.112053
|
||||
v -0.231280 0.110242 -0.115181
|
||||
v -0.030356 -0.036246 0.146223
|
||||
v -0.252831 0.028885 0.088910
|
||||
v 0.062500 0.641747 -0.057917
|
||||
v -0.106953 0.097386 -0.113617
|
||||
v -0.006318 -0.053008 0.024707
|
||||
v 0.118968 0.360674 0.006909
|
||||
v 0.116101 0.452031 0.108253
|
||||
v 0.017962 0.298392 -0.019504
|
||||
v 0.145794 0.358736 -0.115163
|
||||
v 0.240237 0.375544 0.033323
|
||||
v -0.224509 0.021356 -0.032606
|
||||
v -0.131273 0.023638 0.117567
|
||||
v -0.102951 0.016109 -0.003950
|
||||
vt 0.750000 0.875000
|
||||
vt 0.625000 0.875000
|
||||
vt 0.625000 0.750000
|
||||
vt 0.750000 0.750000
|
||||
vt 0.750000 1.000000
|
||||
vt 0.625000 1.000000
|
||||
vt 0.625000 0.500000
|
||||
vt 0.500000 0.500000
|
||||
vt 0.500000 1.000000
|
||||
vt 0.000100 0.500100
|
||||
vt 0.499900 0.500100
|
||||
vt 0.499900 0.999900
|
||||
vt 0.000100 0.999900
|
||||
vt 0.250000 0.250000
|
||||
vt 0.500000 0.250000
|
||||
vt 0.250000 0.500000
|
||||
vt 0.000000 0.250000
|
||||
vt 0.000000 0.000000
|
||||
vt 0.250000 0.000000
|
||||
vt 0.000000 0.500000
|
||||
vt 0.500000 0.000000
|
||||
usemtl Sunflower
|
||||
s off
|
||||
f 1/1 2/2 3/3 4/4
|
||||
f 5/5 8/6 7/2 6/1
|
||||
f 1/7 5/8 6/9 2/6
|
||||
f 2/7 6/6 7/9 3/8
|
||||
f 3/7 7/8 8/9 4/6
|
||||
f 5/7 1/8 4/9 8/6
|
||||
f 9/10 10/11 12/12 11/13
|
||||
f 24/14 26/15 16/8 25/16
|
||||
f 31/14 29/17 20/18 30/19
|
||||
f 17/8 22/16 31/14 23/15
|
||||
f 22/16 18/20 29/17 31/14
|
||||
f 27/19 14/21 26/15 24/14
|
||||
f 13/18 27/19 24/14 28/17
|
||||
f 23/15 31/14 30/19 19/21
|
||||
f 28/17 24/14 25/16 15/20
|
5
pl_sunflowers/settingtypes.txt
Normal file
5
pl_sunflowers/settingtypes.txt
Normal file
@ -0,0 +1,5 @@
|
||||
#Sunflowers maximum count
|
||||
pl_sunflowers_max_count (Sunflowers maximum count) int 10 1 1000
|
||||
|
||||
#Sunflowers rarity
|
||||
pl_sunflowers_rarity (Sunflowers rarity) int 25 0 100
|
BIN
pl_sunflowers/textures/flowers_sunflower.png
Normal file
BIN
pl_sunflowers/textures/flowers_sunflower.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 811 B |
BIN
pl_sunflowers/textures/flowers_sunflower_inv.png
Normal file
BIN
pl_sunflowers/textures/flowers_sunflower_inv.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 378 B |
Reference in New Issue
Block a user