Posted April 27, 20187 yr Hi all! I want to make a block, that loads it's own recipes from a json file. I made the management of recipes, it detects it, and gives me the result, but I don't know how to even open a json from code. If someone tell me how to, then I just need to modify my code a little bit... so how do I load info from a JSON? Thanks! (Sorry for bad English, I'm Hungarian) 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;
April 28, 20187 yr Author Thanks again! 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;
April 28, 20187 yr Author Hmm... I tried to do it by tutorials on the internet, but I just can't figure it out. Can somebody send an example? 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;
April 28, 20187 yr Author I deleted them but I remeber that: - I made a gson named json. - I tried to read from it, but I didn't know, how to set the file, what I want to use... So I became angry after 1 hour of trying, and I deleted that java file. 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;
April 28, 20187 yr Author Yes, but the guide made for normal java, and not for forge. I just don't get it, how can I set this to a location in "minecraft" and this isn't says anything about file location, or path, etc. . 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;
April 28, 20187 yr Author I want to set it to like "mymod:assets/mymod/recipes/customblock/recipe.json" 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;
April 28, 20187 yr Author I think I got closer with it, thanks. (Now I don't have an error, and I loaded something, but not the final object) 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.