-
Posts
407 -
Joined
-
Last visited
-
Days Won
3
Everything posted by Leomelonseeds
-
Hmmmm... Put a System.out.printLn() in your renderers. Are they being called?
-
Then try removing it and see if it works
-
the heck is this? (clientProxy)
-
Gosh, that's so... unorganized!
-
Soooo... What is your question? Also this should be moved to ModderSupport.
-
Well check out the normal minecraft classes and see how they do it!
-
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
Leomelonseeds replied to clowcadia's topic in Modder Support
Also post your Block class -
Confusing Error while modding enum sided block
Leomelonseeds replied to clowcadia's topic in Modder Support
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
Leomelonseeds replied to clowcadia's topic in Modder Support
Then POST the json please -
Confusing Error while modding enum sided block
Leomelonseeds replied to clowcadia's topic in Modder Support
[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
Leomelonseeds replied to clowcadia's topic in Modder Support
You want to read the top lines(most important) of the crash, then you want to read the caused by section. -
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.
-
So... What is that? And also which package shouold I put that class in?
-
post your code please
-
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?
Leomelonseeds replied to lethinh's topic in Modder Support
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
Leomelonseeds replied to Leomelonseeds's topic in Modder Support
Buuuuuuuuump... -
Apparently not...
-
[1.11] Knock back entities within radius of player?
Leomelonseeds replied to Eria8's topic in Modder Support
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?
Leomelonseeds replied to Eria8's topic in Modder Support
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?
Leomelonseeds replied to Eria8's topic in Modder Support
Wow... Didnt know trigonometry was a thing here even. -
[1.11] Knock back entities within radius of player?
Leomelonseeds replied to Eria8's topic in Modder Support
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?
Leomelonseeds replied to The_Wabbit's topic in Modder Support
Interesting... I will experiment with that... -