CraftTweaker

CraftTweaker

151M Downloads

cannot cast string[] to IData

friendlyhj opened this issue ยท 0 comments

commented

Issue Description:

cannot cast string[] to IData

What happens:

var a item with nbt
cast issue

Script used

// copied from ct hand command
val item = <item:minecraft:gold_block>.withTag({display: {Lore: ["123" as string]}});

crafttweaker.log file

https://paste.ubuntu.com/p/Dhh23PSWvW/


Affected Versions (Do not use "latest"):

  • Minecraft: 1.16.4
  • Forge: 35.1.29
  • Crafttweaker: 7.1.0.80
  • Using a server: no