CraftTweaker

CraftTweaker

151M Downloads

NBT Tag with "as byte[]"

DerOliDE opened this issue · 4 comments

commented

I don't know if it's a misunderstanding, a wrong usage or a bug.

if i try to use an byte array:
[ 1, 2, 3 ] as byte[]
I'll get this error:
cannot cast byte[] to minetweaker.data.IData

"Real World" Exampe:

recipes.addShaped( thermExpInductionsmelter.withTag({
  "RSControl": 0 as byte,
  "Facing": 3,
  "Energy": 0,
  "Level": 0 as byte,
  "SideCache": [3, 1, 2, 2, 2, 2] as byte[],
  "Augments": [
    { "Slot": 0, "id": 5627 , "Count": 1 , "Damage": 0 }, 
    { "Slot": 1, "id": 5627 , "Count": 1 , "Damage": 32 }, 
    { "Slot": 2, "id": 5627 , "Count": 1 , "Damage": 16 }
  ]
  }), [[null,enderIOTank,null],[bcAdditionsCoilLava,frame,bcAdditionsCoilLava],[odPlateInvar,advGenePowerIO,odPlateInvar]]);
commented

What crafttweaker version?

On Nov 10, 2016 2:26 PM, "Oliver" [email protected] wrote:

I don't know if it's a misunderstanding, a wrong usage or a bug.

if i try to use an byte array:
[ 1, 2, 3 ] as byte[]
I'll get this error:
cannot cast byte[] to minetweaker.data.IData

"Real World" Exampe:

recipes.addShaped( thermExpInductionsmelter.withTag({
"RSControl": 0 as byte,
"Facing": 3,
"Energy": 0,
"Level": 0 as byte,
"SideCache": [3, 1, 2, 2, 2, 2] as byte[],
"Augments": [
{ "Slot": 0, "id": 5627 , "Count": 1 , "Damage": 0 },
{ "Slot": 1, "id": 5627 , "Count": 1 , "Damage": 32 },
{ "Slot": 2, "id": 5627 , "Count": 1 , "Damage": 16 }
]
}), [[null,enderIOTank,null],[bcAdditionsCoilLava,frame,bcAdditionsCoilLava],[odPlateInvar,advGenePowerIO,odPlateInvar]]);


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/jaredlll08/CraftTweaker/issues/83, or mute the thread
https://github.com/notifications/unsubscribe-auth/AFS9xVuSdEL91tKP7Twp-jVLMRvXNPKMks5q8w2DgaJpZM4Kumqp
.

commented

1.7.10 3.0.13

commented

Well it is fixed in 3.0.14, but it is 1.10 only

On Nov 10, 2016 2:37 PM, "Oliver" [email protected] wrote:

1.7.10 3.0.13


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/jaredlll08/CraftTweaker/issues/83#issuecomment-259679642,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFS9xSlRkYVPRMMbZnVLROGOSqjSTxm4ks5q8xAZgaJpZM4Kumqp
.

commented

Also 1.7.10 is no longer supported