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.

ralphyrafa

Members
  • Joined

  • Last visited

Everything posted by ralphyrafa

  1. about the path i finally got it to atleast tell me that the texture localization is wrong where should i put them and yes the pixie does appear and since there is no texture it appears pink
  2. and what about if its a mob texture where does it go ?
  3. my mob is on the game because i can hear him and i can even hit him but its invisible i just need to know where the texture goes and if im missing a code can i know here is the entity of my mob i think you dont need more [embed=425,349]package medieval.medievalentities; import net.minecraft.entity.EnumCreatureAttribute; import net.minecraft.entity.monster.EntityMob; import net.minecraft.world.World; public class Pixie_Entity extends EntityMob { private float moveSpeed; private String texture; public Pixie_Entity(World par1World) { super(par1World); this.moveSpeed = 0.5F; this.texture = "medieval:pixietexture"; } public int getMaxHealth() { return 10; } public EnumCreatureAttribute getCreatureAttribute() { return EnumCreatureAttribute.UNDEFINED; } /** * Returns the sound this mob makes while it's alive. */ protected String getLivingSound() { return "mob.zombiepig.zpig"; } /** * Returns the sound this mob makes when it is hurt. */ protected String getHurtSound() { return "mob.zombie.hurt"; } /** * Returns the sound this mob makes on death. */ protected String getDeathSound() { return "mob.zombie.death"; } } [/embed] PS: yes i made the model and render dont ask if i made them cause they are
  4. gaaahhh im getting reallly mad cause ive been trying to fix the entity and the sound that the item makes when rightclicked everything works exept then firebolt it doesnt appear and everything is called and no sound is playing, i can see when the firebolt crashes since it explodes. the sound file is in assets/modid/sound here is item wand that throws firebolt package medieval; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.enchantment.Enchantment; import net.minecraft.enchantment.EnchantmentHelper; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.projectile.EntityArrow; import net.minecraft.entity.projectile.EntitySnowball; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.world.World; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.event.entity.player.ArrowLooseEvent; public class Fire_Wand extends medievalitemsword { public Fire_Wand(int ItemID, medievalweaponproperties material) { super(ItemID, material); } @Override public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2WorldObject,EntityPlayer par3EntityPlayer) { if(par3EntityPlayer.capabilities.isCreativeMode||par3EntityPlayer.inventory.consumeInventoryItem(Item.redstone.itemID)) { par2WorldObject.playSoundAtEntity(par3EntityPlayer, "medieval:fireball1", 2.0F, 0.4F / (itemRand.nextFloat() * 0.4F + 0.8F)); if (!par2WorldObject.isRemote) { par2WorldObject.spawnEntityInWorld(new medievalfirebolt(par2WorldObject, par3EntityPlayer)); } } return par1ItemStack; } public void registerIcons(IconRegister reg) { this.itemIcon = reg.registerIcon("medieval:firewand"); } public boolean hasEffect(ItemStack par1ItemStack) { return true; } } here is firebolt entity package medieval; import cpw.mods.fml.client.registry.RenderingRegistry; import cpw.mods.fml.common.registry.GameRegistry; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import medieval.blocks.ores.BlockSapphireOre; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLiving; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.projectile.EntityThrowable; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.util.Icon; import net.minecraft.util.MovingObjectPosition; import net.minecraft.world.World; public class medievalfirebolt extends EntityThrowable { private static final float explosionRadius = 1.0F; private static final double speed = 1; public medievalfirebolt(World par1World) { super(par1World); } public medievalfirebolt(World par1World, EntityPlayer par3EntityPlayer) { super(par1World, par3EntityPlayer); } public medievalfirebolt(World par1World, double par2, double par4, double par6) { super(par1World, par2, par4, par6); } @Override protected void onImpact(MovingObjectPosition movingobjectposition) { this.worldObj.createExplosion(this, this.posX, this.posY, this.posZ, (float)this.explosionRadius, true); this.setDead(); } @Override protected float getGravityVelocity() { return 0; } { this.motionX*=speed; this.motionY*=speed; this.motionZ*=speed; } } here is the sound of firebolt package medieval; import net.minecraftforge.client.event.sound.SoundEvent; import net.minecraftforge.client.event.sound.SoundLoadEvent; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.event.ForgeSubscribe; public class fireballsound { @ForgeSubscribe public void onSound(SoundLoadEvent event) { event.manager.addSound("medieval:fireball1.wav"); } } and here is the firebolt render package medieval; import net.minecraft.client.renderer.EntityRenderer; import net.minecraft.client.renderer.Tessellator; import net.minecraft.client.renderer.entity.Render; import net.minecraft.client.resources.ResourceLocation; import net.minecraft.entity.Entity; import org.lwjgl.opengl.GL11; public class Fireboltrender extends Render { public Fireboltrender() { } @Override public void doRender(Entity entity, double d, double d1, double d2, float yaw, float partialTicks) { GL11.glPushMatrix(); GL11.glTranslatef((float)d, (float)d1, (float)d2); GL11.glEnable(32826); GL11.glScalef(0.5F, 0.5F, 0.5F); loadTexture("/textures/items/fireball.png"); Tessellator tessellator = Tessellator.instance; float f2 = (float)((field_20003_a % 16) * 16 + 0) / 16F; float f3 = (float)((field_20003_a % 16) * 16 + 16) / 16F; float f4 = (float)((field_20003_a / 16) * 16 + 0) / 16F; float f5 = (float)((field_20003_a / 16) * 16 + 16) / 16F; float f6 = 1.0F; float f7 = 0.5F; float f8 = 0.25F; tessellator.startDrawingQuads(); tessellator.setNormal(0.0F, 1.0F, 0.0F); tessellator.addVertexWithUV(0.0F - f7, 0.0F - f8, 0.0D, f2, f5); tessellator.addVertexWithUV(f6 - f7, 0.0F - f8, 0.0D, f3, f5); tessellator.addVertexWithUV(f6 - f7, 1.0F - f8, 0.0D, f3, f4); tessellator.addVertexWithUV(0.0F - f7, 1.0F - f8, 0.0D, f2, f4); tessellator.draw(); GL11.glDisable(32826); GL11.glPopMatrix(); } private void loadTexture(String string) { } int i; private int field_20003_a = i; @Override protected ResourceLocation func_110775_a(Entity entity) { return null; } } and if needed here is the firebolt item package medieval.items.etc; import java.util.Random; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.item.Item; import medieval.Medieval; public class Firebolt extends Item { public Firebolt(int i) { super(i); this.setCreativeTab(Medieval.medievaltab); maxStackSize = 64; } public void registerIcons(IconRegister reg) { this.itemIcon = reg.registerIcon("medieval:fireball"); } public String Version() { return "1.6.2"; } } i just want to finish

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.