TeamTotemic / Totemic

A Minecraft mod that allows you to control the world through the power of Totem Poles
https://www.curseforge.com/minecraft/mc-mods/totemic
MIT License
29 stars 21 forks source link

Support for modded woods for Totem Base and Totem Pole #62

Closed asiekierka closed 2 years ago

asiekierka commented 6 years ago

I'd like to contribute this feature, as it fits my modpack plans. Is it desirable for the project?

ljfa-ag commented 6 years ago

Yes, and I think this has been suggested before. It would tie in with reintroducing wood bonuses.

How would you imagine to implement it? Have it add a variant for every modded log and autogenerate textures, or add an API where mods can opt in?

asiekierka commented 6 years ago

The same way I do it in Charset - store every modded log in the item stack's NBT (and the block's tile entity) as the item stack representation of the log, and cache retextured JSON models to ensure fast rendering.

It'd be cool if I could use CharsetLib for this, but I'm not going to force a dependency on you so I'll just copy over the relevant code structures (not a lot of them).

ljfa-ag commented 6 years ago

Sounds good. Yeah I'd rather not have that dependency.

Sunconure11 commented 6 years ago

If you must use that as a dependency, why not do it as an addon?

asiekierka commented 6 years ago

Doing it as an addon would be the best for both parties, I think. I'll look into it.

ljfa-ag commented 6 years ago

I doubt that this sort of thing would work well as an addon. Especially when I want to expose the pole's wood type in the API.

asiekierka commented 6 years ago

If you expose the wood type as the wood log's ItemStack, there's no problem for modded poles to do so. And if you want a modification like this, you'll kind of have to do that anyway.

ljfa-ag commented 6 years ago

I see, that would make sense.

ljfa-ag commented 2 years ago

I guess this is not relevant anymore for newer Minecraft versions, as new Wood Types can be added.