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

Frontear

Members
  • Posts

    54
  • Joined

  • Last visited

  • Days Won

    1

Frontear last won the day on March 2 2019

Frontear had the most liked content!

Converted

  • Gender
    Male
  • URL
    http://github.com/Frontear

Recent Profile Visitors

1651 profile views

Frontear's Achievements

Stone Miner

Stone Miner (3/8)

4

Reputation

  1. I need access to Instrumentation for a specific library I am planning to use, however I have no idea how I'd let forge know that this is what I want. I can't go into user profiles and modify the jvm arguments to have a -javaagent flag, so what exactly can I do?
  2. This isn't even the right website for this kind of question, yet people still tried to help you. Multiple people have made it clear that this is likely an issue with your DNS. You can restart your router, restart your pc, flush your dns, change it to another, more well-known provider, or check to make sure it isn't blocked via some firewall. Instead of being so rude towards the people who have tried to help, maybe you should try solving the problem using the information given.
  3. I just restarted my IDE and everything decided to work fine. I just had to fix an issue with `MISSING REPLACEMENT DATA FOR RUN_DIR`, which was fixed by adding `runDir = "run"` into the `minecraft` area.
  4. Normally when you start minecraft (usually through the generated run configurations), your mcmod.info will contain stuff like `${version}` and `${mcversion}`. While I am aware that these will be fixed when actually building the code (processResources is called), I want to be able to run them in addition to my `replaceIn` and `replace` snippets before being able to test. Obviously the generated configurations will not have this happen. I considered runClient, and for a while it actually used to work, but now it no longer works, and I am at a loss. Additionally, while `processResources` works perfectly fine as I'm building, the `replace` stuff does not. How can I resolve these issues? build.gradle buildscript { repositories { jcenter() maven { name = "forge" url = "https://files.minecraftforge.net/maven" } } dependencies { classpath "net.minecraftforge.gradle:ForgeGradle:2.1-SNAPSHOT" } } apply plugin: "net.minecraftforge.gradle.forge" version = "0.1" group = "org.frontear" archivesBaseName = "MyMod" targetCompatibility = sourceCompatibility = JavaVersion.VERSION_1_8 minecraft { version = "1.8.9-11.15.1.2318-1.8.9" mappings = "stable_22" replaceIn 'MyMod.java' replace '${modid}': archivesBaseName.toLowerCase(), '${version}': project.version } repositories { mavenCentral() } processResources { // this will ensure that this task is redone when the values change. inputs.property "modid", archivesBaseName.toLowerCase() inputs.property "name", archivesBaseName inputs.property "version", project.version inputs.property "mcversion", project.minecraft.version // replace stuff in mcmod.info, nothing else from(sourceSets.main.resources.srcDirs) { include "mcmod.info" // replace modid, name, version and mcversion expand "modid": archivesBaseName.toLowerCase(), "name": archivesBaseName, "version": project.version, "mcversion": project.minecraft.version } // copy everything else, thats not the mcmod.info from(sourceSets.main.resources.srcDirs) { exclude "mcmod.info" } } MyMod.java package org.frontear.mymod; import net.minecraft.init.Blocks; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.event.FMLInitializationEvent; @Mod(modid = "${modid}", version = "${version}") public class MyMod { @Mod.EventHandler public void init(FMLInitializationEvent event) { // some example code System.out.println("DIRT BLOCK >> " + Blocks.dirt.getUnlocalizedName()); } } mcmod.info [ { "modid": "${modid}", "name": "${name}", "description": "Blah blah blah, something something something", "version": "${version}", "mcversion": "${mcversion}", "url": "", "updateUrl": "", "authorList": [ "Frontear" ], "credits": "", "logoFile": "", "screenshots": [], "dependencies": [] } ]
  5. @SubscribeEvent public void onTick(TickEvent.PlayerTickEvent event) { if (event.phase != TickEvent.Phase.START) return; // see EntityPlayer.onUpdate if (event.player instanceof EntityPlayerSP) { final EntityPlayerSP player = (EntityPlayerSP) event.player; if (player.world.getCollidingBoundingBoxes(player, player.getEntityBoundingBox().addCoord(player.motionX, player.motionY, player.motionZ)).isEmpty()) { player.jump(); } } } I wanted to be able to extend the functionality of AutoJump, by adding a feature which would make the player jump if they reached the end of a block. I was given this code by someone on discord, and while I've got a vague understanding of how it works, it does not fully operate right. Pretty consistently, it will burn in lava if I try to use it when there is a lava below the player and when it attempts to jump, which is definitely not wanted. How can I implement something like that?
  6. https://en.wikipedia.org/wiki/Byte_order_mark
  7. I've solved the issue. For future reference, the safest thing to do (to avoid any formatting problems), is to simply create multiple TextComponentStrings, then appendSibling them to your main TextComponentString: TextComponentString parent = new TextComponentString(""); parent.appendSibling(new TextComponentString("blah blah").setChatStyle(new ChatStyle().setColor(TextFormatting.BLUE))); parent.appendSibling(new TextComponentString("foo bar").setChatStyle(new ChatStyle().setColor(TextFormatting.RED))); mc.ingameGUI.getChatGUI().printChatMessage(parent); Will show up in chat as: blah blah foo bar
  8. I want to create a chat message with a specific format: The problem is, I see no way to do this in a TextComponentString by default. I can only add one message, and only set it's color at one place. Is it possible to do what I want to do above?
  9. I can't seem to figure this out. Originally I thought EntityPlayerSP was simply your client-sided player, while EntityPlayerMP was just any other player connected to your server, but I don't think this is right, considering there is also an EntityOtherPlayerMP, which indicates that it would be the other players on your server. What are they exactly? When are they applied?
  10. Perhaps it's my code's fault, because LivingHurtEvent does not fire while on a multiplayer world, even for myself. While I can understand that LivingHurtEvent on EntityLIvingBase wouldn't normally fire because I don't have direct access to all the players on the server, I was hoping the event in EntityPlayer would fire for myself. Is this even possible for me to do? Relevant code: @SubscribeEvent public void onLivingHurt(LivingHurtEvent event) { if (event.getEntity().getName().equals(mc.player.getName()) { // the player has been hurt doSomething(); } } EDIT: I've found a method which works properly, It is LivingAttackEvent
  11. I've been trying to get find an event which fires when the player get's hurt, that is, our current player. I've tried LivingHurtEvent, but it doesn't seem to even fire on a multiplayer world. What event can I use for this?
  12. I think it's possibly related to Optifine. What version are you using? Can you reinstall the latest version of optifine?
  13. The update for 1.13 is being worked on, but there is no release date for it yet. (12/20/18 Update): The goal is to have a working build available by New Years. Updates to a new version of Minecraft take a lot of work, so please be patient. (12/20/18 Update): In addition, the Dev team has taken this opportunity to update and retool right down to FML. This means making things more future-proof, partly by cleaning out/replacing a TON of legacy code that has been there since the early days and is showing its age. Please refrain from making "is it done yet?" threads. The update will be ready when it is ready. (12/20/18 Update): For those of you who insist on asking for an ETA, the most accurate estimate can be made by looking at what patches still have to be ported. Here is the most recent official statement. In the meantime, DO NOT fall for sites offering Forge for 1.13, these sites will NOT magically provide you with software that has not been released yet, they will more likely install malware on your computer.
  14. Do you want the proper, renamed fields? Set up a decompWorkspace then. Currently, you're using the searge names, which are something like field_*****, param_*****, or method_*****.
×
×
  • Create New...

Important Information

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