BlackBeltPanda / Transport-Pipes

Buildcraft without mods! This is a fork of the original Transport-Pipes plugin featuring support for newer versions of Spigot, many bug fixes, performance improvements, and end-user enhancements.
https://www.spigotmc.org/resources/transport-pipes.20873/
MIT License
39 stars 10 forks source link

When `render_system: MODELLED`, server resource-pack is ignored #16

Closed nishio closed 3 years ago

nishio commented 3 years ago

In these days, I created a server resource-pack and it works well with a multiplay server without transport-pipes. Then I applied the pack to the other server with transport-pipes, there was a problem. Both server version is equal.

If I set render_system: MODELLED in my playersettings, pipes are rendered with models, but the blocks I modified in the pack are not rendered with the pack. If I set render_system: VANILLA, without any other changes, the blocks are rendered as I expected. Of course, the pipes are not rendered with models.

It may be possible workaround that I merge the pipes model into my resource-pack. But I feel there are any way to fix the problem in the code of the plugin. For example, a plugin Slimefun4 also changes some texture (of for example player-head object) without break my resource-pack.

I understand that the pipes are not the ordinal blocks or items of the minecraft (not like player-head in Slimefun4). I saw the pipes are saved in world/ducts.dat. I'm not sure how those are rendered. I guess it related with invisible armorstands.

Are there any other ideas to fix, or to determine problem?

BlackBeltPanda commented 3 years ago

Server-side resource packs override the client's and can't be merged with other server-side resource packs programmatically. The only way to make that work is to merge the contents of the Transport-Pipes resource pack with your own, then set "resourcepack_mode" to "server" in the Transport-Pipes config. You can get the resource pack here: https://github.com/BlackBeltPanda/Transport-Pipes/blob/master/src/main/resources/wiki/resourcepack.zip

Slimefun uses custom player heads rather than a resource pack. Sadly, Mojang removed support for transparency in custom player heads so I can't use them for pipes.