Jump to content

Leomelonseeds

Forge Modder
  • Posts

    407
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Leomelonseeds

  1. Hmmmm... Put a System.out.printLn() in your renderers. Are they being called?
  2. Then try removing it and see if it works
  3. the heck is this? (clientProxy)
  4. Gosh, that's so... unorganized!
  5. Soooo... What is your question? Also this should be moved to ModderSupport.
  6. Well check out the normal minecraft classes and see how they do it!
  7. 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; } }
  8. Also post your Block class
  9. 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"
  10. Then POST the json please
  11. [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.
  12. You want to read the top lines(most important) of the crash, then you want to read the caused by section.
  13. 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.
  14. So... What is that? And also which package shouold I put that class in?
  15. post your code please
  16. 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()); } }
  17. Can you use the code tag please? (<>)that thing. Currently I cant even tell what you are doing
  18. Apparently not...
  19. 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..
  20. 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
  21. Wow... Didnt know trigonometry was a thing here even.
  22. Isint the vector the distance between the player position x minus entity position x?(same for y)
  23. Interesting... I will experiment with that...
  24. I'm on a phone and can't see if a post is read or not.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.