phantamanta44 / tinkers-evolution

the fresh new tinkers' construct addon
https://www.curseforge.com/minecraft/mc-mods/tinkers-evolution
Other
23 stars 15 forks source link

CraftTweaker: Cant get item list from #34

Closed Krutoy242 closed 4 years ago

Krutoy242 commented 4 years ago

TconEvo version: 1.0.31

For modpack making purposes i need to iterate through all items in a mod. This function usually return all items in a mod, but with tconevo its return only few items:

for item in itemUtils.getItemsByRegexRegistryName(".*tconevo:.*") {
  print(item.displayName);
}

return:

Pink Slimy Mud
Raw Meat Ingot
Internal Item
Coalescence Matrix
Wyvern Metal Ingot
Wyvern Metal Block
Arcane Focus
Sceptre

Feels like items is not loaded completely. Am i do something wrong, or there is no way to get items with this function?

phantamanta44 commented 4 years ago

it seems like this is correct behaviour: it produces a list of all the registered items in the mod. it's important to note that many of the "items" are just sub-items (i.e. differentiated by metadata) -- for example, all the other metal ingots are sub-items of the item listed as "wyvern metal ingot"

Krutoy242 commented 4 years ago

Seems like you are right... I was intended to remove all gear recipes, but i would use another way then. Thank you for fast answer!