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

NullDev

Members
  • Posts

    64
  • Joined

  • Last visited

Recent Profile Visitors

1026 profile views

NullDev's Achievements

Stone Miner

Stone Miner (3/8)

1

Reputation

  1. Exactly what is in my post at the top: mappings channel: 'snapshot', version: '20200514-1.16'
  2. I cannot figure out what to put as the version in the mappings channel: 'snapshot', version: '20200514-1.16' line in order to update the mappings to 1.17.1 because I tried putting mappings channel: 'official', version: '1.17' and mappings channel: 'official', version: '1.17.1' and it just broke everything Update: I tried updating the dependency to minecraft 'net.minecraftforge:forge:1.17.1-37.0.39' and I get an error: Could not load MCP config, Unknown Spec: 2 File: C:\Users\burnh\.gradle\caches\forge_gradle\maven_downloader\de\oceanlabs\mcp\mcp_config\1.17.1-20210706.113038\mcp_config-1.17.1-20210706.113038.zip
  3. I am trying to make a dimension similar to The End, with all the floating islands, just a different block but I cannot find any SurfaceBuilder classes for The End to reference, so how do I go about this? I cannot find anything online for doing it in 1.17
  4. Having the mod download it's resource pack is the only way I have found to make it so people don't have to re-download the mod every time that a new cosmetic is released. Besides, it only re-downloads it if it doesn't have the latest version.
  5. I am working on a cosmetics mod, and I have it downloading a resource pack and putting it in the resourcepacks folder, and I want it to automatically enable the resource pack, but how do I do that?
  6. I got it working. I just had to add the layer to the PlayerRenderer.
  7. So, I even tried extending the HeadLayer class, and just making it use the item input to the class, but it still isn't working... public class BlockHeadRenderer extends HeadLayer<AbstractClientPlayerEntity, PlayerModel<AbstractClientPlayerEntity>> { final ItemStack itemstack; public BlockHeadRenderer(IEntityRenderer<AbstractClientPlayerEntity, PlayerModel<AbstractClientPlayerEntity>> entityRendererIn, Item item) { super(entityRendererIn); itemstack = new ItemStack(item); } @Override public void render(MatrixStack matrixStackIn, IRenderTypeBuffer bufferIn, int packedLightIn, AbstractClientPlayerEntity entitylivingbaseIn, float limbSwing, float limbSwingAmount, float partialTicks, float ageInTicks, float netHeadYaw, float headPitch) { if (!itemstack.isEmpty()) { Item item = itemstack.getItem(); matrixStackIn.push(); matrixStackIn.scale(1, 1, 1); boolean flag = false; if (entitylivingbaseIn.isChild()) { float f = 2.0F; float f1 = 1.4F; matrixStackIn.translate(0.0D, 0.03125D, 0.0D); matrixStackIn.scale(0.7F, 0.7F, 0.7F); matrixStackIn.translate(0.0D, 1.0D, 0.0D); } this.getEntityModel().getModelHead().translateRotate(matrixStackIn); if (item instanceof BlockItem && ((BlockItem)item).getBlock() instanceof AbstractSkullBlock) { float f3 = 1.1875F; matrixStackIn.scale(1.1875F, -1.1875F, -1.1875F); if (flag) { matrixStackIn.translate(0.0D, 0.0625D, 0.0D); } GameProfile gameprofile = null; if (itemstack.hasTag()) { CompoundNBT compoundnbt = itemstack.getTag(); if (compoundnbt.contains("SkullOwner", 10)) { gameprofile = NBTUtil.readGameProfile(compoundnbt.getCompound("SkullOwner")); } else if (compoundnbt.contains("SkullOwner", 8)) { String s = compoundnbt.getString("SkullOwner"); if (!StringUtils.isBlank(s)) { gameprofile = SkullTileEntity.updateGameProfile(new GameProfile((UUID)null, s)); compoundnbt.put("SkullOwner", NBTUtil.writeGameProfile(new CompoundNBT(), gameprofile)); } } } matrixStackIn.translate(-0.5D, 0.0D, -0.5D); SkullTileEntityRenderer.render((Direction)null, 180.0F, ((AbstractSkullBlock)((BlockItem)item).getBlock()).getSkullType(), gameprofile, limbSwing, matrixStackIn, bufferIn, packedLightIn); } else if (!(item instanceof ArmorItem) || ((ArmorItem)item).getEquipmentSlot() != EquipmentSlotType.HEAD) { float f2 = 0.625F; matrixStackIn.translate(0.0D, -0.25D, 0.0D); matrixStackIn.rotate(Vector3f.YP.rotationDegrees(180.0F)); matrixStackIn.scale(0.625F, -0.625F, -0.625F); if (flag) { matrixStackIn.translate(0.0D, 0.1875D, 0.0D); } Minecraft.getInstance().getFirstPersonRenderer().renderItemSide(entitylivingbaseIn, itemstack, ItemCameraTransforms.TransformType.HEAD, false, matrixStackIn, bufferIn, packedLightIn); } matrixStackIn.pop(); } }
  8. I have a class that is supposed to render a block on the players head. I have tried a ton of things starting with copy the way vanilla does it, but I cannot get it to completely rotate with the player's head. It appears on the player's head, and it rotates part of the way with the head, but not full 360. The class rendering it: package com.aylias.minecraft.mods.minewear.renderer; import com.mojang.blaze3d.matrix.MatrixStack; import net.minecraft.client.Minecraft; import net.minecraft.client.entity.player.AbstractClientPlayerEntity; import net.minecraft.client.renderer.IRenderTypeBuffer; import net.minecraft.client.renderer.entity.IEntityRenderer; import net.minecraft.client.renderer.entity.layers.LayerRenderer; import net.minecraft.client.renderer.entity.model.PlayerModel; import net.minecraft.client.renderer.model.ItemCameraTransforms; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.math.vector.Vector3f; public class BlockHeadRenderer extends LayerRenderer<AbstractClientPlayerEntity, PlayerModel<AbstractClientPlayerEntity>> { final ItemStack renderItem; public BlockHeadRenderer(IEntityRenderer<AbstractClientPlayerEntity, PlayerModel<AbstractClientPlayerEntity>> entityRendererIn, Item renderItem) { super(entityRendererIn); this.renderItem = new ItemStack(renderItem); } @Override public void render(MatrixStack matrixStackIn, IRenderTypeBuffer bufferIn, int packedLightIn, AbstractClientPlayerEntity entitylivingbaseIn, float limbSwing, float limbSwingAmount, float partialTicks, float ageInTicks, float netHeadYaw, float headPitch) { matrixStackIn.push(); matrixStackIn.scale(.8f, .8f, .8f); matrixStackIn.translate(0.0D, 1.9D, 0.0D); //matrixStackIn.rotate(Vector3f.YP.rotationDegrees(180.0F)); matrixStackIn.rotate(Vector3f.YP.rotationDegrees(-entitylivingbaseIn.rotationYaw + entitylivingbaseIn.getRotationYawHead())); matrixStackIn.scale(0.625F, -0.625F, -0.625F); this.getEntityModel().getModelHead().translateRotate(matrixStackIn); Minecraft.getInstance().getFirstPersonRenderer().renderItemSide(entitylivingbaseIn, renderItem, ItemCameraTransforms.TransformType.HEAD, false, matrixStackIn, bufferIn, packedLightIn); matrixStackIn.pop(); } }
  9. I have a client requesting that I change the max stack size of items above 64/127. I was wondering how I would go about making the items stack count with a data type like long, or BigInt.
  10. Yes, there was. I forgot a few attributes, namely Attributes.MOVEMENT_SPEED and Attributes.HORSE_JUMP_STRENGTH. Thank you for you help!
  11. I have this in my EntityRegisterEvents class: @SubscribeEvent public static void registerEntityAttributes(EntityAttributeCreationEvent e) { e.put(HAY_HORSE, AttributeModifierMap.createMutableAttribute().createMutableAttribute(Attributes.MAX_HEALTH, 25) .createMutableAttribute(Attributes.FOLLOW_RANGE, 16.0) .createMutableAttribute(Attributes.ARMOR) .create()); } https://github.com/AyliasTheCoder/BlocksRealsBlockCreatures/blob/master/src/main/java/me/aylias/minecraft/mods/modbase/events/EntityRegisterEvents.java Is something missing from it?
  12. I have done that, and stepped through it, but I cannot figure out how to understand most of what it says. I updated the github w/ the MDK's .gitignore. https://github.com/AyliasTheCoder/BlocksRealsBlockCreatures
  13. I ran it in debug mode in intellij but the console still says nothing but "An unexpected error occurred trying to execute that command"
  14. I created an entity, and when I try to summon it I just get "An unexpected error occurred trying to execute that command" with no stack trace or anything. Why is this happening? My code: https://github.com/AyliasTheCoder/BlocksRealsBlockCreatures The Entity Class Itself: https://github.com/AyliasTheCoder/BlocksRealsBlockCreatures/blob/master/src/main/java/me/aylias/minecraft/mods/modbase/entities/HayHorse.java
  15. I am trying to update my mappings, but the MCPBot Exports is only up to 1.15, so how do I update my mappings? Using the official Mojang mappings is a pain, because everything is named differently so my whole mod breaks. My current build.gradle: buildscript { repositories { maven { url = 'https://files.minecraftforge.net/maven' } jcenter() mavenCentral() } dependencies { classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true } } apply plugin: 'net.minecraftforge.gradle' // Only edit below this line, the above code adds and enables the necessary things for Forge to be setup. apply plugin: 'eclipse' apply plugin: 'maven-publish' version = '1.0.0' group = 'com.yourname.modid' // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = 'br_block_creatures' sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Need this here so eclipse task generates correctly. println('Java: ' + System.getProperty('java.version') + ' JVM: ' + System.getProperty('java.vm.version') + '(' + System.getProperty('java.vendor') + ') Arch: ' + System.getProperty('os.arch')) minecraft { // The mappings can be changed at any time, and must be in the following format. // snapshot_YYYYMMDD Snapshot are built nightly. // stable_# Stables are built at the discretion of the MCP team. // Use non-default mappings at your own risk. they may not always work. // Simply re-run your setup task after changing the mappings to update your workspace. mappings channel: 'official', version: '1.16.5' // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable. // accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg') // Default run configurations. // These can be tweaked, removed, or duplicated as needed. runs { client { workingDirectory project.file('run') // Recommended logging data for a userdev environment property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP' // Recommended logging level for the console property 'forge.logging.console.level', 'debug' mods { examplemod { source sourceSets.main } } } server { workingDirectory project.file('run') // Recommended logging data for a userdev environment property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP' // Recommended logging level for the console property 'forge.logging.console.level', 'debug' mods { examplemod { source sourceSets.main } } } data { workingDirectory project.file('run') // Recommended logging data for a userdev environment property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP' // Recommended logging level for the console property 'forge.logging.console.level', 'debug' args '--mod', 'examplemod', '--all', '--output', file('src/generated/resources/') mods { examplemod { source sourceSets.main } } } } } dependencies { // Specify the version of Minecraft to use, If this is any group other then 'net.minecraft' it is assumed // that the dep is a ForgeGradle 'patcher' dependency. And it's patches will be applied. // The userdev artifact is a special name and will get all sorts of transformations applied to it. minecraft 'net.minecraftforge:forge:1.16.5-36.1.0' // You may put jars on which you depend on in ./libs or you may define them like so.. // compile "some.group:artifact:version:classifier" // compile "some.group:artifact:version" // Real examples // compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env // compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env // The 'provided' configuration is for optional dependencies that exist at compile-time but might not at runtime. // provided 'com.mod-buildcraft:buildcraft:6.0.8:dev' // These dependencies get remapped to your current MCP mappings // deobf 'com.mod-buildcraft:buildcraft:6.0.8:dev' // For more info... // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html // http://www.gradle.org/docs/current/userguide/dependency_management.html } // Example for how to get properties into the manifest for reading by the runtime.. jar { manifest { attributes([ "Specification-Title": "examplemod", "Specification-Vendor": "examplemodsareus", "Specification-Version": "1", // We are version 1 of ourselves "Implementation-Title": project.name, "Implementation-Version": "${version}", "Implementation-Vendor" :"examplemodsareus", "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ") ]) } } // Example configuration to allow publishing using the maven-publish task // This is the preferred method to reobfuscate your jar file jar.finalizedBy('reobfJar') // However if you are in a multi-project build, dev time needs unobfed jar files, so you can delay the obfuscation until publishing by doing //publish.dependsOn('reobfJar') publishing { publications { mavenJava(MavenPublication) { artifact jar } } repositories { maven { url "file:///${project.projectDir}/mcmodsrepo" } } }
×
×
  • Create New...

Important Information

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