Thanks y'all!
Won't work... The interface doesn't have a text.
Try looking for "Spin" in the search bar, it will help you find the correct interface component.
I looked for spin, and in interface 1370, it has component 40 with 5 sub-components. I'm pretty sure the 5 sub's are each of the 5 items that can be used on the wheel. (1370, 40, 1) would be the second one in the interface which would be bowstrings. How would I implement that inside Savior's code though?
final InterfaceComponent spinInterface = Interfaces.newQuery().containers(1371).texts("Spin").results().first();
if (spinInterface != null) {
spinInterface.interact("Make 28 Bowstring");
}
EDIT: Here's the component contents:
Index: 1
Visible: true
Components: 0
Bounds: (x=975, y=562, width=240, height=42)
Text: Spin
Text Color: (r=39, g=34, b=15)
Content Type: 0
Projected Entity: null
Border Thickness: 0
Texture Id: -1
Name (on menu): null
Actions:
I've made it click by changing the interface to (1370, 40, 1) and using .click(). I just have to make it wait until it's finished lol. It's clicking the wheel right after it starts. xD I think I can fix that though.