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

bignose956

Members
  • Posts

    28
  • Joined

  • Last visited

Converted

  • Personal Text
    I am new!

Recent Profile Visitors

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

bignose956's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  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); }
×
×
  • Create New...

Important Information

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