This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
KingofGamesYami's profile picture

Setblocking a turtle

Started by KingofGamesYami, 25 June 2016 - 06:12 PM
KingofGamesYami #1
Posted 25 June 2016 - 08:12 PM
What is a valid data tag for setblocking a turtle? Using the one returned by blockdata fails with invalid usage.

commands.setblock( "~ ~1 ~ computercraft:CC-TurtleExpanded 0 replace {computerID:2,fuelLevel:0,selectedSlot:0,leftUpgrade:\"minecraft:diamond_sword\",Items:[0:{Slot:0b,id:\"minecraft:dye\",Count:64b,Damage:4s,},1:{Slot:1b,id:\"minecraft:enchanting_table\",Count:1b,Damage:0s,},],id:\"turtleex\",dir:5,on:1b,}" )
Edited on 25 June 2016 - 06:12 PM
Bomb Bloke #2
Posted 26 June 2016 - 07:11 AM
Works for me as written.

Which version of Minecraft are we talking about? I'm on 1.8.9.
KingofGamesYami #3
Posted 26 June 2016 - 03:19 PM
Well this is weird… I went and tested it and today it works (???). Yesterday I was getting something about invalid usage.

So yeah. It works and I won't touch it now.