20w13a
This commit is contained in:
parent
8679c9398f
commit
11290e89e7
28 changed files with 63 additions and 53 deletions
|
@ -51,7 +51,7 @@ public class ScrapBoxItem extends Item {
|
|||
List<RebornRecipe> scrapboxRecipeList = ModRecipes.SCRAPBOX.getRecipes(world);
|
||||
int random = world.random.nextInt(scrapboxRecipeList.size());
|
||||
ItemStack out = scrapboxRecipeList.get(random).getOutputs().get(0);
|
||||
WorldUtils.dropItem(out, world, player.getSenseCenterPos());
|
||||
WorldUtils.dropItem(out, world, player.getBlockPos());
|
||||
stack.decrement(1);
|
||||
}
|
||||
return new TypedActionResult<>(ActionResult.SUCCESS, stack);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue