From 888b0ebfec8c2eff9015163549a7e47443cb8665 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Fri, 1 Apr 2016 21:00:20 -0400 Subject: "explode" all modpacks into their individual components (you can't have a modpack buried inside a modpack) --- poisonivy/depends.txt | 2 + poisonivy/init.lua | 103 ++++++++++++++++++++++++++++ poisonivy/locale/de.txt | 7 ++ poisonivy/locale/fr.txt | 7 ++ poisonivy/locale/template.txt | 7 ++ poisonivy/locale/tr.txt | 7 ++ poisonivy/textures/poisonivy_climbing.png | Bin 0 -> 228 bytes poisonivy/textures/poisonivy_seedling.png | Bin 0 -> 179 bytes poisonivy/textures/poisonivy_sproutling.png | Bin 0 -> 239 bytes 9 files changed, 133 insertions(+) create mode 100644 poisonivy/depends.txt create mode 100644 poisonivy/init.lua create mode 100644 poisonivy/locale/de.txt create mode 100644 poisonivy/locale/fr.txt create mode 100644 poisonivy/locale/template.txt create mode 100644 poisonivy/locale/tr.txt create mode 100644 poisonivy/textures/poisonivy_climbing.png create mode 100644 poisonivy/textures/poisonivy_seedling.png create mode 100644 poisonivy/textures/poisonivy_sproutling.png (limited to 'poisonivy') diff --git a/poisonivy/depends.txt b/poisonivy/depends.txt new file mode 100644 index 0000000..249cc74 --- /dev/null +++ b/poisonivy/depends.txt @@ -0,0 +1,2 @@ +biome_lib + diff --git a/poisonivy/init.lua b/poisonivy/init.lua new file mode 100644 index 0000000..466b930 --- /dev/null +++ b/poisonivy/init.lua @@ -0,0 +1,103 @@ +-- This file supplies poison ivy for the plantlife modpack +-- Last revision: 2013-01-24 + +local S = biome_lib.intllib + +local SPAWN_DELAY = 1000 +local SPAWN_CHANCE = 200 +local GROW_DELAY = 500 +local GROW_CHANCE = 30 +local poisonivy_seed_diff = 339 +local walls_list = { + "default:dirt", + "default:dirt_with_grass", + "default:stone", + "default:cobble", + "default:mossycobble", + "default:brick", + "default:tree", + "default:jungletree", + "default:stone_with_coal", + "default:stone_with_iron" +}, +minetest.register_node('poisonivy:seedling', { + description = S("Poison ivy (seedling)"), + drawtype = 'plantlike', + waving = 1, + tiles = { 'poisonivy_seedling.png' }, + inventory_image = 'poisonivy_seedling.png', + wield_image = 'poisonivy_seedling.png', + sunlight_propagates = true, + paramtype = 'light', + walkable = false, + groups = { snappy = 3, poisonivy=1, flora_block=1 }, + sounds = default.node_sound_leaves_defaults(), + buildable_to = true, +}) + +minetest.register_node('poisonivy:sproutling', { + description = S("Poison ivy (sproutling)"), + drawtype = 'plantlike', + waving = 1, + tiles = { 'poisonivy_sproutling.png' }, + inventory_image = 'poisonivy_sproutling.png', + wield_image = 'poisonivy_sproutling.png', + sunlight_propagates = true, + paramtype = 'light', + walkable = false, + groups = { snappy = 3, poisonivy=1, flora_block=1 }, + sounds = default.node_sound_leaves_defaults(), + buildable_to = true, +}) + +minetest.register_node('poisonivy:climbing', { + description = S("Poison ivy (climbing plant)"), + drawtype = 'signlike', + tiles = { 'poisonivy_climbing.png' }, + inventory_image = 'poisonivy_climbing.png', + wield_image = 'poisonivy_climbing.png', + sunlight_propagates = true, + paramtype = 'light', + paramtype2 = 'wallmounted', + walkable = false, + groups = { snappy = 3, poisonivy=1, flora_block=1 }, + sounds = default.node_sound_leaves_defaults(), + selection_box = { + type = "wallmounted", + --wall_side = = + }, + buildable_to = true, +}) + +biome_lib:spawn_on_surfaces({ + spawn_delay = SPAWN_DELAY, + spawn_plants = {"poisonivy:seedling"}, + avoid_radius = 10, + spawn_chance = SPAWN_CHANCE/10, + spawn_surfaces = {"default:dirt_with_grass"}, + avoid_nodes = {"group:poisonivy", "group:flower", "group:flora"}, + seed_diff = poisonivy_seed_diff, + light_min = 7, + alt_wallnode = "poisonivy:climbing", + verticals_list = walls_list +}) + +biome_lib:grow_plants({ + grow_delay = SPAWN_DELAY, + grow_chance = GROW_CHANCE, + grow_plant = "poisonivy:seedling", + grow_result = "poisonivy:sproutling", + grow_nodes = {"default:dirt_with_grass"} +}) + +biome_lib:grow_plants({ + grow_delay = GROW_DELAY, + grow_chance = GROW_CHANCE*2, + grow_plant = "poisonivy:climbing", + need_wall = true, + grow_vertically = true, + verticals_list = walls_list, + ground_nodes = {"default:dirt_with_grass"} +}) + +print(S("[Poison Ivy] Loaded.")) diff --git a/poisonivy/locale/de.txt b/poisonivy/locale/de.txt new file mode 100644 index 0000000..5c099ce --- /dev/null +++ b/poisonivy/locale/de.txt @@ -0,0 +1,7 @@ +# Translation by Xanthin + +Poison ivy (seedling) = Giftefeu (Saemling) +Poison ivy (sproutling) = Giftefeu (Sproessling) +Poison ivy (climbing plant) = Giftefeu (Kletterpflanze) + +[Poison Ivy] Loaded. = [Poison Ivy] Geladen. diff --git a/poisonivy/locale/fr.txt b/poisonivy/locale/fr.txt new file mode 100644 index 0000000..f033dc3 --- /dev/null +++ b/poisonivy/locale/fr.txt @@ -0,0 +1,7 @@ +# Template + +Poison ivy (seedling) = Sumac vénéneux (semis) +Poison ivy (sproutling) = Sumac vénéneux (pousse) +Poison ivy (climbing plant) = Sumac vénéneux (grimpant) + +[Poison Ivy] Loaded. = [Sumac vénéneux] Chargé. diff --git a/poisonivy/locale/template.txt b/poisonivy/locale/template.txt new file mode 100644 index 0000000..35fb12d --- /dev/null +++ b/poisonivy/locale/template.txt @@ -0,0 +1,7 @@ +# Template + +Poison ivy (seedling) = +Poison ivy (sproutling) = +Poison ivy (climbing plant) = + +[Poison Ivy] Loaded. = diff --git a/poisonivy/locale/tr.txt b/poisonivy/locale/tr.txt new file mode 100644 index 0000000..a7a5b69 --- /dev/null +++ b/poisonivy/locale/tr.txt @@ -0,0 +1,7 @@ +# Turkish translation by mahmutelmas06 + +Poison ivy (seedling) = Sarmaşık (Fidan) +Poison ivy (sproutling) = Sarmaşık (Filiz) +Poison ivy (climbing plant) = Sarmaşık (Dolanan) + +[Poison Ivy] Loaded. = Sarmaşık yüklendi diff --git a/poisonivy/textures/poisonivy_climbing.png b/poisonivy/textures/poisonivy_climbing.png new file mode 100644 index 0000000..f53f7a3 Binary files /dev/null and b/poisonivy/textures/poisonivy_climbing.png differ diff --git a/poisonivy/textures/poisonivy_seedling.png b/poisonivy/textures/poisonivy_seedling.png new file mode 100644 index 0000000..281fa75 Binary files /dev/null and b/poisonivy/textures/poisonivy_seedling.png differ diff --git a/poisonivy/textures/poisonivy_sproutling.png b/poisonivy/textures/poisonivy_sproutling.png new file mode 100644 index 0000000..92d2742 Binary files /dev/null and b/poisonivy/textures/poisonivy_sproutling.png differ -- cgit v1.2.3