aboutsummaryrefslogtreecommitdiff
path: root/advtrains_interlocking
diff options
context:
space:
mode:
authorMaverick2797 <git.maverick2797@gmail.com>2025-03-28 15:12:12 +0800
committerorwell <orwell@bleipb.de>2025-04-08 21:35:05 +0200
commit510734f953f1bf9a4094f67a86a923dc66437f79 (patch)
treedc2d3dde215603c631da06c40a40a5ae7d107b30 /advtrains_interlocking
parented998bc1ea29a74050ea498de277af479db8e871 (diff)
Add craft recipes for Interlocking Tool, Trackmap Tool and PCNaming Tool
Diffstat (limited to 'advtrains_interlocking')
-rw-r--r--advtrains_interlocking/tool.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/advtrains_interlocking/tool.lua b/advtrains_interlocking/tool.lua
index 560e129..5ceae04 100644
--- a/advtrains_interlocking/tool.lua
+++ b/advtrains_interlocking/tool.lua
@@ -124,3 +124,9 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
end
end
end)
+
+minetest.register_craft({
+ output = "advtrains_interlocking:tool",
+ type = "shapeless",
+ recipe = {"dye:green","advtrains:trackworker", "advtrains_interlocking:tcb_node"}
+}) \ No newline at end of file
ot;..preset) return end local btex=ndef.tiles if type(btex)=="table" then btex=btex[1] end local desc=ndef.description or "" local nodename=string.match(preset, ":(.+)$") minetest.register_node(modprefix .. ":platform_low_"..nodename, { description = attrans("@1 Platform (low)", desc), tiles = {btex.."^advtrains_platform.png", btex, btex, btex, btex, btex}, groups = {cracky = 1, not_blocking_trains = 1, platform=1}, sounds = ndef.sounds, drawtype = "nodebox", node_box = { type = "fixed", fixed = { {-0.5, -0.1, -0.1, 0.5, 0 , 0.5}, {-0.5, -0.5, 0 , 0.5, -0.1, 0.5} }, }, paramtype2="facedir", paramtype = "light", sunlight_propagates = true, }) minetest.register_node(modprefix .. ":platform_high_"..nodename, { description = attrans("@1 Platform (high)", desc), tiles = {btex.."^advtrains_platform.png", btex, btex, btex, btex, btex}, groups = {cracky = 1, not_blocking_trains = 1, platform=2}, sounds = ndef.sounds, drawtype = "nodebox", node_box = { type = "fixed", fixed = { {-0.5, 0.3, 0, 0.5, 0.5, 0.5}, {-0.5, -0.5, 0.1 , 0.5, 0.3, 0.5} }, }, paramtype2="facedir", paramtype = "light", sunlight_propagates = true, }) local diagonalbox = { type = "fixed", fixed = { {-0.5, -0.5, 0.5, -0.25, 0.5, -0.8 }, {-0.25, -0.5, 0.5 , 0, 0.5, -0.55}, {0, -0.5, 0.5 , 0.25, 0.5, -0.3 }, {0.25 , -0.5, 0.5, 0.5, 0.5, -0.05} } } minetest.register_node(modprefix..":platform_45_"..nodename, { description = attrans("@1 Platform (45 degree)", desc), groups = {cracky = 1, not_blocking_trains = 1, platform=2}, sounds = ndef.sounds, drawtype = "mesh", mesh = "advtrains_platform_diag.b3d", selection_box = diagonalbox, collision_box = diagonalbox, tiles = {btex, btex.."^advtrains_platform_diag.png"}, paramtype2 = "facedir", paramtype = "light", sunlight_propagates = true, }) local diagonalbox_low = { type = "fixed", fixed = { {-0.5, -0.5, 0.5, -0.25, 0, -0.8 }, {-0.25, -0.5, 0.5 , 0, 0, -0.55}, {0, -0.5, 0.5 , 0.25, 0, -0.3 }, {0.25 , -0.5, 0.5, 0.5, 0, -0.05} }