Fix Nether Portal and End Platform creation.

Based on commits made by reo7sp. 40ac8232c46873dee2a5b272ea5176219067656f 6bcb1b5e33d80b5162e2f5c160b6f84a32dd292f

But reworked/fixed his "Fix ender portal creation" (6bcb1b5e33d80b5162e2f5c160b6f84a32dd292f)