Skip to content

Int List is wrong for "nbt_from_int_list" #37

@Valgrifer

Description

@Valgrifer

Issue type:

  • 🐛 Bug

Short description:

Steps to reproduce the problem:

  1. get UUID variable (for exemple sophisticated backpacks uuid)
  2. Apply it to a simple function function test(v) {return v}
  3. Try to use result in a "nbt_from_int_list"

In the image, the variables are materialized to see the exact components.
The top part is the original variable
and below is the one passed by the js function
Image

Expected behaviour:

That the list of integers is seen as such for the function, it makes the operator idContext.ops.intListAsNbt and ValueItemStack.withData unitilizable. I think the problem is that the NBT is well translated into js object, but not necessarily from js to Java, I think the solution would be to make a ValueNBT


Versions:

  • This mod: 1.0.17
  • Minecraft: 1.21.1
  • Mod loader version: NeoForge 21.1.133

Log file:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions