
Everything posted by Cadiboo
-
[1.12.2] custom entity/mob | missing spawnegg [Solved]
the actual entity class please I don't see where preInitRegistries() is being called. You should probably try registering your entity renders like this. https://github.com/Cadiboo/WIPTechAlpha/blob/fc508e4dd439603888ca2caf08c0b871372764d4/src/main/java/cadiboo/wiptech/EventSubscriber.java#L325-L332
-
[1.12.2] Problem with OBJ Model rendering
you should probably also te#getWorld#getTotalWorldTime() instead of your timer variable. If you need even more accuracy you can also add the partialTicks to the world time. You might want to take a look at https://github.com/Cadiboo/WIPTechAlpha/blob/fc508e4dd439603888ca2caf08c0b871372764d4/src/main/java/cadiboo/wiptech/client/ClientUtil.java#L776-L801 for the trigonometry and at https://github.com/Cadiboo/WIPTechAlpha/blob/fc508e4dd439603888ca2caf08c0b871372764d4/src/main/java/cadiboo/wiptech/client/ClientUtil.java#L247-L292 for my use of it
-
[SOLVED] Get vehicle of EntityPlayer
edit the first post, edit the title & add "[SOLVED]" to the beginning
-
[1.12.2] custom entity/mob | missing spawnegg [Solved]
What do you mean no spawn egg? does it exist with /give? please post your logs & your EntityCyborg class Register your egg inside the builder. Have a look at https://github.com/Cadiboo/WIPTechAlpha/blob/28bbf1ca75d6a02445838c3f4742a80ee6adc7f7/src/main/java/cadiboo/wiptech/EventSubscriber.java#L280-L290 for an example.
-
[1.12.2] Model render() not being called
Hmm, I your logs should have been the first thing I asked for - also my fault
-
[1.12.2] Creating a Scrollbar as apart of a Custom Gui
- [1.12.2] Making a Custom Crafting Table for my mod items [Solved]
Isn’t that a normal crafting table texture? make a custom block, look at BlockWorkbench and ContainerWorkbench and GuiWorkbench and make custom versions of them- [1.12.2] Model render() not being called
So the default white box isn’t being rendered which means that your custom rendered got set. You’ve used breakpoints and found out that your render method isn’t being called. Can you show your demo rendering factory? And in future it will probably be easier to replace that class with a lamda expression like this https://github.com/Cadiboo/WIPTechAlpha/blob/08fe6f7abfb7a791fc9c922e229fb9bee4749335/src/main/java/cadiboo/wiptech/EventSubscriber.java#L320- [1.12.2] Model render() not being called
Are you sure the renderer is registered? i.e. is the white box still being rendered for you?- Checking if mod that is loaded is compiled
Please explain your problem again and what you mean by “compiled”- [1.12.2] Custom player inventory
You have to extend at least GuiScreen or one of its subclasses, the closer to the vanilla inventory you can get the better- [1.12.2] Using Minecraft's Tessellator and BufferBuilder
You definitely don't need to deal with the tesselator & bufferbuilder for this, look at the Forge Animation API, or you could just inject the models you need into the model registry & render them normally with an entity renderer. Example of injecting models https://github.com/Cadiboo/WIPTechAlpha/blob/fbf25447cd02b3dc4fe4fece749c3558f9342f3f/src/main/java/cadiboo/wiptech/EventSubscriber.java#L464-L509 (Right below that code is a good example of why not to use the tesselator) Example of rendering an entity with the injected models https://github.com/Cadiboo/WIPTechAlpha/blob/master/src/main/java/cadiboo/wiptech/client/render/entity/EntityPortableGeneratorRenderer.java- [Solved] Question regarding metadata
Do u know what they changed it to?- [1.12.2]How to make the same purple light as the ender dragon died?
Quick thing, them and lightning don’t play well when rendered on top of water. What are you trying to achieve?- [1.12.2] Using Minecraft's Tessellator and BufferBuilder
Directly interacting with the tesselator & buferbuilder is probably not what you want to do unless your already pretty experienced in OpenGL and advanced 3D rendering. What are you trying to achieve exactly? What do you mean by complex models and why & where & when will they be used?- Full movement control while passenger on vanilla entity
Could you also force the grabbed entity to ride the flying entity with a negative ridingYOffset?- [1.12.2] Help with custom crafting table & chests (using wood OreDict)
Have you tried something like (pseudo code) ArrayList<> myRecipes = new ArrayList<>(); ArrayList otherRecipes = new ArrayList<>(); for(Recipe recipe : forgeRegistries.Recipes.allRecipesAsList()) { if(recipeIsMine(recipe)) { myRecipes.add(recipe); } else { otherRecipes.add(recipe); } } forgeRegistries.Recipes.allRecipesAsList().clear(); forgeRegistries.Recipes.allRecipesAsList().addAll(myRecipes); forgeRegistries.Recipes.allRecipesAsList().addAll(otherRecipes); sorry for the bad formatting, I wrote it on my phone- [Help] Get rid of a fake death tamed/labeled mob
Make a hobby out of Programming and you’ll be surprised at how fast the fog clears aha. You’ll also be surprised at how much more fog was behind that fog- Problem with knockback
I’m pretty (very) sure that trying to make a hack isn’t allowed on these forums. What do you mean by self destruct and why are you trying to hide it?- [Help] Get rid of a fake death tamed/labeled mob
Also none of that’s actually code, it’s an error in a log file (which is meant to be easy to read & understand so that you can fix the error)- [Help] Get rid of a fake death tamed/labeled mob
A witty comment from Mojang The time the error occurred The description of the error The class of the Exception (type of error) The class and line number and method that “caused” the exception (where the error was “caused”) The stacktrace of the exception (what happened that “caused” the error) I have “caused” in quotes because this error is probably caused by two threads (different parts of the program) are modifying a thing at the same time which isn’t allowed. One of these parts says “hey that’s not right!” And throws an error, but it was (probably) the other part modifying the thing that is the real cause of the error- Checking if mod that is loaded is compiled
So, you don’t want to generate them when running inside eclipse??- [Help] Get rid of a fake death tamed/labeled mob
It’s usually not allowed, it depends on the lisence the code was released under. I also never said anything about rewriting, I only talked about looking at your logs & someone else’s code and reporting an error to a mod author of you found it. what do you mean your good in theory?- [Help] Get rid of a fake death tamed/labeled mob
I was just saying that if you wanted to fix/report the problem to the mod author you could do this. I misread “avoid” in your post as “fix”.- [Help] Get rid of a fake death tamed/labeled mob
I believe that NaN values are caused when math goes horribly wrong (something like dividing zero by zero or trying to get the root of a negative number?). I could be wrong, I’ll go look it up. When math goes wrong I believe that an error will be generated and (probably) written to your logs. Because your entities have NaN health, I assume that some mod is setting an entities health based on some calculations. These calculations appear to sometimes return NaN. So you could look at where in the mods code they are setting entity health. BTW NaN means Not a Number - [1.12.2] Making a Custom Crafting Table for my mod items [Solved]
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.