Jump to content

[1.12.2] How to get looting table and generate an itemstack from it


Taskkill

Recommended Posts

If you implemented your own entity already, then you just need to @Override the getLootTable method like this:

@Override
public ResourceLocation getLootTable() {
	return new ResourceLocation("[your loot table's position]");
}

I use this site to generate the file: https://amaury.carrade.eu/minecraft/loot_tables (Note: if you want to have mod items in it, write them with their modid too. etc.: yourModID:yourModItem)

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;
Link to comment
Share on other sites

1 hour ago, diesieben07 said:

Vanilla fishing

Oh, I thougth he wanted to make an entity like the 1.13 ones. Sorry ?.

Edited 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;
Link to comment
Share on other sites

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.