#item texture based on stack size
9 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
I think this is a datapack feature that already exists?
i've only seen it done with optfine before
i know thermal does (did?) it but with a custom thing they made
idk if its still the case now
[➤](#1131190895375556649 message)
StartupEvents.postInit(event => {
if (!Platform.isClientEnvironment) return;
const $ItemProperties = Java.loadClass('net.minecraft.client.renderer.item.ItemProperties')
$ItemProperties.register(Item.of(item), new ResourceLocation('count'), (stack, world, living, seed) => {
return stack.getCount() / stack.getMaxStackSize()
})
})
No promises it works on 1.20 though
wow this works perfectly with what i had set up before thanks