Jump to content

Draco18s

Members
  • Posts

    16559
  • Joined

  • Last visited

  • Days Won

    156

Everything posted by Draco18s

  1. You can't. The json model system is in no way based on the vertex-triangles system that OBJ files use. It is more akin to a proprietary format.
  2. That lets you map Fluid -> Data. You have O(1) lookup queries on the key
  3. Show your code and the error(s).
  4. Sounds like you want a dictionary. Er, (Hash)Map in Java
  5. You'll want to ignore the elytra-mimics, as the solution there is vastly different.
  6. Anyway, there's like a thousand threads here about making flight items. Just use the search.
  7. For each biome: - For each feature: - - If the feature's config is a DecoratedFeatureConfig: - - - If the Decorated Config's feature's config is an OreFeatureConfig: - - - - If the Ore Config has the block we're looking for: - - - - - Remove the feature. Yes, the feature's config's feature's config. Vanilla wraps things in several layers and its the inner-most one that actually tells us what KIND of feature it is.
  8. I swear it said "flint" when I posted.
  9. I understand your issue with with the networking. However I'm pointing out that you're hurling all of your classes at the event bus four different ways and you don't need to do that. And I was right: You're doing more registration, yet another way.
  10. That's "flight" not "flint."
  11. public class MyCustomFuelDetails { // stuff } A "data class" is, unsurprisingly, a class that holds data. In this case, the three values about your fuel that all have a tight relationship to each other. Eg: public class MyCustomFuelDetails { public bool someBool; public int someInt; public Fluid someFluid; }
  12. What do you mean "toggle flint"?
  13. This: This: And this: All do the same thing (the first two literally do except for different busses and the only event methods you have are all FORGE bus events; the second does the same thing, but to a different class). Pick one. Then there's this: Which either also does the same thing or does nothing (you didn't share that class). And is either way confusing.
  14. You have to remove them from each biome individually. This might help, and this is by no means "good code" (I haven't updated in a while and it was written in an attempt to figure out how to do the kind of thing you're trying to do). https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/harderores/HarderOres.java#L206
  15. Are you sure your event is being called?
  16. Probably. Which means that it is a lower priority than the regular BreedGoal because it's later in the task list. You either: (a) need to remove the original goal (b) make your goal have a higher priority
  17. Well, you take the resulting vector figure what angle it is relative to some other vector using trig. That value can then be divided by some other number to produce a value between 0 and 1.
  18. AI tasks have a priority value and a "can run simultaneously" bitmask value. If your task has the same bits set as another take, but a lower priority (towards positive infinity, iirc) then it won't run. So Show your code.
  19. Because it changed from one version of MC to another. The game also tells you what file it's trying to read.
  20. well, Set<BlastFurnaceBlock> is a Type, not a collection.
  21. Did you follow the instructions?
  22. Well, for one, the unlocalized name and the registry name are not the same thing. For two, I don't believe that the method is getObject any more, but you'd have to look at what methods the Registry class exposes and pick one that appears to do what you want (because it probably does).
  23. Use a custom data class, then ArrayList<MyCustomFuelDetails> Smashing arrays into other arrays so you can store stringified booleans makes no sense.
  24. ArrayList<String>[][] That's not an array list. That's an array of arrays of arraylists. https://www.w3schools.com/java/java_arraylist.asp But yes, as vemerion is right. Its not initialized. But all of its sub-values aren't initialized either.
×
×
  • Create New...

Important Information

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