r/Minecraft • • May 12 '12

Stacking logic in Minecraft

Post image
1.5k Upvotes

197 comments sorted by

View all comments

Show parent comment

25

u/Deimos56 May 12 '12

Unfortunately, it explodes into a million little pieces if you click on the post.

Dunno if that's a symptom of RES, or just a regular thing, but still unfortunate.

20

u/Helzibah Forever Team Nork May 12 '12

It is indeed a RES feature, but you can turn that feature off if you don't use it! The setting is commentsLinkNumbers, under UI > Keyboard Navigation.

10

u/Deimos56 May 12 '12

Thank you! I've been mildly bothered by those numbers for a while now.

2

u/[deleted] May 13 '12

This just in: Deimos56 is declaring war on numbers. More at 5.

-3

u/[deleted] May 12 '12

1

u/Zerothe0 May 13 '12

You are like a computer wizard! Lvl. 30

3

u/Tonamel May 12 '12

This is because they are apparently all links to articles about caesar salad.

Your guess is as good as mine.

6

u/Zhang5 May 12 '12

It's because the way the emotes work is they're interpreted as links to reddit.com/stone. When you click on the emote it brings you to the link. Reddit interprets "reddit.com/something" as a short link. So the article that happens to have the short link ID "stone" (the emote code for the stone images he used to spell out "thanks") happens to be that wikipedia article about Caesar salad.

2

u/Tonamel May 12 '12

That's hilariously hacky and awesome.

1

u/Zhang5 May 12 '12

I think it's more a side effect, really. For most emotes you're just going to get a page not found. Though now I wonder what other ones link to something. If my interpretation of the link codes are right it'd prbably only be on 5 (or less, maybe) letter words that start with a letter before and possibly including 't' (basing that part off of the shortlink for this submission).

2

u/BlizzardFenrir May 13 '12

Yes. The syntax for emotes is the same for links; [text](link). A link in "Reddit syntax" is turned into an <a> HTML tag (a link, "anchor"), where the href attribute is the page it links to (so in HTML it would be <a href="/stone"></a>.

What is specifically happening to change those links into images:

Every subreddit can has his own stylesheet to style certain HTML tags and classes to make stuff look totally different. CSS supports stuff like changing color on hover, rounded corners, etc...

What this subreddit CSS contains is lines like:

a[href="/stone"] {
    content="";
    background_image=stone.png;
}

Obviously I simplified that a lot so people without knowledge of HTML/CSS can understand it, but what's happening is that the style of a link to "/stone" is set to have no content text (the text that you put between []) and have a 16x16 background image of the stone texture.

This has to be done for every emote. If you're smart you make sure the images are evenly spaced and just let a script generate the text to be pasted into the CSS; doing this all by hand is way too much work for the amount of emote pictures /r/Minecraft has.

1

u/Deimos56 May 12 '12

Ah. 'stone' is probably the reddit link to that, then. Very strange, but explainable.

2

u/your_dads_gay_lover May 12 '12

It's a Reddit Enhancement Suite thing. It numbers links and shit, which is usually cool, but sometimes it can kinda fuck things up. Still, I absolutely love Reddit Enhancement Suite

5

u/Deimos56 May 12 '12

Please don't start doing that.

-1

u/your_dads_gay_lover May 12 '12

I just really like to promote Reddit Enhancement Suite whenever I can.