#Get Ore Byproduct Property Via KubeJS?

10 messages · Page 1 of 1 (latest)

green hornet
#

How do I get the ore byproducts of an existing registered material through KubeJS?

sonic gazelle
#

[material].getProperty(OreProperty).getOreByProducts() shjould work

green hornet
#

let byproducts = GTMaterials.Cassiterite.getProperty(PropertyKey.ORE).getOreByproducts()
The getOreByproducts() doesn't work.

sonic gazelle
#

try logging the propertykey ore? is it null?

#

also chrck how cassiterite is created in java

green hornet
#

The property key ore isn't null, but the .arguments property is undefined.

sonic gazelle
#

typo

#

capital P

#

ByProducts

green hornet
#

Are you sure about that?