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.

BeardlessBrady

Members
  • Joined

  • Last visited

Everything posted by BeardlessBrady

  1. Just not sure where I'm supposed to check the render layer
  2. Currently Im just trying to see if I can inject my own custom MovementInput into the game via EntityJoinWorldEvent. Right now I've only copied the MovementInputFromOptions class to the t just to see if it will allow me and for some reason the game crashes on world MovementInput Class: https://github.com/BeardlessBrady/Carts-Mod/blob/master/src/main/java/gunn/modcarts/mod/CartMovementInput.java CommonEvent Class: https://github.com/BeardlessBrady/Carts-Mod/blob/master/src/main/java/gunn/modcarts/mod/core/handler/EventHandlerCommon.java#L35-L38 Crashlog: https://pastebin.com/fQeyyUCA
  3. Where am I supposed to check 'MinecraftForgeClient.getRenderLayer' as if I check it in the eventHandler or in the getQuads method of the model It just returns null
  4. I'm trying my best to understand and learn how to mess around with quads and I've finally found a way to manipulate them which is great. Only problem is there's a big black box around item models when I'm messing with them, any idea how to remove that? https://github.com/BeardlessBrady/Currency-Mod/blob/master-1.11.2/src/main/java/gunn/modcurrency/mod/client/model/BakedModelVending.java#L47-L61
  5. I got burned out on trying to get this to work and Im super glad I came back to this page to go over what I know as I didn't even see your last message. Thanks so much for looking around IRC to help me, that should be extremely helpful!
  6. Hmm odd, that is how OpenComputer's github shows how to do it, well I removed the + and the . at the end and it seems to have worked perfectly, thanks
  7. Im trying to add Open Computers as an optional api for my mod. I add the below code in my build.gradle and when I import the changes it just breaks the whole mode, making every forge and minecraft related thing used in my mod red and broken. Am I supposed to do anything else or am I doing it wrong? repositories { maven { url = "http://maven.cil.li/" } } dependencies { provided "li.cil.oc:OpenComputers:MC1.11.2-1.7.0.13.+:api" }
  8. I've been told I can cancel the player movement event to the server just not quite sure how to do that.
  9. I'm specifically trying to prevent strafing. I've tried using the InputEvent but it can't be cancelled. Any ideas?
  10. So whenever I place my exchange machine block the fps goes down by quite a bit. I've tried removing the model and removing the update method (along with removing the 'implements ITickable' as well) and the issue still persists. I can't seem to find another reason the block would cause lag just by being placed. Block: https://github.com/BeardlessBrady/Currency-Mod/blob/master-1.11/src/main/java/gunn/modcurrency/mod/block/BlockSeller.java Tile: https://github.com/BeardlessBrady/Currency-Mod/blob/master-1.11/src/main/java/gunn/modcurrency/mod/tile/TileSeller.java Can someone point me in the right direction, not sure what else would cause constant lag
  11. Oh luckily the player has moveStrafing and moveForward!
  12. so there is no way to get the horse's motion server side or should I use packets? I need motion because when the player/horse moves left,right, or backwards the position of the cart doesnt look right, so I need to change its position when they do these movements, any ideas if I can't use motion
  13. Alright so My current predicament is: I have a cart entity that follows a horse entity when connected to it, I can get the horses motion client and server side fine. When a player starts to ride the horse however I can only get the motion client side, server side it stays 0.0. I have tried getting the players motion as well but it still stays at 0.0 I check the motion here: https://github.com/BeardlessBrady/Carts-Mod/blob/master/src/main/java/gunn/modcarts/mod/entity/EntityHorseCart.java#L63
  14. I've figured it out, thanks for the help guys
  15. Sorry its been awhile. I don't see what the difference from doing it in onUpdate and readfromNBT. Either way it doesn't work for me. Not sure what to try next here. EDIT: I think it has something to do with the cart loading in before the horse does
  16. Well no because when I try to get the entity with getEntityFromUuid it returns null. But why the UUID is correct. I am not trying to set it to a player, I'm setting it to a horse.
  17. The UUID.toString saves fine but when I try to getEntityFromUuid with the UUID.fromString from the NBT it comes out null, does the UUID for mobs change when reloading a world? EDIT: Ya so the UUID doesn't change. But for some reason when I put the UUID into the 'getEntityFromUuid' method it outputs null. Here's where I try and find the entity: https://github.com/BeardlessBrady/Carts-Mod/blob/master/src/main/java/gunn/modcarts/mod/entity/EntityHorseCart.java#L162
  18. That is a good idea however, I'm trying to store an entityHorse. The world doesn't have a ' getEntityByUUID ' like it does for the player so your method wouldn't work.
  19. So I should save the UUID of the attached entity to NBT? But what do I do with it when it reads it?
  20. That's where the error was before. So how do I check if an NBT tag is null. It obviously shouldn't be null as the only way it's set is if it wasn't null when it was saved
  21. I check to see if the entity is null before writing it. I updated it in the code now so you can check here: https://github.com/BeardlessBrady/Carts-Mod/blob/master/src/main/java/gunn/modcarts/mod/entity/EntityHorseCart.java#L155 This is the error that occurs when reloading the world https://pastebin.com/s0EkVu1M (Same as before)
  22. Yes I know what it means and I understand that. But It isn't null before saving it so I don't see why it is when it writes it EDIT: At some point I was checking if an entity was attached but it didn't make a difference, the error still occures
  23. I'm having a bit of trouble successfully reading/writing things to NBT in an entity. Specifically what I'm trying to do is save the entity my entity is attached to. Below is the console error that is output, I understand its a nullPointerException I just don't see why it's doing so unless Im writing the entity wrong? https://pastebin.com/5S4F3gQA https://github.com/BeardlessBrady/Carts-Mod/blob/master/src/main/java/gunn/modcarts/mod/entity/EntityHorseCart.java#L155
  24. What vanilla entities use max value? Where are vanilla entities registered? EDIT: That seemed to fix it though! Thanks for the input, I thought it was a problem with my update code not that.
  25. I've posted about this before but I still can't find the issue, in the video I'm not changing rotation to show the problem is in the movement of the cart. Any suggestion would be incredibly helpful. https://gfycat.com/MadeupAdmirableArgali https://github.com/BeardlessBrady/Carts-Mod/blob/master/src/main/java/gunn/modcarts/mod/entity/EntityHorseCart.java#L97

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.