Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

940
Ruined portals should use Euclidean (round) falloff for their surrounding netherrack patterns
Post Flair (click to view more posts with a particular flair)
Post Body

Ruined portals are a super interesting feature, but something always felt off to me about the way they generate. Specifically, their surrounding netherrack patterns looked abnormally pointy in the North/South/East/West directions.

I looked in the code (thanks to /u/SuperCoder79 for helping me find the place!), and sure enough it uses Manhattan distance to shape the pattern. I propose that this be replaced with a Euclidean-based distance falloff, to produce a more convincing effect. I've put together a quick demo to showcase the results. Rather than Euclidean, I used a slightly more efficient formula involving squared Euclidean distance, but any Euclidean-based falloff would work fine I think. I kept the radius the same, but it could be scaled back if necessary to keep the total number of blocks roughly the same as before.

Comparison:

The code is here for anyone savvy. It's a mod (rule 6?), but it's my own mod created specifically for demonstrations like this, so I'm hoping that's OK. I have a future post planned that discusses more of the changes in it, but wanted to focus on this one for now since it's a straightforward change.

Author
Account Strength
90%
Account Age
10 years
Verified Email
Yes
Verified Flair
No
Total Karma
4,425
Link Karma
2,593
Comment Karma
1,656
Profile updated: 3 days ago
Posts updated: 7 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
3 years ago