Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/22/20 in all areas

  1. Compiled mods are expecting to run against obfuscated code, but the dev environment is deobfuscated. This used to still work in older versions of Forge, but the feature seemingly got lost with the 1.14+ rewrite. If the mod you want to use is open source, you might be able to use JitPack as a workaround.
    1 point
  2. Howdy Items and Blocks use the same models (just lists of quads really) so the same code should work for both. You merge the models just by combining the list of quads i.e. this part @Override public List<BakedQuad> getQuads(@Nullable BlockState state, @Nullable Direction side, Random rand) { // our chess pieces are only drawn when side is NULL. if (side != null) { return parentModel.getQuads(state, side, rand); } List<BakedQuad> combinedQuadsList = new ArrayList(parentModel.getQuads(state, side, rand)); combinedQuadsList.addAll(getChessPiecesQuads(numberOfChessPieces)); return combinedQuadsList; } -TGG
    1 point
  3. howdy What is happening is that your translucent quads are drawing to the depth buffer, so anything that is drawn afterwards is being hidden behind the translucent quads. Render order is important for translucent quads (alpha blending). You need to sort them so that the ones which are furthest away are drawn first. There is no OpenGL setting that will help you unfortunately. You can turn off translucent quads writing to the depth buffer but this has other side-effects. (Quads which are behind the translucent quads but are rendered afterwards will appear to be in front of the translucent quad). For blocks in 1.15.2, vanilla does the sorting for you, but your TileEntityRenderer needs to do it manually. You should also consider using render buffers instead the Tessellator. Are you using 1.15.2? https://gist.github.com/williewillus/30d7e3f775fe93c503bddf054ef3f93e -TGG
    1 point
  4. After doing a quick look, it has to do with how attributes are stored on itemsstacks. By default, itemstacks have no attributes stored on them. What attributes are determined on an item is based on a method called Item#getAttributeModifiers. This is what ItemStack#getAttributeModifiers defaults to if there are no attributes added on as nbt data. What you are doing adds on an attribute as an nbt tag, causing the program to not default back to Item#getAttributeModifiers but rather execute only what is currently on the item, your only added attribute. For a semi-complex problem, there is a simple solution since this is an item. Just simply add the modifier by overriding Item#getAttributeModifiers in your class and add to the previous multimap by storing the super call of the method.
    1 point
  5. I have a problem. I can't upload any modification to my minecraft launcher because the information that I wrote in the topic name pops up. I've been tired of it for about three days, I was looking for information everywhere on Google, but I didn't find it. My launcher looks like this: Po wejściu w minecrafta wyskakuje mi taka informacja: I am asking for help, I really care about it!
    1 point
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.