KubeJS (Old)

KubeJS (Old)

3M Downloads

replace a tag input/output in recipes is currently impossible

DelviousCrafts opened this issue ยท 0 comments

commented

Minecraft Version

1.19.2

KubeJS Version

1902.6.0-build.142

Rhino Version

1902.2.2-build.268

Architectury Version

6.5.77

Forge/Fabric Version

Forge 43.2.8

Describe your issue

using:

event.replaceInput({ input: '#tagnamehere' }, '#tagnamehere', '#someothertag')
or
event.replaceInput({ input: '#tagnamehere' }, '#tagnamehere', 'someitemname')

will replace every single tag that exists in every recipe with the thing specified in the replacement field, and not just recipes with '#tagnamehere'

using:

event.replaceInput({}, '#tagnamehere', '#someothertag')
or
event.replaceInput({}, '#tagnamehere', 'someitemname')

will replace any item in any recipe that is part of that tag, even if the recipe only calls for the item. For example replacing '#forge:stone' with '#forge:rods/wooden' will replace the recipe for stone stairs with sticks as well, even though the recipe doesn't call for the tag, but for the stone item itself.

This is not an issue with individual items recipe replacement, even when using a tag for the replacement field. This only happens when trying to replace a tag in recipes.

Providing two logs. One with the tag in brackets:
link

and one with the beginning brackets empty
link

Crash report/logs

No response