Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Leomelonseeds

Forge Modder
  • Joined

  • Last visited

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. 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"
  9. [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.
  10. You want to read the top lines(most important) of the crash, then you want to read the caused by section.
  11. 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.
  12. So... What is that? And also which package shouold I put that class in?
  13. 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()); } }
  14. Can you use the code tag please? (<>)that thing. Currently I cant even tell what you are doing
  15. 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..
  16. 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
  17. Wow... Didnt know trigonometry was a thing here even.
  18. Isint the vector the distance between the player position x minus entity position x?(same for y)
  19. Interesting... I will experiment with that...
  20. I'm on a phone and can't see if a post is read or not.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.