Skip to content

Commit

Permalink
namespace track mod
Browse files Browse the repository at this point in the history
  • Loading branch information
wsor4035 committed Nov 26, 2023
1 parent 90a8f71 commit 828e645
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
File renamed without changes.
15 changes: 9 additions & 6 deletions mods/track/init.lua → mods/dg_track/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,22 +56,25 @@ local np_blend = {

-- Nodes

minetest.register_node("track:road_black", {
minetest.register_node("dg_track:road_black", {
description = "Road Black",
tiles = {"track_road_black.png"},
tiles = {"dg_track_road_black.png"},
is_ground_content = false,
groups = {cracky = 3},
})

minetest.register_node("track:road_white", {
minetest.register_node("dg_track:road_white", {
description = "Road White",
tiles = {"track_road_white.png"},
tiles = {"dg_track_road_white.png"},
paramtype = "light",
light_source = 12,
is_ground_content = false,
groups = {cracky = 3},
})

minetest.register_alias("track:road_black", "dg_track:road_black")
minetest.register_alias("track:road_white", "dg_track:road_white")


-- Set mapgen flags to disable core mapgen decoration placement.
-- Tree decorations are placed using the Lua Voxel Manipulator after track generation
Expand All @@ -82,8 +85,8 @@ minetest.set_mapgen_setting("mg_flags", "caves,dungeons,light,nodecorations,biom

-- Constants

local c_roadblack = minetest.get_content_id("track:road_black")
local c_roadwhite = minetest.get_content_id("track:road_white")
local c_roadblack = minetest.get_content_id("dg_track:road_black")
local c_roadwhite = minetest.get_content_id("dg_track:road_white")


-- Initialise noise object, noise table, voxelmanip table
Expand Down
2 changes: 1 addition & 1 deletion mods/track/license.txt → mods/dg_track/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 828e645

Please sign in to comment.