CraftTweaker

CraftTweaker

151M Downloads

reuse() does not work

Opened this issue ยท 1 comments

commented

Issue Description:

reuse() in a script consumes the item.

What happens:

I have a script that adds a Shaped recipe using reuse(); in-game using this recipe it still consumes the item.

What you expected to happen:

I expected the item to remain in the crafting grid.

Script used

http://pastebin.com/z1RtVsL2

Minetweaker.log file:

Where can I find that one (doesn't seem to be in the log directory?)


Affected Versions

  • Minecraft: 1.10.2
  • Forge: 12.18.3.2221
  • Crafttweaker: 3.0.20
commented

After some testing it seems val acts like a pointer or reference? I guess that is how you could interpret the wiki but it doesn't seem very clear to me.