mojira.dev
MC-12456

Fences won't attach to layered snow blocks

Fences attach to a full snow block as they do with other blocks, but if you create a full snow block using the layered snow, when the block is full, the fence will not attach. Not sure if the fence will attach after a block update, or if it will just stay "detatched".

(PS. Sorry for my bad english, I'm Italian 😛)
(Look at the image for a better explanation)

Possible explanation: I think that when a "group" of snow layers becames a "full" snow block (When the block is tall as a normal snow block) the neighbor blocks are not updated, so, if the fence is not updated, it will not attach. Not sure about this, just a theory.

Linked issues

Attachments

Comments 15

Snow layers are not blocks, they are children of the block they are sitting on top of.

I'd consider this invalid, as there is no reason why the fence would attach. Possibly this is a feature request? There is a forum for that, but I don't have the link on me.

I think that the layered snow block should act like a normal snow block. When I say "layered", I mean a full snow block created with 8 snow layers. So, if the layered snow block should act like a normal snow block, why the fence won't attach?

This is not a feature request, this is just something strange: the block won't do what it have to do.

Related to MC-2938 and its relateds...

However, it indeed might be better if fences do not connect snow (normal or layered full). I mean, snow is supposed to rain sometime, why would the fence suddenly decide to change and connect to that snow block.

(Then again, if the snow was semi-permanent (like in some cold places), one could build fences in that way. Unfortunately, Minecraft can not differentiate with the cases, and must choose either one. Edit: oops, it can probably detect the difference between normal snow block and one consisting of layers...)

@Markku
Only related if the problem persists after preforming a block update on the snowstack and trying again. I'd stray away from a relationship.

@KeeZeeK
If you are saying that it 'should' act that way (as in it would be a good idea for it to), it is a feature request. If you are saying that it 'should' act that way (as in it is the intended behaviour), you are incorrect. The snow layers are part of the block underneath them, and do not form a new block. This is intended, as 8 visual layers are 7 layers of actual behaviour, while a snow block would act as 8 layers of actual behaviour.

EDIT: Go stand on top of the 'block' and dig downwards with a shovel. Does the block get destroyed as a single object, or as 8 layers of snow?

Chris:
1. The "attachment" of fence to neighbor block is made at rendering time; it does not require updates. Thus, if it is deemed that the fence should connect to such block, the issue is indeed related. (This didn't consider at all whether the full layers of snow is a block or not, though.)

2. Someone saying "should" is pretty much equal to "expected", and the instructions already tell to use that "expected". Only Mojang can say whether something is or is not "intended behavior" (though sometimes moderators do wield this power...). Even if the snow layers were not an own block, Mojang could intend the fences to connect to it (at least if they connect to normal snow block); at least in such case it would not make sense to players if there was a difference. Technical background details are rarely a good reason to claim something that makes no sense to be intended (although it does happen, sometimes for good reasons..)

3. "The snow layers are part of the block underneath them, and do not form a new block."
Where did you get that idea from? As far as I can tell, by reading the source code, the snowlayers are their own block (by type id 78), storing the snow height in its metadata (in 3 LSBs). I recommend looking at ItemSnow.func_77648_a() (the only larger method in that class).

5 more comments

I understood that. I mentioned the relation because the reason for both issues is based on the same thing(s) of the current code (or more accurately, lack of the same thing(s)).

(And unfortunately, I seem to keep getting more other urgent things on my hands...)

Confirmed for 1.7.5, 1.7.9, 14w11

Just my opinion, but I like having the option to have non-connecting snowblocks that otherwise look identical to regular snowblocks. Perhaps this should be kept as a feature for mapmakers rather than labeled as a bug. Because anyplace you could use 8 snow layers as a solid block, a regular solid block will do just as well.

Daniel Smith, such option would be nice, but it should be available consistently for all blocks, not just snow. Keeping around (apparent) inconsistencies like this only make things worse in the long run. Instead, Mojang should add a feature that allows the fences to be connected or disconnected to neighbor blocks as wanted, or at least a limited version where player could choose that a fence only connects to other fences vs. to all blocks that look suitable to connect to. The latter solution would not need extra memory, but either new block type or one meta-bit..

Re: Markku

Consistency is overrated in the world of Minecraft though new features and functionality are not. The Mojang way of doing things has always been to implement new and unique behaviors for each addition to the game to maintain variety. This situation certainly seems to qualify - a way to build using snow that doesn't connect with fencing. So, while I understand the elegance of your solution, I suggest your comment be rephrased as a feature request and posted in the appropriate place rather than continue it here. I think there would be strong support for the ability to connect/disconnect fencing to neighboring blocks. A simple right-click per fence post with the default being connected should be easy to implement.

I think the simplest solution for the problem in this thread would be to eliminate the 8-layered snow block all together. Instead, when a 7-layered snow block is left-clicked with a snow layer, the 7-layer block should be replaced with a full snow block. This would eliminate the problem in the first place since fencing already connects correctly to normal snow blocks.

KeeZeeK

(Unassigned)

Confirmed

attach, fence, snow

Minecraft 1.5, Minecraft 1.5.1, Minecraft 1.7.5, Minecraft 14w11b, Minecraft 1.7.9, Minecraft 14w21b

Retrieved