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.

Cadiboo

Members
  • Joined

  • Last visited

Everything posted by Cadiboo

  1. 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
  2. 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
  3. edit the first post, edit the title & add "[SOLVED]" to the beginning
  4. 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.
  5. Hmm, I your logs should have been the first thing I asked for - also my fault
  6. 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
  7. 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
  8. Are you sure the renderer is registered? i.e. is the white box still being rendered for you?
  9. Please explain your problem again and what you mean by “compiled”
  10. You have to extend at least GuiScreen or one of its subclasses, the closer to the vanilla inventory you can get the better
  11. 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
  12. Do u know what they changed it to?
  13. Quick thing, them and lightning don’t play well when rendered on top of water. What are you trying to achieve?
  14. 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?
  15. Could you also force the grabbed entity to ride the flying entity with a negative ridingYOffset?
  16. 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
  17. 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
  18. 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?
  19. 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)
  20. 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
  21. So, you don’t want to generate them when running inside eclipse??
  22. 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?
  23. 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”.
  24. 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

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.