CIT Resewn

CIT Resewn

14M Downloads

CIT Type Enchantment

SHsuperCM opened this issue ยท 17 comments

commented

Need to implement

commented

I'd suggest Misa's Realistic Texture Pack, I makes heavy use of MCPatcher/Optifine features and had custom enchantment glints in 1.7.
Link to the 1.7 version: https://www.mediafire.com/file/so06m43621fp23k/Misa%252B.zip/file

commented

Specifications are too unclear to implement as is.

Need to find a working pack example and/or reverse engineer mcpatcher's implementation because the docs for this are shit.

commented

Try xali's enchanted books if you need an example pack, it's pretty comprehensive as I believe it covers every enchantment at every level.

commented

Try xali's enchanted books if you need an example pack, it's pretty comprehensive as I believe it covers every enchantment at every level.

Yeah but that pack is not using type=enchantment, it's just replacing enchanted book visuals using type=item and I'm looking for packs that used to replace the glint.png texture.

commented

what about

https://www.curseforge.com/minecraft/texture-packs/enchanted-tools

https://www.curseforge.com/minecraft/texture-packs/enchanted-weapons

https://www.curseforge.com/minecraft/texture-packs/enchanted-armors

That's not what SHsuperCM is looking for, it's a separate thing I guess. I don't know of any packs that replace the enchant glint using CIT

commented

Yep, it seems to me like there arent any packs for this because it's been a broken feature for so long in optifine..

Gonna need something like.. mcpatcher level of old texturepacks and just play with it in an old mc version.. that is, if I cant figure out how it was implemented back then from mcpatcher's code which is luckily available.

commented

vZE2F3iSXe

๐Ÿ‘€

commented

v0.8.0 is out with partial support for type=enchantment!

On top of the default configuration of the type in optifine's cit_single.properties there is also blur which defaults to true, this blurs the texture before it's applied(which happens with the vanilla glint)

commented

Right now the type is missing blend, duration and the global properties are missing method and fade

commented

Documentation soon

commented

The only thing missing right now is the global mixing method for how the intensities are linked to the enchantment condition if present.

(and the docs for everything)

commented

method, fade and duration will all work in v0.9.0

commented

@Moyme

Just noticed that MCPatcher handled it less like actual enchantment glints, more like an overlay. Maybe add an animation option or something similar.

MCPatcher: https://user-images.githubusercontent.com/61115715/160247447-9ae5501b-4811-40b0-addd-0e84bfcc2779.gif

CITResewn: https://user-images.githubusercontent.com/61115715/160247479-bd67fc35-ae34-48c8-b9c1-e8688e7d35e8.gif

(I hope I ported the pack correctly)

I'm going to need the pack before and after your port to compare. A lot of mcpatcher's handling of this had to be written from scratch to work with modern mc so there's definitely some differences.

commented

I reduced the properties files and changed the numerical enchantmentIDs to the new ones

Original (also mentioned above):
https://www.mediafire.com/file/so06m43621fp23k/Misa%252B.zip/file

My port:
Enchantment Tests.zip

I also just noticed it may have something to do with the blur option, I think MCPatcher also disables the slow scrolling animation when it is false.

Edit: I used Animatica for custom animated textures.

commented

Just noticed that MCPatcher handled it less like actual enchantment glints, more like an overlay. Maybe add an animation option or something similar.

MCPatcher:
https://user-images.githubusercontent.com/61115715/160247447-9ae5501b-4811-40b0-addd-0e84bfcc2779.gif

CITResewn:
https://user-images.githubusercontent.com/61115715/160247479-bd67fc35-ae34-48c8-b9c1-e8688e7d35e8.gif

(I hope I ported the pack correctly)

commented

@Moyme

I reduced the properties files and changed the numerical enchantmentIDs to the new ones

Original (also mentioned above): https://www.mediafire.com/file/so06m43621fp23k/Misa%252B.zip/file

My port: Enchantment Tests.zip

I also just noticed it may have something to do with the blur option, I think MCPatcher also disables the slow scrolling animation when it is false.

Edit: I used Animatica for custom animated textures.

Ok so I got it working like in mcpatcher.. sorta....
First to stop the texture from scrolling, I noticed that the default scroll speed in CIT Resewn is 1.0 and apparently in mcpatcher the default was 0.0 so that needs fixing. You should probably set it manually with speed=0 as well to have it explicitly defined.

Then also it seems that mcpatcher offset the texture by half a Y unit so it matches with the item.
image

There isn't a way to do that with CITR yet so I tried just doing it in code quickly to check and it seems to work fine now.
image

I'll open an issue for those to get a permanent solution going and probably target v1.1.0.