Rename vines mod to hades_vines

master
Wuzzy 2021-07-16 16:37:28 +02:00
parent e37fa3ee4b
commit 3a02e9cc55
18 changed files with 43 additions and 79 deletions

View File

@ -29,7 +29,7 @@ local group_stereotypes = {
table = "hades_furniture:table_uncolored",
chair = "hades_furniture:chair_uncolored",
armchair = "hades_furniture:armchair_brown",
vines = "vines:side",
vines = "hades_vines:jungle",
tree = "hades_trees:tree",
leaves = "hades_trees:leaves",
sapling = "hades_trees:sapling",

View File

@ -123,7 +123,7 @@ local get_apply_fertilizer = function(super)
break
end
end
elseif minetest.get_item_group(nname, "vines") ~= 0 or nname == "vines:root" then
elseif minetest.get_item_group(nname, "vines") ~= 0 or nname == "hades_vines:root" then
if not super then return itemstack end
-- [SUPER] Grow vines
local param2 = nnode.param2

View File

@ -1,3 +1,3 @@
name = hades_fertilizer
description = Tool to make plants grow
depends = hades_core, hades_trees, hades_farming, vines, hades_flowers, hades_flowerpots
depends = hades_core, hades_trees, hades_farming, hades_vines, hades_flowers, hades_flowerpots

View File

@ -6,9 +6,9 @@ local cycles = {
{ "hades_core:grass_1", "hades_core:grass_2", "hades_core:grass_3", "hades_core:grass_4", "hades_core:grass_5" },
{ "hades_waterplants:seaweed_4", "hades_waterplants:seaweed_2", "hades_waterplants:seaweed_3", "hades_waterplants:seaweed" },
{ "hades_waterplants:waterlily", "hades_waterplants:waterlily_225", "hades_waterplants:waterlily_45", "hades_waterplants:waterlily_675", "hades_waterplants:waterlily_s3", "hades_waterplants:waterlily_s1", "hades_waterplants:waterlily_s2", "hades_waterplants:waterlily_s4" },
{ "vines:willow", "vines:willow_rotten" },
{ "vines:side", "vines:side_rotten" },
{ "vines:vine", "vines:vine_rotten" },
{ "hades_vines:willow", "hades_vines:willow_rotten" },
{ "hades_vines:jungle", "hades_vines:jungle_rotten" },
{ "hades_vines:cave", "hades_vines:cave_rotten" },
{ "hades_refruit:bud_apple", "hades_refruit:flower_apple", "hades_trees:apple" },
{ "hades_refruit:bud_olive", "hades_refruit:flower_olive", "hades_trees:olive" },
{ "hades_refruit:bud_cocoa", "hades_refruit:flower_cocoa", "hades_trees:cocoa_pod" },

View File

@ -1,6 +1,6 @@
local S = minetest.get_translator("vines")
local mod_name = "vines"
local mod_name = "hades_vines"
local average_height = 12
local spawn_interval = 90
@ -171,7 +171,7 @@ local function register_vine(id, def)
local is_centered = def.groups.vines == 2
minetest.register_node("vines:"..id, {
minetest.register_node("hades_vines:"..id, {
description = def.description_normal,
_tt_help = tt_surv,
walkable = false,
@ -182,10 +182,10 @@ local function register_vine(id, def)
sunlight_propagates = true,
paramtype = "light",
paramtype2 = paramtype2,
tiles = { "vines_"..id..".png", "vines_"..id..".png", "blank.png" },
tiles = { "hades_vines_"..id..".png", "hades_vines_"..id..".png", "blank.png" },
drawtype = drawtype,
inventory_image = "vines_"..id..".png",
wield_image = "vines_"..id..".png",
inventory_image = "hades_vines_"..id..".png",
wield_image = "hades_vines_"..id..".png",
groups = def.groups,
sounds = hades_sounds.node_sound_leaves_defaults(),
selection_box = selection_box,
@ -201,7 +201,7 @@ local function register_vine(id, def)
local groups_rotten = table.copy(def.groups)
groups_rotten.vines_rotten = 1
minetest.register_node("vines:"..id.."_rotten", {
minetest.register_node("hades_vines:"..id.."_rotten", {
description = def.description_rotten,
walkable = false,
climbable = true,
@ -211,10 +211,10 @@ local function register_vine(id, def)
sunlight_propagates = true,
paramtype = "light",
paramtype2 = paramtype2,
tiles = { "vines_"..id.."_rotten.png", "vines_"..id.."_rotten.png", "blank.png" },
tiles = { "hades_vines_"..id.."_rotten.png", "hades_vines_"..id.."_rotten.png", "blank.png" },
drawtype = drawtype,
inventory_image = "vines_"..id.."_rotten.png",
wield_image = "vines_"..id.."_rotten.png",
inventory_image = "hades_vines_"..id.."_rotten.png",
wield_image = "hades_vines_"..id.."_rotten.png",
groups = groups_rotten,
sounds = hades_sounds.node_sound_leaves_defaults(),
selection_box = selection_box,
@ -226,7 +226,7 @@ local function register_vine(id, def)
end
end
register_vine("side", {
register_vine("jungle", {
vines_type = "side",
description_normal = S("Tropical Vine"),
description_rotten = S("Rotten Tropical Vine"),
@ -240,7 +240,7 @@ register_vine("willow", {
groups = vines_group_side,
})
register_vine("vine", {
register_vine("cave", {
vines_type = "center",
description_normal = S("Cave Vine"),
description_rotten = S("Rotten Cave Vine"),
@ -265,7 +265,7 @@ register_vine("root", {
minetest.register_abm({
label = "Vine rot",
nodenames = {"vines:vine", "vines:side", "vines:willow"},
nodenames = {"hades_vines:cave", "hades_vines:jungle", "hades_vines:willow"},
interval = 300,
chance = 8,
action = function(pos, node, active_object_count, active_object_count_wider)
@ -278,7 +278,7 @@ minetest.register_abm({
minetest.register_abm({
label = "Grow vines",
nodenames = {"vines:vine", "vines:side", "vines:willow"},
nodenames = {"hades_vines:cave", "hades_vines:jungle", "hades_vines:willow"},
interval = 300,
chance = 2,
action = function(pos, node, active_object_count, active_object_count_wider)
@ -357,10 +357,10 @@ minetest.register_abm({
--spawning
plantslib:spawn_on_surfaces({
avoid_nodes = {"vines:vine"},
avoid_nodes = {"hades_vines:cave"},
avoid_radius = 5,
spawn_delay = spawn_interval,
spawn_plants = {"vines:vine"},
spawn_plants = {"hades_vines:cave"},
spawn_chance = 50,
spawn_surfaces = {"hades_core:dirt_with_grass","hades_core:dirt"},
spawn_on_bottom = true,
@ -368,10 +368,10 @@ plantslib:spawn_on_surfaces({
})
plantslib:spawn_on_surfaces({
avoid_nodes = {"vines:vine", "vines:side"},
avoid_nodes = {"hades_vines:cave", "hades_vines:jungle"},
avoid_radius = 3,
spawn_delay = spawn_interval,
spawn_plants = {"vines:side"},
spawn_plants = {"hades_vines:jungle"},
spawn_chance = 50,
spawn_surfaces = {"group:leaves"},
spawn_on_side = true,
@ -383,7 +383,7 @@ plantslib:spawn_on_surfaces({
})
plantslib:spawn_on_surfaces({
spawn_plants = {"vines:willow"},
spawn_plants = {"hades_vines:willow"},
avoid_radius = 3,
spawn_delay = spawn_interval,
spawn_chance = 50,
@ -398,11 +398,11 @@ plantslib:spawn_on_surfaces({
-- Shears: jojoa1997's shears
minetest.register_tool("vines:shears", {
minetest.register_tool("hades_vines:shears", {
description = S("Shears"),
_tt_help = S("Cuts leaves, vines and plants"),
inventory_image = "vines_shears.png",
wield_image = "vines_shears.png",
inventory_image = "hades_vines_shears.png",
wield_image = "hades_vines_shears.png",
stack_max = 1,
max_drop_level=3,
groups = { shears = 1 },
@ -416,7 +416,7 @@ minetest.register_tool("vines:shears", {
})
minetest.register_craft({
output = 'vines:shears',
output = 'hades_vines:shears',
recipe = {
{'', 'hades_core:steel_ingot', ''},
{'group:stick', 'group:wood', 'hades_core:steel_ingot'},
@ -424,10 +424,10 @@ minetest.register_craft({
}
})
minetest.register_node("vines:vines_block",{
minetest.register_node("hades_vines:vines_block",{
description = S("Vines Block"),
sunlight_propagates = true,
tiles = {"vines_block.png"},
tiles = {"hades_vines_block.png"},
drawtype = "allfaces_optional",
paramtype = "light",
groups = {snappy=2,flammable=2 },
@ -435,7 +435,7 @@ minetest.register_node("vines:vines_block",{
})
minetest.register_craft({
output = 'vines:vines_block',
output = 'hades_vines:vines_block',
recipe = {
{'hades_farming:string', '', 'hades_farming:string'},
{'', 'group:vines', ''},
@ -443,7 +443,4 @@ minetest.register_craft({
}
})
minetest.register_alias("vines:rope", "vines:root")
minetest.register_alias("vines:rope_end", "vines:root")
minetest.log("action", "[vines] Loaded!")
minetest.log("action", "[hades_vines] loaded!")

View File

@ -1,2 +1,2 @@
name = vines
name = hades_vines
depends = hades_sounds, hades_core, plants_lib

View File

@ -0,0 +1,10 @@
# Hades Vines
This mod adds various types of vines to Hades Revisited.
It is very loosely based on the "Vines and ropebox" [vines]
mod version 2.2.1 by bas080, but it was heaviliy modified
for HAdes Revisited.
Forum link of original mod: http://forum.minetest.net/viewtopic.php?id=2344
License of everything in this mod: MIT License.

View File

Before

Width:  |  Height:  |  Size: 451 B

After

Width:  |  Height:  |  Size: 451 B

View File

Before

Width:  |  Height:  |  Size: 178 B

After

Width:  |  Height:  |  Size: 178 B

View File

Before

Width:  |  Height:  |  Size: 189 B

After

Width:  |  Height:  |  Size: 189 B

View File

Before

Width:  |  Height:  |  Size: 238 B

After

Width:  |  Height:  |  Size: 238 B

View File

Before

Width:  |  Height:  |  Size: 227 B

After

Width:  |  Height:  |  Size: 227 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 441 B

View File

Before

Width:  |  Height:  |  Size: 192 B

After

Width:  |  Height:  |  Size: 192 B

View File

Before

Width:  |  Height:  |  Size: 189 B

After

Width:  |  Height:  |  Size: 189 B

View File

Before

Width:  |  Height:  |  Size: 308 B

After

Width:  |  Height:  |  Size: 308 B

View File

@ -1,43 +0,0 @@
__ __ ___ __ _ _______ _______
| | | || | | | | || || |
| |_| || | | |_| || ___|| _____|
| || | | || |___ | |_____
| || | | _ || ___||_____ |
| | | | | | | || |___ _____| |
|___| |___| |_| |__||_______||_______|
BY: bas080
DESCRIPTION: Vines and ropebox
VERSION: 2.2.1
LICENCE: MIT License
FORUM: http://forum.minetest.net/viewtopic.php?id=2344
Changelog
---------
2.2.1
* Also spawn on leaves that are near jungletree
* Uses default wood texture
* Drops actual vines
* Changed craft
2.2
* Spawns on all leaves that are near water
2.1
* Removed rope(end) from creative inventory
2.0
* Root vines texture and node (no spawn)
* Side vines spawn on leaves
* Willow vines spawns on moretrees willow leaves
* Ropebox after_dig_node re-defined
1.5
* Added side vines
* Uses plant_lib api
* Original vines do not spawn anymore but are still there.
1.0
* Vines spawn beneath leave nodes
* Has rotten and non rotten vines
* Ropebox with craft

Binary file not shown.

Before

Width:  |  Height:  |  Size: 116 B