MidnightBree
Members-
Posts
8 -
Joined
-
Last visited
Converted
-
Gender
Undisclosed
-
Personal Text
I am new!
MidnightBree's Achievements
Tree Puncher (2/8)
0
Reputation
-
[1.12.1] Modifying damage from custom weapons
MidnightBree replied to MidnightBree's topic in Modder Support
I didn't say I wasn't willing to learn, but I've yet to find a guide that's specific in the stuff I actually want to learn, I guess. Or I have no idea what I'm talking about. But if you've got any resources I could look at, that would be really helpful. -
[1.12.1] Modifying damage from custom weapons
MidnightBree replied to MidnightBree's topic in Modder Support
Any tips on where to do that? I'm not really looking to spend a year+ just to learn something that someone else could easily do or help me with. -
[1.12.1] Modifying damage from custom weapons
MidnightBree replied to MidnightBree's topic in Modder Support
I tried that, but I think I made a mistake with the code somewhere. package orescape.mod.objects.tools; import net.minecraft.item.Item; import net.minecraft.item.ItemSword; public class DragonLong extends ItemSword { public DragonLong(Item.ToolMaterial material) { super(material); @Override this.attackDamage = randomWithRange(1, 20); { float range = Math.abs(max - min) + 1; return (float)(Math.random() * range) + (min <= max ? min : max); } } } -
So, I'd like to set my custom weapons to do a random amount of damage between X and Y. What should I do with the original code in order to make this work? By default, the code only seems to accept a fixed value of damage. public static final ToolMaterial WEAPON_DRAGON = EnumHelper.addToolMaterial("weapon_dragon", 8, -1, 3.0F, 5.0F, 0); (Also, not entirely necessary, but I'm still trying to get into all this coding business, so if you wouldn't mind explaining what your code suggestion does, it would help me a lot.)
-
If I posted this in the wrong section, please inform me. I'm still new to the forum. I run a private server between a few friends and I, and we have a number of mods enabled on our server. However, upon anyone joining the nether, there's a huge spam of messages in the console about not keeping up, and all entities seem to slow-mo or teleport around. It only happens in the nether, and we're exploring chunks that have already been loaded. I'm completely baffled as to why this happens. I've searched all over the internet to find a solution, but most of the posts seem to be about the vanilla game, with most of the help pointing to plugins that will fix the issue. I can't seem to find anything to fix it via Forge. This is the list of mods that I use, if it helps: http://image.prntscr.com/image/aef4238116264d7893ec1edf7cb5366c.png Processor: Intel® Core i5-3320M CPU @ 2.60GHz Video Card: Intel® HD Graphics 4000 RAM: 16 GB Operating System: Microsoft Windows 7 Professional Edition Service Pack 1 (build 7601), 64-bit My server runs 6GB of RAM, and there's only a max of four people on it at a time. We lag in the nether when there's only one of us, too.
-
[1.9] Inquiry About Minecraft Attributes
MidnightBree replied to MidnightBree's topic in Modder Support
Thanks for the quick reply! -
So, I've been looking into different effects with potions and noticed there were specific attribute effects that also exist. http://minecraft.gamepedia.com/Attribute Is it possible to apply a modified version of these effects to the player if using a certain type of armor/weapon? The only info I could find on it was using command blocks to apply the effects.