Skip to content

Commit

Permalink
namespace trees mod
Browse files Browse the repository at this point in the history
  • Loading branch information
wsor4035 committed Nov 26, 2023
1 parent 828e645 commit ed6b72f
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 9 deletions.
File renamed without changes.
19 changes: 11 additions & 8 deletions mods/trees/init.lua → mods/dg_trees/init.lua
Original file line number Diff line number Diff line change
@@ -1,30 +1,33 @@
-- Nodes

minetest.register_node("trees:pine_trunk", {
minetest.register_node("dg_trees:pine_trunk", {
description = "Pine Trunk",
tiles = {
"trees_pine_trunk_top.png",
"trees_pine_trunk_top.png",
"trees_pine_trunk_side.png",
"dg_trees_pine_trunk_top.png",
"dg_trees_pine_trunk_top.png",
"dg_trees_pine_trunk_side.png",
},
groups = {choppy = 2},
})

minetest.register_node("trees:pine_needles", {
minetest.register_node("dg_trees:pine_needles", {
description = "Pine Needles",
tiles = {"trees_pine_needles.png"},
tiles = {"dg_trees_pine_needles.png"},
walkable = false,
groups = {dig_immediate = 2},
})

minetest.register_alias("trees:pine_trunk", "dg_trees:pine_trunk")
minetest.register_alias("trees:pine_needles", "dg_trees:pine_needles")


-- Decoration.
-- Placed by voxelmanip in 'track' mod, not by core mapgen, so use:
-- mg_flags = caves,dungeons,light,nodecorations,biomes

minetest.register_decoration({
deco_type = "schematic",
place_on = {"mapgen:grass"},
place_on = {"dg_mapgen:grass"},
sidelen = 16,
noise_params = {
offset = 0.0,
Expand All @@ -37,6 +40,6 @@ minetest.register_decoration({
biomes = {"grassland"},
y_min = -31000,
y_max = 31000,
schematic = minetest.get_modpath("trees").."/schematics/trees_pine_tree.mts",
schematic = minetest.get_modpath("dg_trees").."/schematics/dg_trees_pine_tree.mts",
flags = "place_center_x, place_center_z",
})
2 changes: 1 addition & 1 deletion mods/trees/license.txt → mods/dg_trees/license.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ License of source code
----------------------

The MIT License (MIT)
Copyright (C) 2020 paramat
Copyright (C) 2020-2023 paramat, wsor4035

Permission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the "Software"), to deal in the Software
Expand Down
File renamed without changes.
File renamed without changes

0 comments on commit ed6b72f

Please sign in to comment.