
Everything posted by Leomelonseeds
-
[1.11.2] Entity Rendering Problem
Hmmmm... Put a System.out.printLn() in your renderers. Are they being called?
-
[1.11.2] Entity Rendering Problem
Then try removing it and see if it works
-
[1.11.2] Entity Rendering Problem
the heck is this? (clientProxy)
-
[1.10.2] Hanging Entity help
Gosh, that's so... unorganized!
-
Incorrect Armor Calculations
Soooo... What is your question? Also this should be moved to ModderSupport.
-
[1.11.2]Entity Model Bug
Well check out the normal minecraft classes and see how they do it!
-
[1.10.2] Hanging Entity help
Ok now what values should I put in the constructor EntityCamera(client-side) when creating an instance of my Entity in SomeSpawnCallback to use in the apply method? null does not work apparently, and this either: package com.leomelonseeds.moarstuff.entity; import com.google.common.base.Function; import net.minecraft.entity.Entity; import net.minecraft.util.EnumFacing; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; import net.minecraftforge.fml.common.network.internal.FMLMessage.EntitySpawnMessage; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; import com.leomelonseeds.moarstuff.entity.EntityCamera; @SideOnly(Side.CLIENT) public class SomeSpawnCallBack implements Function<EntitySpawnMessage, Entity> { private World worldIn; private BlockPos pos; private EnumFacing facing; private String title; EntityCamera entityC = new EntityCamera(worldIn, pos, facing, title); @Override public Entity apply(EntitySpawnMessage m) { return entityC; } }
-
Confusing Error while modding enum sided block
Also post your Block class
-
Confusing Error while modding enum sided block
Now, in your models, the parent needs to be block/orientable, and the textures shoulod just be a normal block texture. eg. "top":"blocks/furnace_top"
-
Confusing Error while modding enum sided block
Then POST the json please
-
Confusing Error while modding enum sided block
[19:25:16] [Client thread/ERROR] [FML]: Could not load vanilla model parent 'tutorial3:block/block_breaker_advanced' for 'net.minecraft.client.renderer.block.model.ModelBlock@5b751bab See that is the malformed json.
-
Confusing Error while modding enum sided block
You want to read the top lines(most important) of the crash, then you want to read the caused by section.
-
[1.10.2] Hanging Entity help
Ok so the ClientRegistry line is saying that it can not make a static reference to the non static method of setCustomSpawning. When I try to store an instance of the EntityRegistration class in my clientproxy, what things should I put in the constructor? Nothing seems to be working right now.
-
[1.10.2] Hanging Entity help
So... What is that? And also which package shouold I put that class in?
-
[1.11.2] Some Armor Rendering Problems
post your code please
-
[1.10.2] Hanging Entity help
Why isint it working? Well how would I do that? Code: package com.leomelonseeds.moarstuff.entity; import javax.annotation.Nullable; import com.leomelonseeds.moarstuff.items.Moditems; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityHanging; import net.minecraft.entity.item.EntityPainting; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.SoundEvents; import net.minecraft.item.ItemStack; import net.minecraft.util.EnumFacing; import net.minecraft.util.math.AxisAlignedBB; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; public class EntityCamera extends EntityHanging { public EntityCamera(World worldIn) { super(worldIn); } public EntityCamera(World worldIn, BlockPos pos, EnumFacing facing) { super(worldIn, pos); this.updateFacingWithBoundingBox(facing); } @SideOnly(Side.CLIENT) public EntityCamera(World worldIn, BlockPos pos, EnumFacing facing, String title) { this(worldIn, pos, facing); this.updateFacingWithBoundingBox(facing); } @Override public int getWidthPixels() { return 12; } @Override public int getHeightPixels() { return 12; } @Override public void onBroken(@Nullable Entity brokenEntity) { if (this.worldObj.getGameRules().getBoolean("doEntityDrops")) { this.playSound(SoundEvents.BLOCK_STONE_BREAK, 1.0F, 1.0F); if (brokenEntity instanceof EntityPlayer) { EntityPlayer entityplayer = (EntityPlayer)brokenEntity; if (entityplayer.capabilities.isCreativeMode) { return; } } this.entityDropItem(new ItemStack(Moditems.camera), 0.0F); } } @Override public void playPlaceSound() { this.playSound(SoundEvents.BLOCK_STONE_HIT, 1.0F, 1.0F); } public void setLocationAndAngles(double x, double y, double z, float yaw, float pitch) { this.setPosition(x, y, z); } /** * Set the position and rotation values directly without any clamping. */ @SideOnly(Side.CLIENT) public void setPositionAndRotationDirect(double x, double y, double z, float yaw, float pitch, int posRotationIncrements, boolean teleport) { BlockPos blockpos = this.hangingPosition.add(x - this.posX, y - this.posY, z - this.posZ); this.setPosition((double)blockpos.getX(), (double)blockpos.getY(), (double)blockpos.getZ()); } }
-
[Forge 1.10.2] Create a pickaxe that break unbreakable blocks?
Can you use the code tag please? (<>)that thing. Currently I cant even tell what you are doing
-
[UNSOLVED][1.10.2]Need help with TESR and tileentity item
Buuuuuuuuump...
-
[1.10.2] Hanging Entity help
Apparently not...
-
[1.11] Knock back entities within radius of player?
That was what I was saying in the second post... I was taking a coding class about moving objects at a certian velocity towards the mouse..
-
[1.11] Knock back entities within radius of player?
I found on the internet the distance between two objects is distance AB=√(x2−x1)2+(y2−y1)2+(z2−z1)2 for more info check out: http://www.intmath.com/vectors/7-vectors-in-3d-space.php
-
[1.11] Knock back entities within radius of player?
Wow... Didnt know trigonometry was a thing here even.
-
[1.11] Knock back entities within radius of player?
Isint the vector the distance between the player position x minus entity position x?(same for y)
-
[1.11] Yay! Nestable shulker boxes -- a feature or bug?
Interesting... I will experiment with that...
-
Forums Migration/Upgrade
IPS spam blocked by CleanTalk.