Everything posted by lukas2005
- 
	
		
		[SOLVED][1.10.2] Poison and Nausea not working
		
		i am calling utils.addPotionEffect in tick player event therse nothing more
 - 
	
		
		[SOLVED][1.10.2] Poison and Nausea not working
		
		i updated the topic with code
 - 
	
		
		[1.10.2] Rendering Items in cookie jar
		
		Like in topic i want to make a cookie jar and i arelady have that tileentity stuff i just need to render the item
 - 
	
		
		[SOLVED][1.10.2] Poison and Nausea not working
		
		hello i am using code to give player a potion effect but Poison And Nausea are not working Poison colors my heart bar to green but does not deals damage and nausea is appearing as active effect in inventory but nothing happens heres code: public void onPlayerTick(PlayerTickEvent event) { utils.addPotionEffect(event.player, PotionID.NAUSEA, 20, 1, true); } PotionID class: public class PotionID { public static int SPEED = 1; public static int SLOWNESS = 2; public static int HASTE = 3; public static int MININGFATIGUE = 4; public static int STRENGTH = 5; public static int INSTANTHEALTH = 6; public static int INSTANTDAMAGE = 7; public static int JUMPBOOST = 8; public static int NAUSEA = 9; public static int REGENERATION = 10; public static int RESISTANCE = 11; public static int FIRERESISANCE = 12; public static int WATERBREATHING = 13; public static int INVISIBILITY = 14; public static int BLINDNESS = 15; public static int NIGHTVISION = 16; public static int HUNGER = 17; public static int WEAKNESS = 18; public static int POISON = 19; public static int WITHER = 20; public static int HEALTHBOOST = 21; public static int ABSORPTION = 22; public static int SATURATION = 23; public static int GLOWING = 24; public static int LEVITATION = 25; public static int LUCK = 26; public static int BADLUCK = 27; } and addPotionEffect Function: public static void addPotionEffect(EntityLivingBase entity, int potionid, int duration, int amplifier, boolean showParticles) { entity.addPotionEffect(new PotionEffect(Potion.getPotionById(potionid), duration, amplifier, false, showParticles)); }
 - 
	
		
		[SOLVED][1.9] HOW TO CHANGE PLAYER MODEL?
		
		refresh
 - 
	
		
		[1.9] [SOLVED] HOW TO SYNC OBJECT OVER THE NETWORK AND SAVE IT
		
		Ok but how to do this?
 - 
	
		
		[1.9] [SOLVED] HOW TO SYNC OBJECT OVER THE NETWORK AND SAVE IT
		
		for me using whole object is easier
 - 
	
		
		[1.9] [SOLVED] HOW TO SYNC OBJECT OVER THE NETWORK AND SAVE IT
		
		Hello i have object that is created when player joins world/server and i want to use it to create and sync variables per-player how i can make it save and how to sync it with server and with other clients?
 - 
	
		
		[SOLVED][1.9] HOW TO CHANGE PLAYER MODEL?
		
		Ok now i have this no texture steve model inside my model upside down and wrong scale
 - 
	
		
		[SOLVED][1.9] HOW TO CHANGE PLAYER MODEL?
		
		ok but how i suposse to assign a texture to my model?
 - 
	
		
		[SOLVED][1.9] HOW TO CHANGE PLAYER MODEL?
		
		i followed this and i executed render() function that is in my model class and some weird things sarted to happen: but i recognize some of parts of my model My code: CustomPlayerRender Class: public class CustomPlayerRender extends RenderPlayer { public mycustommodel model; public CustomPlayerRender(RenderManager renderManager) { super(renderManager); model = new mycustommodel(); } public void doRender(AbstractClientPlayer e) { model.render(e, 1, 1, e.getAge(), e.cameraYaw, e.cameraPitch, 0.1f); } } mycustommodel class: public class mycustommodel extends ModelBiped { //fields ModelRenderer LegRight; ModelRenderer LegLeft; ModelRenderer LegsConnector; ModelRenderer Body; ModelRenderer Head; ModelRenderer ArmRightUp; ModelRenderer ArmRightDown; ModelRenderer ArmLeftUp; ModelRenderer ArmLeftDown; public ModelMuscleMan() { textureWidth = 64; textureHeight = 64; LegRight = new ModelRenderer(this, 0, 0); LegRight.addBox(0F, 0F, 0F, 4, 12, 4); LegRight.setRotationPoint(1F, 12F, 1F); LegRight.setTextureSize(64, 64); LegRight.mirror = true; setRotation(LegRight, 0F, 0F, 0F); LegLeft = new ModelRenderer(this, 0, 0); LegLeft.addBox(0F, 0F, 0F, 4, 12, 4); LegLeft.setRotationPoint(-5F, 12F, 1F); LegLeft.setTextureSize(64, 64); LegLeft.mirror = true; setRotation(LegLeft, 0F, 0F, 0F); LegsConnector = new ModelRenderer(this, 16, 0); LegsConnector.addBox(0F, 0F, 0F, 10, 4, 11); LegsConnector.setRotationPoint(-5F, 9F, -2F); LegsConnector.setTextureSize(64, 64); LegsConnector.mirror = true; setRotation(LegsConnector, 0.3490659F, 0F, 0F); Body = new ModelRenderer(this, 0, 41); Body.addBox(0F, 0F, 0F, 16, 11, 12); Body.setRotationPoint(-8F, -1F, -6F); Body.setTextureSize(64, 64); Body.mirror = true; setRotation(Body, 0.3490659F, 0F, 0F); Head = new ModelRenderer(this, 0, 25); Head.addBox(0F, 0F, 0F, 8, 8, ; Head.setRotationPoint(-4F, -10F, -6F); Head.setTextureSize(64, 64); Head.mirror = true; setRotation(Head, 0.1396263F, 0F, 0F); ArmRightUp = new ModelRenderer(this, 32, 28); ArmRightUp.addBox(0F, 0F, 0F, 4, 9, 4); ArmRightUp.setRotationPoint(5F, 0F, 0F); ArmRightUp.setTextureSize(64, 64); ArmRightUp.mirror = true; setRotation(ArmRightUp, 0.0349066F, 0F, -0.7330383F); ArmRightDown = new ModelRenderer(this, 48, 28); ArmRightDown.addBox(0F, 0F, 0F, 4, 9, 4); ArmRightDown.setRotationPoint(10F, 3F, 1.5F); ArmRightDown.setTextureSize(64, 64); ArmRightDown.mirror = true; setRotation(ArmRightDown, -0.5948578F, 0F, 0F); ArmLeftUp = new ModelRenderer(this, 32, 28); ArmLeftUp.addBox(0F, 0F, 0F, 4, 9, 4); ArmLeftUp.setRotationPoint(-8F, -2F, 1F); ArmLeftUp.setTextureSize(64, 64); ArmLeftUp.mirror = true; setRotation(ArmLeftUp, 0.0349066F, 0F, 0.7330383F); ArmLeftDown = new ModelRenderer(this, 48, 28); ArmLeftDown.addBox(0F, 0F, 0F, 4, 9, 4); ArmLeftDown.setRotationPoint(-14F, 3F, 1.5F); ArmLeftDown.setTextureSize(64, 64); ArmLeftDown.mirror = true; setRotation(ArmLeftDown, -0.5948606F, 0F, 0F); } public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) { super.render(entity, f, f1, f2, f3, f4, f5); setRotationAngles(f, f1, f2, f3, f4, f5, entity); LegRight.render(f5); LegLeft.render(f5); LegsConnector.render(f5); Body.render(f5); Head.render(f5); ArmRightUp.render(f5); ArmRightDown.render(f5); ArmLeftUp.render(f5); ArmLeftDown.render(f5); } private void setRotation(ModelRenderer model, float x, float y, float z) { model.rotateAngleX = x; model.rotateAngleY = y; model.rotateAngleZ = z; } public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity) { super.setRotationAngles(f, f1, f2, f3, f4, f5, entity); } } and PreRenderEvent class: public class PreRenderEvent { RenderManager manager = .getMinecraft().getRenderManager(); @SubscribeEvent public void preRenderPlayer(RenderLivingEvent.Pre e) { if (!(e.getEntity() instanceof EntityPlayer)) return; e.setCanceled(true); gymMod.customPlayerRender.doRender((AbstractClientPlayer) e.getEntity()); } }
 - 
	
		
		[SOLVED][1.9] HOW TO CHANGE PLAYER MODEL?
		
		Refresh
 - 
	
		
		[SOLVED][1.9] HOW TO CHANGE PLAYER MODEL?
		
		Ok i re-created my model in Techne and now i have model in .java
 - 
	
		
		[SOLVED][1.9] HOW TO CHANGE PLAYER MODEL?
		
		So i need to do: public class CustomPlayerRender extends RenderPlayer { public CustomPlayerRender(RenderManager renderManager) { super(renderManager); // TODO Auto-generated constructor stub this.renderModel(model, color, (ItemStack)null); } } is this right?
 - 
	
		
		[SOLVED][1.9] HOW TO CHANGE PLAYER MODEL?
		
		How?
 - 
	
		
		[SOLVED][1.9] HOW TO CHANGE PLAYER MODEL?
		
		Ok. but how i can convert .json model to .java model i am relly hoping this is possible
 - 
	
		
		[SOLVED][1.9] HOW TO CHANGE PLAYER MODEL?
		
		ok ill try. and one more thing can i use .json model for player?
 - 
	
		
		[SOLVED][1.9] HOW TO CHANGE PLAYER MODEL?
		
		Currently i only want to render custom model later i will try to make animations and armor but not now EDIT: I writed some code : public class PreRenderEvent { RenderManager manager = Minecraft.getMinecraft().getRenderManager(); @SubscribeEvent public void preRenderPlayer(RenderLivingEvent.Pre event) { if (!(event.getEntity() instanceof EntityPlayer)) return; event.setCanceled(true); System.out.println("I think it works"); } } And registered it with: MinecraftForge.EVENT_BUS.register(new PreRenderEvent()); and now i'm invisible so where i ned to put the render code now?
 - 
	
		
		[SOLVED][1.9] HOW TO CHANGE PLAYER MODEL?
		
		Hello like in topic i'm trying to change the player model i know something about event handlers but about rendering nothing So can anyone help me?
 
IPS spam blocked by CleanTalk.