Jump to content

bignose956

Members
  • Posts

    28
  • Joined

  • Last visited

Everything posted by bignose956

  1. Hello, I am having an issue with gradle deleting a file (output.srg) which is required to build. Interestingly enough, this only happens if the genEclipseRuns task has been executed at some point in the past. genEclipseRuns will run without any issues, but any subsequent gradle tasks will fail. Here's the log: D:\modding-workspace\forge-1.17.1-37.0.82-mdk - Copy>gradlew genEclipseRuns To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/7.1/userguide/gradle_daemon.html#sec:disabling_the_daemon. Daemon will be stopped at the end of the build > Configure project : Java: 16.0.2 JVM: 16.0.2+7(Microsoft) Arch: amd64 WARNING: This project is configured to use the official obfuscation mappings provided by Mojang. These mapping fall under their associated license, you should be fully aware of this license. For the latest license text, refer below, or the reference copy here: https://github.com/MinecraftForge/MCPConfig/blob/master/Mojang.md, You can hide this warning by running the `hideOfficialWarningUntilChanged` task WARNING: (c) 2020 Microsoft Corporation. These mappings are provided "as-is" and you bear the risk of using them. You may copy and use the mappings for development purposes, but you may not redistribute the mappings complete and unmodified. Microsoft makes no warranties, express or implied, with respect to the mappings provided here. Use and modification of this document or the source code (in any form) of Minecraft: Java Edition is governed by the Minecraft End User License Agreement available at https://account.mojang.com/documents/minecraft_eula. Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. See https://docs.gradle.org/7.1/userguide/command_line_interface.html#sec:command_line_warnings BUILD SUCCESSFUL in 13s 8 actionable tasks: 8 executed D:\modding-workspace\forge-1.17.1-37.0.82-mdk - Copy>gradlew build To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/7.1/userguide/gradle_daemon.html#sec:disabling_the_daemon. Daemon will be stopped at the end of the build > Configure project : Java: 16.0.2 JVM: 16.0.2+7(Microsoft) Arch: amd64 WARNING: This project is configured to use the official obfuscation mappings provided by Mojang. These mapping fall under their associated license, you should be fully aware of this license. For the latest license text, refer below, or the reference copy here: https://github.com/MinecraftForge/MCPConfig/blob/master/Mojang.md, You can hide this warning by running the `hideOfficialWarningUntilChanged` task WARNING: (c) 2020 Microsoft Corporation. These mappings are provided "as-is" and you bear the risk of using them. You may copy and use the mappings for development purposes, but you may not redistribute the mappings complete and unmodified. Microsoft makes no warranties, express or implied, with respect to the mappings provided here. Use and modification of this document or the source code (in any form) of Minecraft: Java Edition is governed by the Minecraft End User License Agreement available at https://account.mojang.com/documents/minecraft_eula. > Task :createMcpToSrg FAILED FAILURE: Build failed with an exception. * What went wrong: A problem was found with the configuration of task ':createMcpToSrg' (type 'GenerateSRG'). - In plugin 'net.minecraftforge.gradle' type 'net.minecraftforge.gradle.mcp.tasks.GenerateSRG' property 'srg' specifies file 'D:\modding-workspace\forge-1.17.1-37.0.82-mdk - Copy\build\extractSrg\output.srg' which doesn't exist. Reason: An input file was expected to be present but it doesn't exist. Possible solutions: 1. Make sure the file exists before the task is called. 2. Make sure that the task which produces the file is declared as an input. Please refer to https://docs.gradle.org/7.1/userguide/validation_problems.html#input_file_does_not_exist for more details about this problem. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. See https://docs.gradle.org/7.1/userguide/command_line_interface.html#sec:command_line_warnings BUILD FAILED in 11s 6 actionable tasks: 5 executed, 1 up-to-date D:\modding-workspace\forge-1.17.1-37.0.82-mdk - Copy> I tried replacing the missing files then running "gradle build" again, but it just deletes output.srg immediately before running ":createMcpToSrg". If I run gradle build without first running genEclipseRuns, then there are no issues: D:\modding-workspace\forge-1.17.1-37.0.82-mdk - Copy2>gradlew build To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/7.1/userguide/gradle_daemon.html#sec:disabling_the_daemon. Daemon will be stopped at the end of the build > Configure project : Java: 16.0.2 JVM: 16.0.2+7(Microsoft) Arch: amd64 WARNING: This project is configured to use the official obfuscation mappings provided by Mojang. These mapping fall under their associated license, you should be fully aware of this license. For the latest license text, refer below, or the reference copy here: https://github.com/MinecraftForge/MCPConfig/blob/master/Mojang.md, You can hide this warning by running the `hideOfficialWarningUntilChanged` task WARNING: (c) 2020 Microsoft Corporation. These mappings are provided "as-is" and you bear the risk of using them. You may copy and use the mappings for development purposes, but you may not redistribute the mappings complete and unmodified. Microsoft makes no warranties, express or implied, with respect to the mappings provided here. Use and modification of this document or the source code (in any form) of Minecraft: Java Edition is governed by the Minecraft End User License Agreement available at https://account.mojang.com/documents/minecraft_eula. Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. See https://docs.gradle.org/7.1/userguide/command_line_interface.html#sec:command_line_warnings BUILD SUCCESSFUL in 15s 7 actionable tasks: 7 executed D:\modding-workspace\forge-1.17.1-37.0.82-mdk - Copy-2> Other info: +-------------------+---------+ | Minecraft Version | 1.17.1 | +-------------------+---------+ | Forge Version | 37.0.82 | +-------------------+---------+
  2. How will I tell forge which blockstate property controls the textures, and which texture to use depending on that property's value?
  3. I have a block whose texture is to be determined by the state of surrounding blocks. I want to be able to switch between different textures when the neighbor blocks change. My only problem is that I cannot find anyway to change the texture of the block at runtime. I only want to the texture to change for individual blocks. Is this possible?
  4. I realized that the rendering methods have changed for 1.8, but I cannot figure out how to use them. I have successfully rendered throwable entities first by including a factory in the render class, then registering it in the main mod class using this method: RenderingRegistry.registerEntityRenderingHandler(EntityGrenade.class, RenderGrenade.FACTORY); But I cannot render regular entities. I tried the same methods but with no success, they render as invisible entities. My render class for the regular entity is here: https://pastebin.com/HtZBA2L1 and the register method I used is as follows: RenderingRegistry.registerEntityRenderingHandler(EntityNuke.class, RenderNuke.FACTORY); So what exactly is the trick to rendering in these newer versions? (Please do not tell me to "upgrade" to later versions)
  5. I wouldn't use the term "outdated", because a lot of negative features were added post 1.8. Minecraft used to be a noob friendly sandbox game, and was transformed into a complicated RPG with too many options. I specifically hate this because it is forcing players like myself to update, when indeed we dislike the "new content". I don't like any of the combat 'improvements', the elytra thing is nothing like Minecraft (especially if you're from the 1.3 era). I believe that the updates should have been kept simple, and none should have changed the game fundamentals. If players want this, they can always build or download a mod. But now we are basically being forced to use mods we are not interested in. I want my entity to be the same as a snowball as in its render is the same as it's item form, and it is "2D" from all angles. I tried this: public void doRender(EntityRock entity, double x, double y, double z, float entityYaw, float partialTicks) { GlStateManager.pushMatrix(); GlStateManager.translate((float)x, (float)y, (float)z); GlStateManager.enableRescaleNormal(); GlStateManager.scale(0.5F, 0.5F, 0.5F); GlStateManager.rotate(-this.renderManager.playerViewY, 0.0F, 1.0F, 0.0F); GlStateManager.rotate(this.renderManager.playerViewX, 1.0F, 0.0F, 0.0F); this.bindTexture(getEntityTexture(entity)); this.theRenderItem.renderItem(this.getItemStack(entity), ItemCameraTransforms.TransformType.GROUND); GlStateManager.disableRescaleNormal(); GlStateManager.popMatrix(); super.doRender(entity, x, y, z, entityYaw, partialTicks); } but I got a nullpointer at this.theRenderItem.renderItem(this.getItemStack(entity), ItemCameraTransforms.TransformType.GROUND);
  6. Ok, I got this far: public class RenderRock extends Render<EntityRock>{ public static Factory FACTORY = new Factory(); protected RenderRock(RenderManager renderManager) { super(renderManager); } @Override protected ResourceLocation getEntityTexture(EntityRock entity) { return new ResourceLocation(Ref.MOD_ID, "textures/entities/projectile/Rock.png"); } public static class Factory implements IRenderFactory<EntityRock>{ @Override public Render<? super EntityRock> createRenderFor(RenderManager manager) { return new RenderRock(manager); } } } and the preInit: @EventHandler public void preInit(FMLPreInitializationEvent event) { MinecraftForge.EVENT_BUS.register(handler); theseBlocks.Init(); theseBlocks.register(); theseItems.Init(); theseItems.register(); RenderingRegistry.registerEntityRenderingHandler(EntityRock.class, RenderRock.FACTORY); } But the textures are still not rendering... What am I doing wrong? All my texture images are 16x16 or a multiple. (They render fine as items...) Also, I really despise 1.9 and higher, and could't image "updating" to them, >_< but thank you for the advice =)
  7. Uhhh, you might wan't double check that. 1.8.9 is still on forge (http://files.minecraftforge.net/maven/net/minecraftforge/forge/index_1.8.9.html), and this is the official Forge Forums. Furthermore, I've been receiving help with 1.8.9 this whole week, and you are the only person that has made an unsupported claim about it.
  8. I have a throwable entity that works great and I am satisfied with the onImpact and onUpdate methods, but It still lacks a render. In it's item form it renders fine, but I cannot figure out how to render its entity state. I looked at the RenderSnowball class, but I cannot understand the constructor, which requires three different objects (RenderManager, Item, RenderItem), but got stuck when I came to the constructor for RenderItem and RenderManager because they both require a TextureManager object (which I do not know how to construct). The problem with the TextureManager is that it requires a IResourceManager object in its constructor, and IResourceManagers are interfaces (I'm inexperienced with interfaces). Can anyone explain to me how to render an EntityThrowable or provide me with an accurate 1.8.9 tutorial?
  9. Well, I specifically want to see the API that tells the game which of the 32 frames to render.
  10. I got it List<EntityMob> list = worldIn.getEntitiesWithinAABB(EntityMob.class, new AxisAlignedBB((float) (xCoord + 40), (float) (yCoord + 40), (float) (zCoord + 40), (float) (xCoord - 40), (float) (yCoord - 4), (float) (zCoord - 40))); if(!list.isEmpty()){ EntityMob target = list.get(0); EntityGrenade entitysnowball = new EntityGrenade(worldIn, xCoord, yCoord, zCoord); double d0 = target.posY + (double)target.getEyeHeight() - 1.100000023841858D; double d1 = target.posX - pos.getX(); double d2 = d0 - entitysnowball.posY; double d3 = target.posZ - pos.getZ(); float f = MathHelper.sqrt_double(d1 * d1 + d3 * d3) * 0.2F; entitysnowball.setThrowableHeading(d1, d2 + (double)f, d3, 4, 0); worldIn.spawnEntityInWorld(entitysnowball); }
  11. Does anyone know where the source code for compasses is located? I can't find it anywhere, and already checked: net.minecraft.item net.minecraft.entity.item net.minecraft.entity.player net.minecraft.world net.minecraft.pathfinding net.minecraft.inventory and I can't go on like this!
  12. Hello, Today I seek help in making a block that launches ThrowableEntitys at hostile mobs. It is a little like a snowman, except it is a block and its position is constant. The method i am using is as follows: setThrowableHeading() The problem is that it continues to lock onto the possession of the first mob it encounters, and will throw only at that position, even after the mob is dead. The first thing that would come to one's mind when reading my code sample is that I only reference the first index of the list list.get(0), but this is not causing the "locked aim" because I use list.clear() after spawning the entity, and when the mob is dead, the first index of the list will obtain a new value. [Forge 1.8.9]
  13. Hey everyone!I'm looking for people who are experienced with or need help with forge, bukkit, or java to join my discord server. You don't have to meet those requirements, it is just preferred; if you are a minecraft player, that works too! If you are interested in joining, please private message me click the following link: https://discord.gg/d4htQ8d Thanks!
  14. My code has that, but still doesn't load the block states. Here is my github, you could make a pull request if you find the error https://github.com/bignose956/bignose956
  15. I do need a two output, and it is crucial to my mod. So even if it is difficult, I need to find a way to get is done.
  16. I am working on a mod, with nw blocks and items; but wehn I loaded it in minecraft to see if is working so far, the texture for the creative tab, new item, and new block did not load, nor did the en_US.lang file. I triple checked the coding and file names, and everything seemed fine; but it still would not load. Here is a github to the files so you can further help me -----> ?
  17. Yeah I tried that but got a bunch of errors in my face. I'm also not sure how to edit the code if I can get it to work.
  18. I am working on a mod, with nw blocks and items; but wehn I loaded it in minecraft to see if is working so far, the texture for the creative tab, new item, and new block did not load, nor did the en_US.lang file. I triple checked the coding and file names, and everything seemed fine; but it still would not load. Here is a github to the files so you can further help me ----->?
×
×
  • Create New...

Important Information

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