Taskkill Posted January 11, 2019 Posted January 11, 2019 How to get looting table and generate an itemstack from it? I want to make my own way to fish, but I have no idea about getting loots. Please excuse my spelling errors. Quote
AndreiiiH Posted January 13, 2019 Posted January 13, 2019 Hey @Taskkill, see the docs about Loot Tables for this. Quote
Taskkill Posted January 13, 2019 Author Posted January 13, 2019 8 hours ago, AndreiiiH said: Hey @Taskkill, see the docs about Loot Tables for this. I've seen that. But I cannot understand it. Can you please give an example? Thanks a lot! Quote
Legenes Posted January 13, 2019 Posted January 13, 2019 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) Quote 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;
Legenes Posted January 13, 2019 Posted January 13, 2019 (edited) 1 hour ago, diesieben07 said: Vanilla fishing Oh, I thougth he wanted to make an entity like the 1.13 ones. Sorry ?. Edited January 13, 2019 by Legenes Quote 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;
Recommended Posts
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.