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. Your file isn't saved in UTF-8 format.
  2. These are not the same thing. 2.5-10 is 0.0001048576 I think you meant 2.5 * 10-10 Also, you probably meant -7, not -10.
  3. Emphasis on "You are expected to have basic knowledge of Java before posting here."
  4. I'm not sure then. My own TE-valued-states work just fine.
  5. Exception loading model for variant variety:beach_turtle_shell#normal for blockstate "variety:beach_turtle_shell" Caused by: com.google.gson.JsonParseException: 'from' specifier exceeds the allowed boundaries: Vector3f[2.0, -24.0, 1.0]
  6. Did I tell you to wrap it in an if(worldObj.isRemote) check?
  7. No. getState just does this: private IBlockState getState() { return worldObj.getBlockState(pos); } I did it as sort of a replacement for 1.7's getMetadata() method. You don't really need it as long as you in-line its functionality.
  8. You need to change your container and guicontainer as well. Instead of taking an IInventory, take in your TE. Then for slots, instead of new Slot you want new SlotItemHandler . e.g. https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/ores/inventory/ContainerSifter.java (SlotDust is a custom slot class that extends SlotItemHandler)
  9. Do you have an "inventory" variant in your blockstate file?
  10. No, it's easy. When the client connects to the server, the server side of your code sends a packet to that client. If the server side isn't installed guess what.
  11. You shouldn't be using the ModelMesher anyway, that method has been outdated for a while. Make sure you're calling ModelLoader.setCustomModelResourceLocation during the ModelRegistryEvent (preferred 1.11 way, although I think during PreInit still works).
  12. I don't know why you're calling requiresUpdates(). It doesn't do anything: public boolean requiresUpdates() { return true; } You need to call these, from your TE, so that the TE data is synced back to the client and the block is re-rendered: worldObj.markBlockRangeForRenderUpdate(pos, pos); worldObj.notifyBlockUpdate(pos, getState(), getState(), 3); worldObj.scheduleBlockUpdate(pos,this.getBlockType(),0,0); markDirty();
  13. That if statement will detect if that side is properly constructed. You'll need a boolean and set the boolean to false if a side fails. Or you can use a counter to count successes and check if successes == 4.
  14. Loop over the EnumFacing horizontal values. That's the "facing" in my code above.
  15. pos.offset(facing).up()?
  16. He'd marked it in his OP. giveItem = addButton(new GuiButton(11, gui.width / 2 + 5, 187, 150, 20, "Give Items: OFF"), buttonList); LINE 101 But I don't see what could be null on that line.
  17. Uh huh. What did you expect to happen when you used BBCode inside a post? You should have used [nobbc] and previewed it first.
  18. Don't use IInventory, use Capabilities. Namely the ItemStackHandler capability.
  19. Point. That's what I get for not having Eclipse open.

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.