Page 1 of 1
Can't remove rails after update to 0.4-dev-20120606 [solved]

Posted:
Wed Jul 11, 2012 17:26
by Ragnarok
As in subject. I can remove chunk below rails only. Any idea to fix this?

Posted:
Wed Jul 11, 2012 17:33
by Menche
Tools go right through without damaging the rail? I haven't tried rails, but with other blocks that do that, dropping gravel or sand on it makes them pop out.

Posted:
Wed Jul 11, 2012 18:02
by Ragnarok
Yep, tools don't damage rails. They're completely transparent for tools. I dropped sand on rails and them pop out directly to inventory... once. Any another time I can't drop sand on them.

Posted:
Fri Jul 13, 2012 19:23
by Annoyed
Yeah, I have the same exact problem, same version. Some help would be awesome...

Posted:
Thu Jul 26, 2012 07:42
by PilzAdam
There are no selection boxes defined for rails. Search the rail defintion and replace it with:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.register_node("default: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",
is_ground_content = true,
walkable = 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 = {bendy=2,snappy=1,dig_immediate=2},
})
(This is the correct code from a later version.)

Posted:
Thu Jul 26, 2012 12:35
by Ragnarok
It helps, thanks PilzAdam :)