Jump to content

[1.14.4] Best way to handle ticking tileEntity's recipes


Recommended Posts

Posted

Hi everyone!

I just want to ask a simple question about ticking tile entities that are processing items, like a crusher, smelter, etc. What's the best way to make a dynamically (via a config file, or multiple JSON files) expandable recipe holder, where is the best place to store that file, and most importantly what is the most efficient way of determining which recipe is being used?

(Btw, how long is it going to take to port forge to 1.15? Fabric already did it, but I like Forge more.)

Thanks for any help!

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;
Posted

I looked at the vanilla classes, and they do it in such a way that I don't want to implement, I think I'll do the loading in of the recipes and their syntax by myself. My other questions are still present:

 

* How do I load a file from a specific location? (i.e. .minecraft/abfem/recipes/)

* How should I handle them only on the server?

* What should I use to store the recipes?

* How can I make the determining of the used recipes efficient enough?

 

Thanks for any help!

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;
Posted

Bump. Anyone? Please?

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.