Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/12/19 in all areas

  1. Take a look through AbstractSkeletonEntity, and RangedBowAttackGoal. RangedBowAttackGoal has the strafing code (in its tick() implementation). What you'll need to do is remove that goal for the skeleton and replace it with a goal that lacks the strafe code. Fortunately, it looks like that shouldn't be too hard, since the skel's combat code is set up via AbstractSkeletonEntity#setCombatTask(), which gets called when the skel is created (whether via spawn or restoration from NBT), and when its held weapon changes. You should be able to hook entity spawning to call your own code to add your own ranged attack goal. Not sure offhand about hooking equipment changes, though.
    2 points
  2. Probably a problem with this mod
    1 point
  3. If you change the parent it should be fixed. "parent": "item/handheld", You have set the attack value to maximum usage and the default attack speed of a diamond pickaxe is -2.8F i guess. super(Tier, Tier.getMaxUses(), 0, new Properties().group(Group)); protected PickaxeItem(IItemTier tier, int attackDamageIn, float attackSpeedIn, Item.Properties builder){...} I also would recommend you to create a toolmaterial enum which implements IItemTier for custom tool materials.
    1 point
  4. It writes that text to a file as well, I'm asking for the file. Please read my previous message again.
    1 point
  5. Please provide your installer log, it will have the same name as the installer but with .log on the end: Installer: forge-{version}-installer.jar Log: forge-{version}-installer.jar.log Note: If you have Windows Explorer set to hide file extensions(as is the default setting), they will look like this: Installer: forge-{version}-installer Log: forge-{version}-installer.jar
    1 point
  6. Yes, I am coding in 1.14, and I see that they renamed the classes!
    1 point
  7. it just wont let me get forge at all. when i click on it, it comes up with a internet explorer where it shows my downloads
    1 point
  8. Container and GUI creation is very different in 1.14.x compared with 1.12.2. I wrote a post about it here while figuring it out: I hope you're developing in 1.14.x and not the dead-end that is 1.13.x. And the reason you're not finding any GuiXXXX classes in vanilla is that they've all been renamed to xxxScreen (e.g. HopperScreen).
    1 point
  9. I've talked to the developer of OptiFine about doing just this and a coremod is likely not required or it will be a 1 line coremod. From our conversation: I was thinking of making an API and/or PRing a Forge hook for this since there are already mods that do this (not very well IMO) such as the Portal Gun Mod and the TARDIS mod. I'd be happy to work towards this with you.
    1 point
  10. ASM is java code that lets you modify java code while it's running. It's literally dangerous if not done correctly. But in the vast majority of situations you ever find yourself in, ASM is not needed. The order of things to try first goes: Own code (extending, implementing) Events (handle existing hooks) Reflection (access private values) Making a PR to Forge to insert new events (and then doing #2) Not doing anything at all (stop touching it) Starting a new project (I said stop) ASM
    1 point
  11. Are you making mods or just playing?
    0 points
×
×
  • Create New...

Important Information

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