EMI

EMI

1M Downloads

[Feature Request] Clock and Compass randomness

Disketaa opened this issue ยท 8 comments

commented

Make clock and compass random in EMI index tab when player in survival mode
(To make a reason to craft them instead of view just in tab)

commented

The mod in question is likely Embeddium/Rubidium. Having this loaded alongside EMI causes this issue. This does not occur with JEI+Embeddium/Rubidium, however.

commented

a clock and compass in default position
they already don't do anything, they don't need to be random.

commented

1.20.2
Test

commented

This is not the behavior of vanilla. You have a mod that is making the compass and clock do this.

commented

@emilyploszaj The overload of DrawContext#drawItem that you call here:

passes the client player & world to the compass model, which allows it to resolve the angle. I think if you want to prevent this behavior you need to use drawItemWithoutEntity instead. I'm not sure why this is not an issue without a Sodium-like mod installed; do you use a different rendering path for vanilla?

commented

It seems like it doesn't occur in vanilla because of the batched renderer, which has to be disabled because of sodium crashing custom vertex writers or something back in the back. This is something EMI will have to resolve and it shouldn't be that bad given the context from embeddedt, thanks for looking into it.

commented

Custom vertex writers should be fine as of Sodium 0.5.4; all of the fallback solutions from Embeddium have made their way upstream. That is only usable on 1.20.2+ though.

commented

This was fixed in 1.0.28 (and only affected 1.20 onward versions)