Can't equip tools to turtles
DataTriny opened this issue ยท 8 comments
Minecraft Version
1.18.x
Version
CC: Tweaked 1.100.2, Forge 39.0.59
Details
Steps to reproduce
- Place a Turtle or an Advanced turtle,
- Put a tool from Minecraft Vanilla in the first inventory slot (I tried axes, pickaxes and shovels of different materials),
- Open the Lua REPL,
- Call
turtle.equipLeft()
(I get the same behavior withequipRight
, false, "Not a valid upgrade"
is returned.
Trying to directly craft a turtle with a tool does not work either, nothing gets crafted. However I can equip a Wireless Modem just fine.
Logs
@Wojbie I have performed all the tests on a new world that I created when I had only CC: Tweaked installed and all the tools were brand new. Issuing the command you gave outputs the same result on my side.
Now, taking a more systematic approach by testing all possible tools revealed something interesting: I can equip any tool made out of diamond, but nothing else. Since you guys have only showed me results with diamond tools, would you mind trying with tools made of something else than diamond?
Ahh, that would be why. Only diamond tools can be equipped as upgrades by default.
I missed that. Coming from OpenComputers and I didn't remember this detail from the old ComputerCraft. Sorry for wasting your time.
Thanks.
@SquidDev the tools I tested came straight from the Creative inventory (not damaged, not renamed, not enchanted).
I can see a bunch of exceptions in the debug log but nothing very helpful...
I am running Ubuntu 20.04 by the way.
Astral Sorcery changes new tools and used to break CC:T's tool equipping, perhaps there is another mod doing that now.
Try to reproduce the bug with just CCLT installed, if it works as expected then install mods one at a time to narrow down which is conflicting.
I initially tried on a Forge profile with other mods but reproduced the issue on a fresh one before reporting here. Do config/resource files managed by Forge get regenerated at each game startup, or should I delete some cache files that might have been kept from the old profile?
Have you been testing on clean world+new pickaxe each time? If pickaxe was modified by some mod then tags will stay on that pickaxe after you removed the mod.
Here is other test: put pickaxe in your hand slot and type /data get entity @s SelectedItem
. Is your output different from mine? If so can you share it?