Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Sainthozier

Members
  • Posts

    6
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Sainthozier's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Hi. What I'm trying to do is set a random texture to my item, which is based on an NBT tag. Actually it's a book and I wanna to change its texture cover dynamically. I have 8 custom rarity types and 8 book cover textures per rarity type. So I have something like this: rarity_A NBT tag. Possible textures: a_book_1.png, a_book_2.png, a_book_3.png, a_book_4.png, a_book_5.png, a_book_6.png, a_book_7.png, a_book_8.png; rarity_B NBT tag. Possible textures: b_book_1.png, b_book_2.png, b_book_3.png, b_book_4.png, b_book_5.png, b_book_6.png, b_book_7.png, b_book_8.png; rarity_C NBT tag. Possible textures: c_book_1.png, c_book_2.png, c_book_3.png, c_book_4.png, c_book_5.png, c_book_6.png, c_book_7.png, c_book_8.png; etc... Should I create a custom texture atlas for this? How can I pick a random texture based on the book rarity NBT key and set it for the book model? P.S. Sorry for my English. I don't asleep probably for 40 hours and my mind is kinda fucked up.
  2. Don't forget to sync your capability data in Skills#addExp otherwise you wouldn't see any changes before those events.
  3. Solved. Tip 1: Don't code for 20 hours in a row. 🙃 Tip 2: Make f sure your refmap.json file name equals to refmap field value in modid.mixins.json.
  4. Thanks, @diesieben07 but how that could help me? I'm trying to make a custom glint texture only on items with my NBT tag.
  5. Hi. I'm trying to change the glint texture on items with the specific NBT tag. So I made a couple of mixins like Quark does. But minecraft crashes with InvalidInjectionException. Forge version: 1.16.4-35.1.13 Mappings version: 20201028-1.16.3 Crash log: Caused by: org.spongepowered.asm.mixin.throwables.MixinApplyError: Mixin [assets/thelostarcanum/thelostarcanum.mixins.json:ItemRendererMixin] from phase [DEFAULT] in config [assets/thelostarcanum/thelostarcanum.mixins.json] FAILED during APPLY at org.spongepowered.asm.mixin.transformer.MixinProcessor.handleMixinError(MixinProcessor.java:642) ~[mixin-0.8.2.jar:0.8.2+unknown-b0.git-unknown] {} at org.spongepowered.asm.mixin.transformer.MixinProcessor.handleMixinApplyError(MixinProcessor.java:594) ~[mixin-0.8.2.jar:0.8.2+unknown-b0.git-unknown] {} at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:356) ~[mixin-0.8.2.jar:0.8.2+unknown-b0.git-unknown] {} ... 27 more Caused by: org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException: Critical injection failure: @Inject annotation on setCorruptedTargetStack could not find any targets matching 'renderItem(Lnet/minecraft/item/ItemStack;Lnet/minecraft/client/renderer/model/ItemCameraTransforms$TransformType;ZLcom/mojang/blaze3d/matrix/MatrixStack;Lnet/minecraft/client/renderer/IRenderTypeBuffer;IILnet/minecraft/client/renderer/model/IBakedModel;)V' in net.minecraft.client.renderer.ItemRenderer. No refMap loaded. [PREINJECT Applicator Phase -> assets/thelostarcanum/thelostarcanum.mixins.json:ItemRendererMixin -> Prepare Injections -> -> handler$zzk000$setCorruptedTargetStack(Lnet/minecraft/item/ItemStack;Lnet/minecraft/client/renderer/model/ItemCameraTransforms$TransformType;ZLcom/mojang/blaze3d/matrix/MatrixStack;Lnet/minecraft/client/renderer/IRenderTypeBuffer;IILnet/minecraft/client/renderer/model/IBakedModel;Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;)V -> Parse] Full crash log: https://pastebin.com/QxbFjT3a Refmap: { "mappings": { "sainthozier/thelostarcanum/mixin/ItemRendererMixin": { "renderItem(Lnet/minecraft/item/ItemStack;Lnet/minecraft/client/renderer/model/ItemCameraTransforms$TransformType;ZLcom/mojang/blaze3d/matrix/MatrixStack;Lnet/minecraft/client/renderer/IRenderTypeBuffer;IILnet/minecraft/client/renderer/model/IBakedModel;)V": "Lnet/minecraft/client/renderer/ItemRenderer;func_229111_a_(Lnet/minecraft/item/ItemStack;Lnet/minecraft/client/renderer/model/ItemCameraTransforms$TransformType;ZLcom/mojang/blaze3d/matrix/MatrixStack;Lnet/minecraft/client/renderer/IRenderTypeBuffer;IILnet/minecraft/client/renderer/model/IBakedModel;)V", "getArmorVertexBuilder": "Lnet/minecraft/client/renderer/ItemRenderer;func_239386_a_(Lnet/minecraft/client/renderer/IRenderTypeBuffer;Lnet/minecraft/client/renderer/RenderType;ZZ)Lcom/mojang/blaze3d/vertex/IVertexBuilder;", "Lnet/minecraft/client/renderer/RenderType;getGlintDirect()Lnet/minecraft/client/renderer/RenderType;": "Lnet/minecraft/client/renderer/RenderType;func_239273_n_()Lnet/minecraft/client/renderer/RenderType;", "getBuffer": "Lnet/minecraft/client/renderer/ItemRenderer;func_229113_a_(Lnet/minecraft/client/renderer/IRenderTypeBuffer;Lnet/minecraft/client/renderer/RenderType;ZZ)Lcom/mojang/blaze3d/vertex/IVertexBuilder;", "Lnet/minecraft/client/renderer/RenderType;getGlint()Lnet/minecraft/client/renderer/RenderType;": "Lnet/minecraft/client/renderer/RenderType;func_228653_j_()Lnet/minecraft/client/renderer/RenderType;", "Lnet/minecraft/client/renderer/RenderType;getArmorGlint()Lnet/minecraft/client/renderer/RenderType;": "Lnet/minecraft/client/renderer/RenderType;func_239270_k_()Lnet/minecraft/client/renderer/RenderType;", "Lnet/minecraft/client/renderer/RenderType;getEntityGlintDirect()Lnet/minecraft/client/renderer/RenderType;": "Lnet/minecraft/client/renderer/RenderType;func_239274_p_()Lnet/minecraft/client/renderer/RenderType;", "Lnet/minecraft/client/renderer/RenderType;getArmorEntityGlint()Lnet/minecraft/client/renderer/RenderType;": "Lnet/minecraft/client/renderer/RenderType;func_239271_l_()Lnet/minecraft/client/renderer/RenderType;", "Lnet/minecraft/client/renderer/RenderType;getEntityGlint()Lnet/minecraft/client/renderer/RenderType;": "Lnet/minecraft/client/renderer/RenderType;func_228655_k_()Lnet/minecraft/client/renderer/RenderType;", "getEntityGlintVertexBuilder": "Lnet/minecraft/client/renderer/ItemRenderer;func_239391_c_(Lnet/minecraft/client/renderer/IRenderTypeBuffer;Lnet/minecraft/client/renderer/RenderType;ZZ)Lcom/mojang/blaze3d/vertex/IVertexBuilder;" }, "sainthozier/thelostarcanum/mixin/RenderTypeBuffersMixin": { "put": "Lnet/minecraft/client/renderer/RenderTypeBuffers;func_228486_a_(Lit/unimi/dsi/fastutil/objects/Object2ObjectLinkedOpenHashMap;Lnet/minecraft/client/renderer/RenderType;)V" } }, "data": { "searge": { "sainthozier/thelostarcanum/mixin/ItemRendererMixin": { "renderItem(Lnet/minecraft/item/ItemStack;Lnet/minecraft/client/renderer/model/ItemCameraTransforms$TransformType;ZLcom/mojang/blaze3d/matrix/MatrixStack;Lnet/minecraft/client/renderer/IRenderTypeBuffer;IILnet/minecraft/client/renderer/model/IBakedModel;)V": "Lnet/minecraft/client/renderer/ItemRenderer;func_229111_a_(Lnet/minecraft/item/ItemStack;Lnet/minecraft/client/renderer/model/ItemCameraTransforms$TransformType;ZLcom/mojang/blaze3d/matrix/MatrixStack;Lnet/minecraft/client/renderer/IRenderTypeBuffer;IILnet/minecraft/client/renderer/model/IBakedModel;)V", "getArmorVertexBuilder": "Lnet/minecraft/client/renderer/ItemRenderer;func_239386_a_(Lnet/minecraft/client/renderer/IRenderTypeBuffer;Lnet/minecraft/client/renderer/RenderType;ZZ)Lcom/mojang/blaze3d/vertex/IVertexBuilder;", "Lnet/minecraft/client/renderer/RenderType;getGlintDirect()Lnet/minecraft/client/renderer/RenderType;": "Lnet/minecraft/client/renderer/RenderType;func_239273_n_()Lnet/minecraft/client/renderer/RenderType;", "getBuffer": "Lnet/minecraft/client/renderer/ItemRenderer;func_229113_a_(Lnet/minecraft/client/renderer/IRenderTypeBuffer;Lnet/minecraft/client/renderer/RenderType;ZZ)Lcom/mojang/blaze3d/vertex/IVertexBuilder;", "Lnet/minecraft/client/renderer/RenderType;getGlint()Lnet/minecraft/client/renderer/RenderType;": "Lnet/minecraft/client/renderer/RenderType;func_228653_j_()Lnet/minecraft/client/renderer/RenderType;", "Lnet/minecraft/client/renderer/RenderType;getArmorGlint()Lnet/minecraft/client/renderer/RenderType;": "Lnet/minecraft/client/renderer/RenderType;func_239270_k_()Lnet/minecraft/client/renderer/RenderType;", "Lnet/minecraft/client/renderer/RenderType;getEntityGlintDirect()Lnet/minecraft/client/renderer/RenderType;": "Lnet/minecraft/client/renderer/RenderType;func_239274_p_()Lnet/minecraft/client/renderer/RenderType;", "Lnet/minecraft/client/renderer/RenderType;getArmorEntityGlint()Lnet/minecraft/client/renderer/RenderType;": "Lnet/minecraft/client/renderer/RenderType;func_239271_l_()Lnet/minecraft/client/renderer/RenderType;", "Lnet/minecraft/client/renderer/RenderType;getEntityGlint()Lnet/minecraft/client/renderer/RenderType;": "Lnet/minecraft/client/renderer/RenderType;func_228655_k_()Lnet/minecraft/client/renderer/RenderType;", "getEntityGlintVertexBuilder": "Lnet/minecraft/client/renderer/ItemRenderer;func_239391_c_(Lnet/minecraft/client/renderer/IRenderTypeBuffer;Lnet/minecraft/client/renderer/RenderType;ZZ)Lcom/mojang/blaze3d/vertex/IVertexBuilder;" }, "sainthozier/thelostarcanum/mixin/RenderTypeBuffersMixin": { "put": "Lnet/minecraft/client/renderer/RenderTypeBuffers;func_228486_a_(Lit/unimi/dsi/fastutil/objects/Object2ObjectLinkedOpenHashMap;Lnet/minecraft/client/renderer/RenderType;)V" } } } }
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.