Hwyla

Hwyla

86M Downloads

[SOLVED] Add my block to HWYLA

frakier opened this issue ยท 1 comments

commented

I finally figured out how to get HWYLA into my work environment using
[sorry this breaks the code insert wrapper]....

repositories {
maven { url "https://maven.tehnut.info" }
}

dependencies {
minecraft "net.minecraftforge:forge:1.14.4-28.2.23"

// Compile against the Hwyla API, but do not include it at runtime
compileOnly fg.deobf("mcp.mobius.waila:Hwyla:1.10.6-B67_1.14.4:api")
// At runtime, use the full Hwyla jar
runtimeOnly fg.deobf("mcp.mobius.waila:Hwyla:1.10.6-B67_1.14.4")

}

Now if I can find some simple straight forward examples of adding information for a block I'm looking at.

You would think searching for IWailaPlugin on github would help or in a search engine, everything is old and out dated and the results returned are just a few pages worth at best.
I need to figure out searching github since IWailaPlugin should return so much more, I found one mod to look at due to a person posting in here [way more complicated than I could use just learning how the hwyla works], that never was in the search results.
[EDIT:] Who knew I took the I off of IWailaPlugin and searched WailaPlugin and I'm getting better search results on github.

Anyway any help would be appreciated. A pointer in the right direction?

commented

OK figured it out had not added the BlockItem for the block.
So did that and without any other code it showed the basic information [the name] in Hwyla. Though I had to make a plugin.
So unless I want to customize something it works out of the box, should probably stamp that on the front page in BIG RED LETTERS.
Maybe this will help someone else.