Jump 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. You do fucking nothing with it. The method call already exists. You do NOTHING to make that happen. When the player right clicks, then that method will run. You're done. That's it. Well you aren't using a TE in your gui, so don't get the TE from the world, don't pass the TE to the gui, do nothing with TEs.
  2. 5.6↑↑3 is only about 1 * 1024 (It's less now that I plug it into a calculator, but I was working backwards and just wanted something close; 5.65 is better)
  3. You still don't call the method yourself. You need to override the method so that it does what you want when called.
  4. Why are you calling onItemRightClick yourself?
  5. I'm mostly teasing. I made that post right after having a conversation involving Knuth's Up-Arrow Notation and an idle/clicker game. (And the number 5.6↑↑3)
  6. Your file isn't saved in UTF-8 format.
  7. 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.
  8. Emphasis on "You are expected to have basic knowledge of Java before posting here."
  9. I'm not sure then. My own TE-valued-states work just fine.
  10. 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]
  11. Did I tell you to wrap it in an if(worldObj.isRemote) check?
  12. 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.
  13. 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)
  14. Do you have an "inventory" variant in your blockstate file?
  15. 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.
  16. 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).
  17. 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();
  18. 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.
  19. Loop over the EnumFacing horizontal values. That's the "facing" in my code above.
  20. pos.offset(facing).up()?

Important Information

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

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.