Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dupe with Quark #912

Open
DunYeeted opened this issue Nov 28, 2021 · 1 comment
Open

Dupe with Quark #912

DunYeeted opened this issue Nov 28, 2021 · 1 comment

Comments

@DunYeeted
Copy link

QuarkChisel.Dupe.mp4

By using either the Iron Chisel or Diamond Chisel and the "extract item" button from Quark, it is possible to dupe a block that has a chisel variation
Steps

  1. Open Iron/Diamond Chisel GUI
  2. Input the block you wish to dupe
  3. Press extract
  4. Repeat 2-4

Variation

However, using the iChisel, you are able to dupe any item regardless of if it can stack to 64, 16, or unstackable.
Steps

  1. Open iChisel GUI
  2. Click on item you wish to dupe
  3. Press extract
  4. If you wish to dupe more, then unselect the item and reselect
  5. Repeat steps 2-5 until you have reached desired amount

Tested on the latest version of both mods in 1.16.5, no other mods were in the pack excluding their dependencies

@tterrag1098
Copy link
Member

@Vazkii What does this action do special and different compared to a typical shift click? The variation slots are coded to "craft" as soon as they are picked up from, so my guess is that the extract item button is manually pulling stacks from slots?

@Override
public ItemStack onTake(PlayerEntity player, ItemStack itemstack) {
ItemStack chisel = container.getChisel().copy();
ItemStack res = craft(container, player, itemstack, false);
if (container.currentClickType != ClickType.PICKUP) {
res.shrink(1);
}
if (!res.isEmpty()) {
SoundUtil.playSound(player, chisel, itemstack);
player.inventory.setItemStack(res);
}
return ItemStack.EMPTY; // Return value seems to be ignored?
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants