Everything posted by Draco18s
-
.OBJ to .JSON
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.
-
[1.15.2] issue while trying to get contents of an ArrayList
That lets you map Fluid -> Data. You have O(1) lookup queries on the key
-
How do I make tile entitys (1.15.2)
Show your code and the error(s).
-
[1.15.2] issue while trying to get contents of an ArrayList
Sounds like you want a dictionary. Er, (Hash)Map in Java
-
[IntelliJ] Help with an item
You'll want to ignore the elytra-mimics, as the solution there is vastly different.
-
[IntelliJ] Help with an item
Anyway, there's like a thousand threads here about making flight items. Just use the search.
-
[1.15.1] Disable individual vanilla ores from spawning
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.
-
[IntelliJ] Help with an item
I swear it said "flint" when I posted.
-
Trouble registering packets
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.
-
[IntelliJ] Help with an item
That's "flight" not "flint."
-
[1.15.2] issue while trying to get contents of an ArrayList
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; }
-
[IntelliJ] Help with an item
What do you mean "toggle flint"?
-
Trouble registering packets
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.
-
[1.15.1] Disable individual vanilla ores from spawning
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
-
[1.16.1] How do I add new goals to vanilla entities?
Are you sure your event is being called?
-
[1.16.1] How do I add new goals to vanilla entities?
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
-
[1.14.4] Find direction to block position
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.
-
[1.16.1] How do I add new goals to vanilla entities?
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.
-
Texture Not Showing Up
Because it changed from one version of MC to another. The game also tells you what file it's trying to read.
-
[1.16.1] Help With The ToolItem Method
well, Set<BlastFurnaceBlock> is a Type, not a collection.
-
Non [a-z0-9/._-) character in path of location
Did you follow the instructions?
-
[1.15.2] Get an item by name
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).
-
[1.15.2] issue while trying to get contents of an ArrayList
Use a custom data class, then ArrayList<MyCustomFuelDetails> Smashing arrays into other arrays so you can store stringified booleans makes no sense.
-
[1.15.2] issue while trying to get contents of an ArrayList
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.
-
[1.14.4] Find direction to block position
Vector math.
IPS spam blocked by CleanTalk.