Skip to content

itemSize fails in some cases #40

@Hakoyu

Description

@Hakoyu

TFC version: 3.2.20
KubeJS-TFC version: 1.3.4

I am playing the modpack ATMG².
Try using KJS-TFC and modify the size of all items so that they can be stacked to 64, but the itemSize method doesn't seem to work.

TFCEvents.data(event => {
  event.itemSize('minecraft:iron_ingot', 'very_small', 'very_light');         // fail
  event.itemSize('minecraft:copper_ingot', 'very_small', 'very_light');    // fail
  event.itemSize('minecraft:gold_ingot', 'very_small', 'very_light');       // success
})

If I modify all the items, none of the items are modified successfully

TFCEvents.data(event => {
  // all fail
  Item.getList().forEach(e => {
    // console.log(e.id);
    event.itemSize(e.id, 'very_small', 'very_light');
  })
})

So how can I correctly modify the itemSize of all items ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    systems interactionDue to unforseen interactions, something isn't working like expected, though not incorrectly either

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions