Everything posted by BeardlessBrady
- 
	
		
		[1.11.2] Black box around item quads
		
		Just not sure where I'm supposed to check the render layer
 - 
	
		
		[1.11.2] Injecting custom MovementInput
		
		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
 - 
	
		
		[1.11.2] Black box around item quads
		
		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
 - 
	
		
		[1.11.2] Black box around item quads
		
		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
 - 
	
		
		Manipulating Baked Model Quads
		
		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!
 - 
	
		
		[1.11.2] Help with adding API to Build.gradle
		
		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
 - 
	
		
		[1.11.2] Help with adding API to Build.gradle
		
		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" }
 - 
	
		
		[1.11.2] Prevent player movement
		
		I've been told I can cancel the player movement event to the server just not quite sure how to do that.
 - 
	
		
		[1.11.2] Prevent player movement
		
		I'm specifically trying to prevent strafing. I've tried using the InputEvent but it can't be cancelled. Any ideas?
 - 
	
		
		[1.11.2] Lag issues with my mod
		
		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
 - 
	
		
		[1.11.2] Motion 0.0 when entity is moving
		
		Oh luckily the player has moveStrafing and moveForward!
 - 
	
		
		[1.11.2] Motion 0.0 when entity is moving
		
		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
 - 
	
		
		[1.11.2] Motion 0.0 when entity is moving
		
		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
 - 
	
		
		[1.11.2] Saving to NBT in entities
		
		I've figured it out, thanks for the help guys
 - 
	
		
		[1.11.2] Saving to NBT in entities
		
		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
 - 
	
		
		[1.11.2] Saving to NBT in entities
		
		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.
 - 
	
		
		[1.11.2] Saving to NBT in entities
		
		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
 - 
	
		
		[1.11.2] Saving to NBT in entities
		
		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.
 - 
	
		
		[1.11.2] Saving to NBT in entities
		
		So I should save the UUID of the attached entity to NBT? But what do I do with it when it reads it?
 - 
	
		
		[1.11.2] Saving to NBT in entities
		
		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
 - 
	
		
		[1.11.2] Saving to NBT in entities
		
		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)
 - 
	
		
		[1.11.2] Saving to NBT in entities
		
		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
 - 
	
		
		[1.11.2] Saving to NBT in entities
		
		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
 - 
	
		
		[1.11] Shaky Entity Movement
		
		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.
 - 
	
		
		[1.11] Shaky Entity Movement
		
		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
 
IPS spam blocked by CleanTalk.