Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 10/12/18 in all areas

  1. 1 point
  2. is it @forge-bot? I just talked to it and if it is, you can't add mappings. @MrChoke You can add mappings by going to https://webchat.esper.net/ and typing in /join #mcpbot and then typing in !help
    1 point
  3. I'm trying to make a mob (extends EntityMob) and am basically copying tasks from existing mobs, but EntityAINearestAttackableTarget is giving me warnings that it's generic. This is the default code, in any given mob class with a big yellow underline in Eclipse: this.targetTasks.addTask(1, new EntityAINearestAttackableTarget(this, EntityPlayer.class, true)); this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityVillager.class, false)); this.targetTasks.addTask(3, new EntityAINearestAttackableTarget(this, EntityIronGolem.class, true)); Yet if I apply the suggested fix, it doesn't show a warning: this.targetTasks.addTask(1, new EntityAINearestAttackableTarget<EntityPlayer>(this, EntityPlayer.class, true)); this.targetTasks.addTask(2, new EntityAINearestAttackableTarget<EntityVillager>(this, EntityVillager.class, false)); this.targetTasks.addTask(3, new EntityAINearestAttackableTarget<EntityIronGolem>(this, EntityIronGolem.class, true)); My question is, why? Why does it give me a warning if it's the Vanilla code that obviously works? Is it going to be problematic if I ignore the warning? Or if I fix the warning?
    1 point
  4. You only want to do it this way if you don't want other modded logs to work with the recipe. If you want them to work then you must use the ore dictionary method.
    1 point
  5. He did answer your question and even gave you the code. Regarding "documentation" in general, you really just need to look at the source code and see how it works for similar vanilla behavior. Some big topics like blockstates have official documentation, and many people like myself try to write tutorials, but honestly we really all just figure it out by reading the source directly.
    1 point
  6. Do you mean the file is closing when you try to change it or the server instantly closes when you've made the change?
    0 points
  7. I'm always suspicious when people say no logs were generated, logging is one of the first things that gets set up. If you haven't done so already, add pause to a new line at the end of your .bat, this will keep the window from closing immediately when the server stops, allowing you to see error messages that may have printed to the console.
    0 points
  8. What do you mean by "can't"? Please provide your debug.log, it has more information than latest.log
    0 points
×
×
  • Create New...

Important Information

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