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. My guess is that you're somehow modifying tasks or targetTasks from within the AI task itself (e.g. by calling setCombatTask()). This is a no-no as you modify a list while that list is being iterrated over, invalidating the iteration (was the item removed already iterated over? if so, do we need to somehow "undo" it? was the item added supposed to be iterated over? The JVM can't answer these questions).
  2. What happens when water washes away grass and flowers? A Harvest event is fired where event.getHarvester() is null.
  3. This is an antipattern. There is no reason you should need to extend Item in this manner.
  4. Also What does this even mean?
  5. Make your textures square.
  6. https://stackoverflow.com/questions/513832/how-do-i-compare-strings-in-java
  7. Oh my god ffs. You were right, I was using the local te instead of the global te variable. So frustrating. Thanks You realize the thing you did doesn't fucking matter because you passed null to the constructor, right? both this.tileentity and tileentity are null. Changing tileentity to this.tileentity on the second line doesn't change that fact.
  8. What. Why do you have a global variable?
  9. You don't. Blockstates work like this: 1) You, in your block class, tell Minecraft what properties (and possible values) your block has 2) You, in a blockstate file, map these property-value keys to model and texture definitions (or other such values)
  10. Or you could tell the statemapper "these properties can be ignored."
  11. Data was though. Data has always been a thing. JSON is just a format for data that's a blend of easy for a human to read and easy for computers to deal with.
  12. An array of 1 is not the same as an object. Yes you do need them.
  13. You can't tell the difference between those two pieces of code? https://json-schema.org/understanding-json-schema/reference/array.html
  14. If you're getting an error, then it's wrong. Your code: "normal": { "model": "crystalweapons:crystalore" } What's expected: "normal": [{ "model": "crystalweapons:crystalore" }]
  15. The error says that a portion of it deserialized as an Object when something else was expected. Probably an array.
  16. Your JSON file is wrong.
  17. You need to multiply this value by the deltaTime between frames (after dividing out the deltaTime at 75 fps). I'm not sure where you'd get that value, though.
  18. You're still in the wrong place, as this board (the one called Modder Support) is for the people who make mods, not the people who use them. And the exception that got thrown (a Concurrent Modification Exception, meaning either: (a) a loop modified the list its iterating over or (b) thread safety) is one of a kind that is not necessarily repeatable. Particularly the type of class (b) dealing with thread safety. That is: it will crash unexpectedly and randomly. So "it worked before" isn't really true, all that was true was that it hadn't yet crashed. One of your mods is broken. The only person who can help you is the person that wrote it.
  19. Go talk to the developer of Extra Planets.
  20. You've got everything wrong. 1) You haven't registered an event handler 2) Your event handler method has the wrong signature 3) The method signature you do seem to have is the one from the Item class.
  21. That's not how extending a class works. Depending on what, exactly, you want to do, there are a number of ways to achieve it. You just have to tell us what you want to do.
  22. That's not how IItemHandler works.
  23. Look at ItemMultiTexture and ItemCloth

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.