Posted July 15, 20187 yr Hi all! I want to change the nether's biome provider, but the way that worked in 1.9.4 isn't good. Here's what I found: @Mod.EventHandler public void onWorldLoad(WorldEvent.Load event) { World world = event.getWorld(); if(world.provider instanceof WorldProviderHell) { world./*(How to set?)*/ = new BiomeProviderSingle(Biomes.FROZEN_OCEAN); } } Edited July 16, 20187 yr by Legenes procedure WakeMeUp(Integer plusTime); var I: Integer; begin for I := 0 to plusTime do begin println('One more minute!'); Sleep(1000); end; println('Okay, nothing to worry, I''m alive!'); println('So... somebody can give me a coffee?'); println('I know it''s Pascal, and not Java, but I love it :D.'); end;
July 16, 20187 yr Author I don't know how reflections work, could you give me an example please? I searched on google but I just can't manage to do it. procedure WakeMeUp(Integer plusTime); var I: Integer; begin for I := 0 to plusTime do begin println('One more minute!'); Sleep(1000); end; println('Okay, nothing to worry, I''m alive!'); println('So... somebody can give me a coffee?'); println('I know it''s Pascal, and not Java, but I love it :D.'); end;
July 16, 20187 yr 56 minutes ago, Legenes said: I don't know how reflections work, could you give me an example please? I searched on google but I just can't manage to do it. You should show what you tried, people are more likely to help debug some already written code than to write some up for you
July 16, 20187 yr Author 1 minute ago, Ugdhar said: You should show what you tried Yeah, that's the problem... because I didn't understood at all the tutorials about reflection, they were all different and I made no change, this is the same as the code in the main post. procedure WakeMeUp(Integer plusTime); var I: Integer; begin for I := 0 to plusTime do begin println('One more minute!'); Sleep(1000); end; println('Okay, nothing to worry, I''m alive!'); println('So... somebody can give me a coffee?'); println('I know it''s Pascal, and not Java, but I love it :D.'); end;
July 16, 20187 yr Author I think I found another solution to do this. procedure WakeMeUp(Integer plusTime); var I: Integer; begin for I := 0 to plusTime do begin println('One more minute!'); Sleep(1000); end; println('Okay, nothing to worry, I''m alive!'); println('So... somebody can give me a coffee?'); println('I know it''s Pascal, and not Java, but I love it :D.'); end;
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.