VazkiiMods / Botania

A tech mod for Minecraft themed around the magic of nature and plant life.
http://botaniamod.net/index.html
Other
1.29k stars 510 forks source link

Paint lens don't work on beds and shulker boxes #4343

Open LeoBeliik opened 1 year ago

LeoBeliik commented 1 year ago

Mod Loader

Forge

Minecraft Version

1.19.2

Botania version

Botania-1.19.2-438-FORGE

Modloader version

43.2.8

Issue description

paintslinger lens don't paint beds or shulker boxes

Steps to reproduce

place a bed/shulker box in world shoot em with the paint lens observe

Other information

Candles don't work either

TheRealWormbo commented 1 year ago

As mentioned in the Discord: The current implementation is limited in what it can do. It can't really handle any blocks that have any kind of block state or block entity associated, as it would hard-replace the existing block with the default block state of the new color. This applies not only to the blocks mentioned above, but technically also to Glazed Terracotta, which is supported, but will not maintain its orientation when painted. Also, entity support is hard-coded to sheep and sparks.

Botania currently handles the following things out of the box:

It currently does not handle the following things that can have a color in vanilla Minecraft:

zacharybarbanell commented 1 year ago

Unclear it the shulker mobs should be supported, since they can't be dyed in vanilla.

TheRealWormbo commented 1 year ago

Unclear it the shulker mobs should be supported, since they can't be dyed in vanilla.

Technically vanilla also doesn't let you re-dye anything that's already dyed, except signs and sheep. The shulker mob is mostly there to illustrate another thing: Other mods may introduce colored mobs that are not necessarily sheep, and it would probably be nice if there was a relatively easy way to support the paintslinger lens.

I can think of a couple of other things that may or may not be receptive to a paintslinger mana burst:

In that regard, making the dyeing logic as flexible as possible would only seem reasonable.

TheRealWormbo commented 10 months ago

An updated overview of the current implementation, for reference.

Out of the box, Botania properly supports coloring the following:

Still missing support for these vanilla items:

An interesting detail is that the current implementation always has the same "dyeing strength", regardless of the amount of mana in the mana burst. Maybe the range of the effect should scale in some reasonable way, e.g. similar to the explosion strength of an entropic lens or the number of blocks a bore lens can break. A burst fired from a pulse spreader with messenger+velocity lens should probably not have the same effect as one fired from a gaia spreader with potency lens, carrying over 50 times more mana than the former.