Skip to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Draco18s

Members
  • Joined

  • Last visited

Everything posted by Draco18s

  1. Can: almost certainly yes, but using Reflection/ASM Should: absolutely fucking not, hiding stack traces (and other info lines) that Forge produces is not kosher
  2. Should be able to. I did this in 1.7.10 and as long as you override the proper methods you can read the values from NBT and figure it out from there. getMaxDamage is how much durability the item has (based on material) getDigSpeed is how fast the material affects block breaking getIsRepairable handles repair in the anvil (e.g. if you want to allow iron ingots to repair iron items) getAttributeModifiers to modify item damage based on material addInformation and/or getItemStackDisplayName if you want to have a tooltip saying what the item's material is Note: method signatures have likely changed since 1.7.10, but you can see how I handled this stuff in my Artifacts mod: https://github.com/Draco18s/Artifacts/blob/master/main/java/com/draco18s/artifacts/item/ItemArtifact.java
  3. Have you... - Registered your block? - Registered your item? - Registered renderers?
  4. These classes aren't complete enough to function. Your door classes don't have any getState method overrides, which means that it will use the vanilla door variants (not what you want).
  5. Draco18s replied to Mop's topic in Modder Support
    Engish the strong not here with one this. (I have no idea what you said)
  6. "Test 1 Test 2 Disabled" by the way is just Forge supplying test options to the Mod Options GUI. None of your mods are actually using that GUI otherwise their options would appear (very very few mods actually use it, as far as I am aware).
  7. Something something something NullPointerException something PlayerDataMessage line 53
  8. That means you aren't overriding a method (method signature doesn't match anything). You need to go look at the parent class to determine what the new signature is.
  9. The Tessellator* is a wrapper around OpenGL calls, so if you want to know how to use it, you need to know how to use the GL11 library. *Renamed several times, I think it's now VertexBuffer.
  10. entityLiving.curePotionEffects(new ItemStack(Items.MILK)); ?
  11. Does EnderIO use the Forge capability system?
  12. You posted this in the wrong place. However You did not do this.
  13. Well...step 1: You need a way to count time. Step 2: When the time reaches a certain value, consume an item from the player's inventory (if it exists) Step 3: Reset the timer
  14. This makes no sense. I will admit to having BSed that line. I made a guess at the Type to use and was wrong.
  15. Well...a couple things (all unrelated to your problem) first. Why don't you set the unlocalized name to the registry name? Why do you use "\u00A7f" instead of the EnumChatFormat (EnumTextFormat? I forget the current class name) Why do you use Keyboard.isKeyDown(42)? I'm pretty sure the last bool parameter will do what you want. Now, on to your question: You don't have an onUpdate method anywhere to even handle the deduction over time.
  16. Last I poked at EntityHanging, you couldn't meaningfully extend it, because all of the classes involved in figuring out which entity to spawn and how to render it were hardcoded with switch statements / ternary operators.
  17. public static final class Provider implements ICapabilitySerializable<NBTTagCompound> { private EntityPlayer owner; private Capability.IStorage<IUUIDCapability> theCap; //this is new //... @Override public <T> T getCapability(Capability<T> capability, EnumFacing facing) { if(capability == ModCapabilities.UUIDCapability) { return (T) theCap; //this is altered } return null; } } Was that so hard?
  18. I believe it is false when the player tries to edit things outside the world border or during adventure mode.
  19. Go look at the EntityAINearestAttackableTarget class.
  20. You will need to write a custom AI task that does what EntityAINearestAttackableTarget does, except it also includes an "exclude class" parameter and checks against it.
  21. Break* Also, that still doesn't explain what you mean by "animate." Do you want one tab to slide in and another one slide out (tweening), or do you just want to switch which tab is sticking out?
  22. Before 1.9, armor works on the 4% model. 24 points of armor is 96% damage reduction, meaning your 50 damage attack only does 2 actual damage.
  23. Again, that's what armor toughness is for.

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.