Inksaver / Minecraft-Toolkit

Lua code for the ccTweaked mod. Take charge of your turtles!
4 stars 0 forks source link

turtle.craft() #1

Open kizeren opened 3 days ago

kizeren commented 3 days ago

As of 1.21.1 turtle.craft() doesn't not show up as a useable function.

Found on tk.lua line 9450 I believe it was.

Inksaver commented 3 days ago

The toolkit version here is dated 20230927.1400 as I usually put updated versions on Pastebin where they can be directly downloaded from within ccTweaked. I will update all the files here later today but it is currently working with cc-tweaked-1.21.1-forge-1.113.1.jar and neoforge. The current version is 20241111.1400 but is being updated frequently. The best source is https://pastebin.com/8qbeZevX which loads them automatically and has a list of all pastebin urls starting on line 249 tk.lua turtle.craft() is currently on line 9704 and 10929 clsTurtle.lua turtle.craft() is currently on line 897, 906, 920 and 1034

kizeren commented 3 days ago

I finally got it on the right version but still the same error. I am guessing something is missing from the fabric install.

cc-tweaked-1.21.1-fabric-1.113.1.jar fabric-server-mc.1.21.1-loader.0.16.9-launcher.1.0.1.jar

After doing some testing. It would appear I missed something. After crafting a mining turtle. You have to put the turtle back in your craft window and add a crafting table to it. Can't insert into the slot or it doesn't register as a crafting turtle and thus can't use turtle.craft().

Screenshot_2024-11-14_09-07-24 Screenshot_2024-11-14_09-12-08

Inksaver commented 3 days ago

I suspect this is a bug in the fabric version of ccTweaked, and worth reporting it on their github. As a workaround, are you able to place the crafting table in slot 1 and from the lua interpreter use turtle.equipRight() followed by adding a log, then turtle.craft()? If that works, I could add a workaround.

kizeren commented 3 days ago

Ok. Yes using turtle.equipLeft() worked.

Inksaver commented 2 days ago

I added the line T:setEquipment() as line 15867 (see screenshot) When you start tk it unloads all equipment and replaces it. Could you check if that works? CCTweaked bug fix

kizeren commented 2 days ago

It seems to have fixed it. Let me use it for rest of the week and I'll report back.