gnembon / scarpet

Public Repository of scarpet programs for Minecraft
Creative Commons Zero v1.0 Universal
359 stars 162 forks source link

replace_hotbar duplicating items #402

Open HaZmX opened 3 months ago

HaZmX commented 3 months ago

I've upgraded my fabric 1.20.4 server to 1.21, and this script is now duping items whenever the original stack gets refilled, it would be nice if it worked as before, makes building larger projects easier and more enjoyable

To Reproduce Steps to reproduce the behavior:

  1. use any consumable item or block
  2. Use block or item until the stack runs out, it will then get refilled by a second stack in your inventory
  3. block or item has been duplicated

Explanation

whenever you run out of an item it pulls an items from a new stack but also dupes that stack at the same time.

Environment

would be greatly appreciated if someone can fix this though I know 1.21 has changed a lot of things that could make it difficult to update