And glass becomes like this (with red opaque area inside).
And this is how simple glass looks like
==========
I suppose that twisted state of replaced items is remembered and transfered to replacing items. In case of transparent items it results to being not transparent.
WorldEdit replaces the node name *only*, and does not touch param2, metadata, etc. when doing //replace. That way, if you replace some rotated nodes with some others that support rotation, they stay rotated. If you want to clear the param2 value for the selected area, you can use this:
//luatransform local node = minetest.get_node(pos);node.param2=0;minetest.set_node(pos,node)
cheapie wrote:WorldEdit replaces the node name *only*, and does not touch param2, metadata, etc. when doing //replace. That way, if you replace some rotated nodes with some others that support rotation, they stay rotated. If you want to clear the param2 value for the selected area, you can use this:
//luatransform local node = minetest.get_node(pos);node.param2=0;minetest.set_node(pos,node)
It does not fix the bug. It is workaround.
As I understand from what you said, WorldEdit must implement replace method better, taking into account what node to be replaced and what node is replacing. I mean their support of rotation.
cheapie wrote:WorldEdit replaces the node name *only*, and does not touch param2, metadata, etc. when doing //replace. That way, if you replace some rotated nodes with some others that support rotation, they stay rotated. If you want to clear the param2 value for the selected area, you can use this:
//luatransform local node = minetest.get_node(pos);node.param2=0;minetest.set_node(pos,node)
It does not fix the bug. It is workaround.
As I understand from what you said, WorldEdit must implement replace method better, taking into account what node to be replaced and what node is replacing. I mean their support of rotation.
So you want it to zero out param2 in some cases but not others? That seems rather inconsistent to me.
cheapie wrote:So you want it to zero out param2 in some cases but not others? That seems rather inconsistent to me.
So you want glass with glitches? That seems rather inconsistent to me.
The "glitches" are just a non-zero param2, which is what it had before you replaced it.
So? I just can't understand why you protecting some inner variable's value? Don't care how buggy and glitchy game is. Important thing is that we kept value of some inner variable. Bravo!
It would be a pain to replace stairs using WorldEdit. Checking each node for its definition to decide whether param2 should be cleared or not. For simplyness, request a new command to clear param2 for all nodes in the selected area.
Krock wrote:It would be a pain to replace stairs using WorldEdit. Checking each node for its definition to decide whether param2 should be cleared or not. For simplyness, request a new command to clear param2 for all nodes in the selected area.
Maybe even better than that would be the ability to specify param and param2 as part of the node name? So, for example, "//s default:glass" would set the name to glass and leave param and param2 untouched, while "//s default:glass,128,0" would set param to 128 and param2 to 0.
Krock wrote:It would be a pain to replace stairs using WorldEdit. Checking each node for its definition to decide whether param2 should be cleared or not. For simplyness, request a new command to clear param2 for all nodes in the selected area.
Maybe even better than that would be the ability to specify param and param2 as part of the node name? So, for example, "//s default:glass" would set the name to glass and leave param and param2 untouched, while "//s default:glass,128,0" would set param to 128 and param2 to 0.
As ordinary gamer, I don't even understand what you are talking about! Param, param2! What a hell is that! It is a rhetorical question. I don't need answer.
Put yourselves in gamers' place.
Param2 applied to glass causes a certain level of liquid to appear inside, as if it were a tank of liquid, it's intentional.
It's also intentional that WorldEdit does not alter param2 when replacing nodes, so you need to make a request to the authors of WorldEdit for new functionality.
This is not a bug in MT.