dthigpen / dtcraft-datapacks

MIT License
6 stars 2 forks source link

AutoCrafters keep popping into my inventory? #6

Closed goblinboii closed 1 year ago

goblinboii commented 1 year ago

Autocrafters keep poping into my inventory, how do i stop that?

goblinboii commented 1 year ago

Had a datapack that unlocks all recipes which was causing a loop lol

dthigpen commented 1 year ago

Ah I could see that. It's been a while since I've looked at these datapacks but if I recall correctly, the logic for crafting custom items involves giving a player a recipe or advancement then taking it away. So the Autocraft datapack would see that the user unlocked it, gives them the custom item, removes the recipe or advancement, then the other datapack gives it back, causing the loop.

When I get back into datapack development I will see if I can improve the method, there is likely something better by now. Thanks for finding that out!