Move rail to boost_cart

master
Wuzzy 2020-03-29 23:12:56 +02:00
parent dfe49b50cc
commit f1f1dc9924
7 changed files with 10 additions and 30 deletions

View File

@ -1,6 +1,6 @@
local raillike_group = minetest.raillike_group("rail")
minetest.register_node(":hades_core:rail", {
minetest.register_node(":carts:rail", {
description = "Steel Rail",
drawtype = "raillike",
tiles = {"default_rail.png", "default_rail_curved.png", "default_rail_t_junction.png", "default_rail_crossing.png"},
@ -18,6 +18,15 @@ minetest.register_node(":hades_core:rail", {
sounds = hades_sounds.node_sound_metal_defaults(),
})
minetest.register_craft({
output = 'carts:rail 18',
recipe = {
{'hades_core:steel_ingot', '', 'hades_core:steel_ingot'},
{'hades_core:steel_ingot', 'group:stick', 'hades_core:steel_ingot'},
{'hades_core:steel_ingot', '', 'hades_core:steel_ingot'},
}
})
-- Copper rail
minetest.register_node(":carts:copperrail", {
description = "Bronze Rail",

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@ -250,17 +250,6 @@ minetest.register_craft({
})
minetest.register_craft({
output = 'hades_core:rail 18',
recipe = {
{'hades_core:steel_ingot', '', 'hades_core:steel_ingot'},
{'hades_core:steel_ingot', 'group:stick', 'hades_core:steel_ingot'},
{'hades_core:steel_ingot', '', 'hades_core:steel_ingot'},
}
})
minetest.register_craft({
type = "shapeless",
output = "hades_core:bronze_ingot 2",

View File

@ -657,24 +657,6 @@ minetest.register_node("hades_core:glass", {
sounds = hades_sounds.node_sound_glass_defaults(),
})
minetest.register_node("hades_core:rail", {
description = "Rail",
drawtype = "raillike",
tiles = {"default_rail.png", "default_rail_curved.png", "default_rail_t_junction.png", "default_rail_crossing.png"},
inventory_image = "default_rail.png",
wield_image = "default_rail.png",
paramtype = "light",
walkable = false,
is_ground_content = false,
selection_box = {
type = "fixed",
-- but how to specify the dimensions for curved and sideways rails?
fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
},
groups = {dig_immediate=2,attached_node=1,rail=1,connect_to_raillike=minetest.raillike_group("rail")},
sounds = hades_sounds.node_sound_metal_defaults(),
})
--- Liquids
minetest.register_node("hades_core:water_flowing", {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB