Jump to content

JacobsDevelop

Members
  • Posts

    17
  • Joined

  • Last visited

Everything posted by JacobsDevelop

  1. Ok... I don't need help now. I figured this myself.
  2. I mean I want this model to be rendered always like in capes. If your UUID matches UUID in list you automatically have backpack rendered on your back.
  3. I'm continuing (kinda) my cape topic. After discussion I've decided to make backpack instead of capes, I have backpack model that was created in blockbench and it's exported as .java class. I have two problems: 1. How to implement this model. 2. How to make void or function to render this model on player's back (also I want to make it render on players specified by UUID) There's raw .java backpack model file (it's not in in my files yet): // Made with Blockbench 3.8.3 // Exported for Minecraft version 1.15 - 1.16 // Paste this class into your mod and generate all required imports public class backpack_dev extends EntityModel<Entity> { private final ModelRenderer bb_main; public backpack_dev() { textureWidth = 32; textureHeight = 32; bb_main = new ModelRenderer(this); bb_main.setRotationPoint(0.0F, 24.0F, 0.0F); bb_main.setTextureOffset(0, 0).addBox(-4.0F, -10.0F, -2.0F, 8.0F, 10.0F, 3.0F, 0.0F, false); bb_main.setTextureOffset(0, 13).addBox(-3.0F, -9.0F, 1.0F, 6.0F, 9.0F, 1.0F, 0.0F, false); bb_main.setTextureOffset(0, 23).addBox(-2.0F, -5.0F, 2.0F, 4.0F, 5.0F, 1.0F, 0.0F, false); bb_main.setTextureOffset(0, 30).addBox(-1.0F, -6.0F, 2.0F, 2.0F, 1.0F, 1.0F, 0.0F, false); } @Override public void setRotationAngles(Entity entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch){ //previously the render function, render code was moved to a method below } @Override public void render(MatrixStack matrixStack, IVertexBuilder buffer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha){ bb_main.render(matrixStack, buffer, packedLight, packedOverlay); } public void setRotationAngle(ModelRenderer modelRenderer, float x, float y, float z) { modelRenderer.rotateAngleX = x; modelRenderer.rotateAngleY = y; modelRenderer.rotateAngleZ = z; } } Also I don't know why, but I get error when I paste this code into class. Any help would be appreciated.
  4. I tried updating and mod successfully ran but, ores aren't generating. Can somebody help me. As in my main topic, problem is with .withFeature, .withConfiguration and .configure. Don't know what is replacement in 1.16.5. Code below is reverted to it's original state (from 1.16.4) Here's whole Intellij window (code with errors, etc.)
  5. So... I upgraded project to 1.16.5 everything went well, I have changed those necessary things like changing .group() to .tab(), etc. But I have problem with this one: private static void generateOre(BiomeGenerationSettingsBuilder settings, RuleTest fillerType, BlockState state, int veinSize, int minHeight, int maxHeight, int amount) { settings.withFeature(GenerationStage.Decoration.UNDERGROUND_ORES, Feature.ORE.withConfiguration(new OreFeatureConfig(fillerType, state, veinSize)) .withPlacement(Placement.RANGE.configure(new TopSolidRangeConfig(minHeight, 0, maxHeight))) .square().func_242731_b(amount)); } This is whole void, but problems are with .withFeature, .withConfiguration and .configure, and I don't know with what I need to replace it or what.
  6. Will this be correct? public void PlayerData(Entity entity) { UUID uuid = entity.getUUID(); }
  7. Ok... So I need to upgrade project to 1.16.5 and then what I'm supposed to do with Entity#getUniqueID?
  8. Hi, It's me again. So my question is... How to get player UUID. I have special "dev backpacks", but I want to make it only appear on player that I will select by UUID. Is it possible to make? Forge - 1.16.4-forge-35.1.4
  9. I made model and exported this as .java class is it correct to do?
  10. I started to think and somehow i got idea of backpacks. Dunno why, but i think it's possible
  11. I can make hats? Are there any tutorial how to make hats? I mean they will be automatically appear on player with specific UUID, etc.
  12. Oh... Well I maybe i will try to make something, but I wanted to make capes since I have some concepts for capes, but I don't know how to implement them. Also is there anything else you can make in mod to do something like that?
  13. I want to make something like "dev's, donators" capes for my mod. Can someone tell me if it's possible? For example selecting players by UUID, custom textures, etc. As for forge I'm using 1.16.4-forge-35.1.4.
×
×
  • Create New...

Important Information

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