This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public boolean interact(EntityPlayer entityplayer) | |
{ | |
if(getSaddled() && !worldObj.multiplayerWorld && (riddenByEntity == null || riddenByEntity == entityplayer)) | |
{ | |
entityplayer.mountEntity(this); | |
entityplayer.motionX = this.motionX; | |
entityplayer.motionY = this.motionY; | |
entityplayer.isJumping = this.isJumping; | |
return true; | |
} else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using Microsoft.Xna.Framework; | |
using Microsoft.Xna.Framework.Audio; | |
using Microsoft.Xna.Framework.Content; | |
using Microsoft.Xna.Framework.GamerServices; | |
using Microsoft.Xna.Framework.Graphics; | |
using Microsoft.Xna.Framework.Input; | |
using Microsoft.Xna.Framework.Media; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void onStruckByLightning(EntityLightningBolt entitylightningbolt) | |
{ | |
setEntityDead(); | |
ModLoader.getMinecraftInstance().thePlayer.triggerAchievement(mod_Family.LightingStrike); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public boolean interact(EntityPlayer entityplayer) | |
{ | |
ItemStack itemstack = entityplayer.inventory.getCurrentItem(); | |
if(!isWife) | |
{ | |
if(itemstack != null && itemstack.itemID == Item.stick.shiftedIndex) | |
{ | |
itemstack.stackSize--; | |
showHeartsOrSmokeFX(true); | |
isWife = true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.minecraft.src; | |
public class Family_iPixelisFemaleModel extends ModelBase | |
{ | |
public ModelRenderer a; | |
public ModelRenderer b; | |
public ModelRenderer c; | |
public ModelRenderer d; | |
public ModelRenderer e; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public boolean interact(EntityPlayer entityplayer) | |
{ | |
ItemStack itemstack = entityplayer.inventory.getCurrentItem(); | |
if(!isChild) | |
{ | |
if(itemstack != null && itemstack.itemID == Item.stick.shiftedIndex) | |
{ | |
itemstack.stackSize--; | |
showHeartsOrSmokeFX(true); | |
isChild = true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.minecraft.src; | |
import java.util.Map; | |
public class mod_Family extends BaseMod | |
{ | |
public String Version() | |
{ | |
return "v1"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.minecraft.src; | |
import java.util.List; | |
public class LMHEntityBase extends EntityMob | |
{ | |
public LMHEntityBase(World world) | |
{ | |
super(world); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Example ModLoader Mod by BlockAfterBlock (for #mcp-modding irc) | |
// Shows adding a block, an item, custom textures, adding a recipe, | |
// adding a smelting recipe, AND ADDING AN ENTITY. | |
package net.minecraft.src; | |
public class mod_ExampleMod extends BaseMod | |
{ | |
//This can be almost anything to my knowledge. I just put version of Minecraft. | |
public String Version() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.minecraft.src; | |
import java.util.List; | |
public class LMHNative1 extends LMHEntityBase | |
{ | |
public LMHNative1(World world) | |
{ | |
super(world); |
NewerOlder