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. And only on servers not in offline mode. (Development dedicated server defaults to offline).
  2. This is what I get for posting from my tablet from a friend's house while playing Pathfinder. \o/
  3. Same with your items.
  4. Long story short, take this section: while(this.energyContained > 0 && RedstoneHelper.isPoweredByRedstone(this.worldObj, this.getPos())){ //this Energy.tryMoveEnergy(this, (EntityPlayer) entities.get(i), 1); try { //this TimeUnit.MILLISECONDS.sleep(1); //this } catch(InterruptedException e){} //this } Remove both the sleep and the loop. The "onUpdate" is already a loop and already causes a delay. That's what "onUpdate" does, it runs once-every-timeunit.
  5. TileEntityAnvil in net.minecraft.tileentity
  6. Then something doesn't match. Check those file extensions. PNG or png?
  7. Note: Brewing recipes are not for the faint of heart. Anvil recipes on the other hand are stupid easy because the output is the (first) input and its class defines the second input.
  8. public void registerIcons(IIconRegister reg){ this.itemIcon = reg.registerIcon("BetterArmourAndTools:modIngot"); } "BetterArmourAndTools" is NOT ALL LOWER CASE, like your folder is. Ditto the item name ("modIngot")
  9. Spoilers, much?
  10. Did you spawn it client side or server side?
  11. You could also cache the result (which item slot and what item). If that item slot has the item, no need for an OreDict lookup. If not, check the rest of the inventory for that item. If that fails (or the cache was null), you OreDict check the whole inventory.
  12. What on earth are you needing to do that for?
  13. Note: Getting the light value for the current block's location and the block is opaque will return 0 because the block is opaque. You will need to get the light levels for the six surrounding blocks instead.
  14. Null pointer exception on line 1.
  15. An array is a simple enough object that you can iterate over to access each element with a unique index and strings are savable. So yes.
  16. I'll note that you might be able to get vanilla to render an item by creating an EntityItem and telling the rederer to render it. (No need to spawn it in the world). It'll have more overhead than some other solutions, but it's a straightforward way to get the existing systems to do what you want as long as you can supply the necessary object. It's how I did it for a display case like block in 1.7.10 and I'd wager that it'd still work in 1.8, due to the ease of creating an EntityItem and the fact that such entities need to be independently rendered (like all entities).
  17. Pretty sure every mob defines its own attack. Why don't you take a look?
  18. P.sure you need to do something like extend EntityMob and give it something to do ( tasks ).
  19. First attempt: You could just cancel the event (prevents the pickup) and kill ( setDead ) the entity. Second attempt: That is not how you compare item stacks. And also what I said about the first attempt.
  20. Entities can be constructed and never spawned. But generally, yes.
  21. EntityConstrcuting is fired during the Entity's constructor. EntityJoinWorld is fired when the Entity....joins the world.
  22. The answer to your question is "yes." You just have to be aware that you're on the client side, not the server side. If the data is on the server, you'll need to transmit it with packets.
  23. NBT files are not secure, by any means.
  24. Yes, the question is: Why?

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.