Jump to content

Recommended Posts

Posted

Hello I made an entity and theres one problem with it.Whenever I pause the game or I go about 5 or so blocks away it disappears.

Here's my code. And yes I did register my entity.

 

public class EntityGoldMine extends EntityLiving{
public int level;
public int effeciancy;
public int capacity;
public int full;
public int tick;
public boolean isUpgrading;
public String playersName;
public String name;

public EntityGoldMine(World p_i1582_1_) {
	super(p_i1582_1_);

}
  
public void entityInit(){
	this.effeciancy=1;
	this.level=1;
	this.capacity=500;
	this.full=0;
	this.tick=0;
	this.isUpgrading=false;
	super.entityInit();

}
protected void applyEntityAttributes()
    {
        super.applyEntityAttributes();
        this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(30.0D);
        
    }
public boolean canDespawn(){
	return false;
}
  public void writeEntityToNBT(NBTTagCompound tag)
    {
	super.writeEntityToNBT(tag);
	tag.setInteger("Level", this.level);
	tag.setInteger("Effeciany", this.effeciancy);
	tag.setInteger("Capacity", this.capacity);
	tag.setInteger("Full",this.full);
	tag.setString("Owner", this.name);
    }
public void readEntityFromNBT(NBTTagCompound tag) {
	super.readEntityFromNBT(tag);
	this.level=tag.getInteger("Level");
	this.effeciancy=tag.getInteger("Effeciany");
	this.capacity=tag.getInteger("Capacity");
	this.full=tag.getInteger("Full");
	this.name=tag.getString("Owner");
}

public void onEntityUpdate(){
	System.out.println(this.full);
	switch(level){
		case 1:this.capacity=500;
		this.effeciancy=1;
		break;

		case 2:this.capacity=1000;
		this.effeciancy=3;
	}
	if(this.full<this.capacity){
		if(this.isUpgrading==false){
			tick++;
		}
		if(tick==20){
			this.full++;
			this.tick=0;
		}
	}

}
public void collect(EntityPlayer player){
	if(this.isUpgrading==false){
		 if(player.worldObj.isRemote==true){
			 player.inventory.addItemStackToInventory(new ItemStack(Items.gold_ingot,this.full));
		 }
		 this.full=0;

	 }
}
 protected boolean interact(EntityPlayer player)
 {
	 collect(player);
     return true;
 }
 public boolean attackEntityFrom(DamageSource p_70097_1_, float damage){

	 if(p_70097_1_.getEntity()!= null && p_70097_1_.getEntity() instanceof EntityPlayer){
		 EntityPlayer player=(EntityPlayer) p_70097_1_.getEntity();
		 System.out.println(this.name);
		 if(player.getGameProfile().getId().toString()==name){
			 this.heal(30.0F);
		 }
		 else{
			 if(this.full!=0 && this.full>damage*6 && damage!=2){

				 if(p_70097_1_.getEntity().worldObj.isRemote==true){
					 player.inventory.addItemStackToInventory(new ItemStack(Items.gold_ingot,(int) (damage*6)));
				}

				this.full=(int) (this.full-damage*6);
			 }else if(this.full>= 10 && this.full<damage*6){
				 int num=this.full-this.full/3;
				 int num2=(int) (num/damage);
				 if(p_70097_1_.getEntity().worldObj.isRemote==true){
					 player.inventory.addItemStackToInventory(new ItemStack(Items.gold_ingot,num2));
				}
			 }

		 }
	}
	 return true;

}








}

I'm back from being gone for... I think its been about a year. I'm pretty sure nobody remembers me, but hello anybody who does!

Posted

Show your renderer.

Here it is.

public class RenderGoldMine extends RendererLivingEntity{
    

    public static int lvl;
public RenderGoldMine(ModelBase modelMine)
    {
        super(modelMine, 0);
        
        //this.lvl=lvl;
        
    }


    private static final ResourceLocation Your_Texture = new ResourceLocation("rotten_flesh_mod:textures/entity/tamedZombie_"+lvl+".png");  //refers to:assets/yourmod/textures/entity/yourtexture.png


    @Override
    protected ResourceLocation getEntityTexture(Entity par1Entity)
    {
    	
    	return Your_Texture;
    }


}

I'm back from being gone for... I think its been about a year. I'm pretty sure nobody remembers me, but hello anybody who does!

Posted

Sounds like a renderer, nbt, server-client stuff, or onUpdate troubles. I'd spam printlns everywhere for every related variable to see if you can root out troubles. Could we also see your spawning code?

Posted

Ok, that is not the problem. Put a println statement in the onUpdate method of your Entity. Does it keep printing when you leave the area? Also are there any errors in the console?

 

Sounds like a renderer, nbt, server-client stuff, or onUpdate troubles. I'd spam printlns everywhere for every related variable to see if you can root out troubles. Could we also see your spawning code?

 

Well, I cant do anything without figuring out this stupid error which I have spent almost two nights to FIGURE OUT!!!!!!!angry.gifangry.gif

My extended player thing is giving me a null pointer whenever I try to load it.

 

public class ExtendedPlayer implements IExtendedEntityProperties {

public final static String EXT_PROP_NAME = "ExtendedPlayer";
private final EntityPlayer player;
private int gold;
private int elixer;
private int gold_storage;
private int elixer_storage;

public ExtendedPlayer(EntityPlayer player)
{
this.player = player;
this.elixer=0;
this.gold=0;
this.gold_storage=0;
this.elixer_storage=0;
}
@Override
public void init(Entity entity, World world) {
	this.elixer=0;
	this.gold=0;
	this.gold_storage=0;
	this.elixer_storage=0;
}
@Override
public void saveNBTData(NBTTagCompound properties) {
	NBTTagCompound compound = new NBTTagCompound(); 
	compound.setInteger("Elixer",10);
	///compound.setInteger("Gold", this.gold);
	//compound.setInteger("Gold_Storage", this.gold_storage);
	//compound.setInteger("Elixer_Storage", this.elixer_storage);


	compound.setTag(EXT_PROP_NAME, compound);
}

@Override
public void loadNBTData(NBTTagCompound properties) {
	NBTTagCompound compound = (NBTTagCompound) properties.getTag(EXT_PROP_NAME);
	//this.gold=compound.getInteger("Gold");
	this.elixer=compound.getInteger("Elixer");

	//this.gold_storage=compound.getInteger("Gold_Storage");
	//	this.elixer_storage=compound.getInteger("Elixer_Storage");
}
public static final void register(EntityPlayer player)
{
player.registerExtendedProperties(ExtendedPlayer.EXT_PROP_NAME, new ExtendedPlayer(player));
}
public static final ExtendedPlayer get(EntityPlayer player)
{
return (ExtendedPlayer) player.getExtendedProperties(EXT_PROP_NAME);
}



public void changeResources(int id,int change){
	if (id==0){
		this.elixer=change;
	}
	if(id==1){
		this.gold=change;
	}
}
public void changeStorage(int id,int change){
	if (id==0){
		this.elixer_storage=change;
	}
	if(id==1){
		this.gold_storage=change;
	}
}
public int getResources(int id){
	int resource = 0;
	if (id==0){
		resource=this.elixer;
	}
	if(id==1){
		resource=this.gold;
	}
	return resource;
}
private static final String getSaveKey(EntityPlayer player) {
	// no longer a username field, so use the command sender name instead:
	return player.getCommandSenderName() + ":" + EXT_PROP_NAME;
}
public static void saveProxyData(EntityPlayer player) {
	ExtendedPlayer playerData = ExtendedPlayer.get(player);
	NBTTagCompound savedData = new NBTTagCompound();

	playerData.saveNBTData(savedData);
	// Note that we made the CommonProxy method storeEntityData static,
	// so now we don't need an instance of CommonProxy to use it! Great!
	CommonProxyCoc.storeEntityData(getSaveKey(player), savedData);
}

	/**
	* This cleans up the onEntityJoinWorld event by replacing most of the code
	* with a single line: ExtendedPlayer.loadProxyData((EntityPlayer) event.entity));
	*/
	public static void loadProxyData(EntityPlayer player) {
	ExtendedPlayer playerData = ExtendedPlayer.get(player);
	NBTTagCompound savedData = CommonProxyCoc.getEntityData(getSaveKey(player));

	if(savedData != null) {
	playerData.loadNBTData(savedData);
	}

	ClashOfCraft.packetPipeline.sendTo(new SyncPlayerPropsPacket(player), (EntityPlayerMP) player);
}

}

 

Error from eclipse console

[00:28:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: java.lang.NullPointerException
[00:28:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at coc.handlers.ExtendedPlayer.loadNBTData(ExtendedPlayer.java:53)
[00:28:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at net.minecraft.entity.Entity.readFromNBT(Entity.java:1616)
[00:28:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at net.minecraft.server.management.ServerConfigurationManager.readPlayerDataFromFile(ServerConfigurationManager.java:271)
[00:28:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at net.minecraft.server.management.ServerConfigurationManager.initializeConnectionToPlayer(ServerConfigurationManager.java:123)
[00:28:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at cpw.mods.fml.common.network.handshake.NetworkDispatcher.completeServerSideConnection(NetworkDispatcher.java:173)
[00:28:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at cpw.mods.fml.common.network.handshake.NetworkDispatcher.completeHandshake(NetworkDispatcher.java:446)
[00:28:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at cpw.mods.fml.common.network.internal.HandshakeCompletionHandler.channelRead0(HandshakeCompletionHandler.java:17)
[00:28:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at cpw.mods.fml.common.network.internal.HandshakeCompletionHandler.channelRead0(HandshakeCompletionHandler.java:11)
[00:28:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98)
[00:28:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337)
[00:28:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323)
[00:28:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
[00:28:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111)
[00:28:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337)
[00:28:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323)
[00:28:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785)
[00:28:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169)
[00:28:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at cpw.mods.fml.common.network.internal.FMLProxyPacket.processPacket(FMLProxyPacket.java:86)
[00:28:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241)
[00:28:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182)
[00:28:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726)
[00:28:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614)
[00:28:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)
[00:28:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485)
[00:28:16] [server thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: 	at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)
[00:28:16] [server thread/INFO]: Player750[local:E:7632cf2c] logged in with entity id 469 at (89.69999998807907, 65.67482498052121, 263.2098831423323)
[00:28:16] [server thread/INFO]: Player750 joined the game
[00:28:18] [Client thread/ERROR] [FML]: There was a critical exception handling a packet on channel Send
io.netty.handler.codec.DecoderException: java.lang.NullPointerException
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:99) ~[MessageToMessageDecoder.class:?]
at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) ~[MessageToMessageCodec.class:?]
at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) ~[DefaultChannelHandlerContext.class:?]
at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) ~[DefaultChannelHandlerContext.class:?]
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) ~[DefaultChannelPipeline.class:?]
at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) ~[EmbeddedChannel.class:?]
at cpw.mods.fml.common.network.internal.FMLProxyPacket.processPacket(FMLProxyPacket.java:86) [FMLProxyPacket.class:?]
at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241) [NetworkManager.class:?]
at net.minecraft.client.Minecraft.runTick(Minecraft.java:2141) [Minecraft.class:?]
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1028) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:951) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_45]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_45]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_45]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78) [start/:?]
at GradleStart.main(GradleStart.java:45) [start/:?]
Caused by: java.lang.NullPointerException
at coc.handlers.ExtendedPlayer.loadNBTData(ExtendedPlayer.java:53) ~[ExtendedPlayer.class:?]
at coc.packet.SyncPlayerPropsPacket.handleClientSide(SyncPlayerPropsPacket.java:32) ~[syncPlayerPropsPacket.class:?]
at coc.packet.PacketPipeLine.decode(PacketPipeLine.java:82) ~[PacketPipeLine.class:?]
at coc.packet.PacketPipeLine.decode(PacketPipeLine.java:1) ~[PacketPipeLine.class:?]
at io.netty.handler.codec.MessageToMessageCodec$2.decode(MessageToMessageCodec.java:81) ~[MessageToMessageCodec$2.class:?]
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:89) ~[MessageToMessageDecoder.class:?]
... 19 more

I'm back from being gone for... I think its been about a year. I'm pretty sure nobody remembers me, but hello anybody who does!

Posted

NBTTagCompound#getTag does not create a new tag if there is none present. Use getCompoundTag instead.

THANK YOU!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!cheesy.gifcheesy.gifcheesy.gifcheesy.gif

 

Also, I put the super.onEntityUpdate and nothing changed.

 

I'm back from being gone for... I think its been about a year. I'm pretty sure nobody remembers me, but hello anybody who does!

Posted

Spawning Code:

 

public boolean onItemUseFirst(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ)
 {
	EntityGoldMine mine=new EntityGoldMine(world);
	mine.posX=x;
	mine.posY=y;
	mine.posZ=z;
	mine.name=player.getGameProfile().getId().toString();
	System.out.println(mine.name);
	if(world.isRemote==false){
		world.spawnEntityInWorld(mine);
	}
	return false;
 }

I'm back from being gone for... I think its been about a year. I'm pretty sure nobody remembers me, but hello anybody who does!

Posted

Ok, that is not the problem. Put a println statement in the onUpdate method of your Entity. Does it keep printing when you leave the area? Also are there any errors in the console?

No it does not keep on printing when I leave the area. And there are no errors.

I'm back from being gone for... I think its been about a year. I'm pretty sure nobody remembers me, but hello anybody who does!

Posted

Don't set the position directly. Look at ItemMonsterPlacer to see how to set the position for an entity.

I will try that.

I'm back from being gone for... I think its been about a year. I'm pretty sure nobody remembers me, but hello anybody who does!

Posted

Don't set the position directly. Look at ItemMonsterPlacer to see how to set the position for an entity.

I will try that.

You are awesome! It worked! Only thing is that it rotates around. Can I stop this in any way?

Also, how can my GUI interact with my entity. Since player.openGui only asks for a id, how would my gui do this?

Thank you again.

I'm back from being gone for... I think its been about a year. I'm pretty sure nobody remembers me, but hello anybody who does!

Posted

Rotates around? The method used in the spawn eggs specifies the rotation, you just have to specify the one you want.

openGui takes an ID and 3 numbers (named x, y, z). These numbers are typically used for coordinates (when opening a TileEntity Gui) but you can use them for whatever you want. In case of an entity use Entity#entityId. Then you can get the Entity back in the GuiHandler with World#getEntityById.

1.I said 0 and it just moves around randomly.

2.Wait so each entity that gets spawned has a unique Entity Id than all other entities of that same class?

 

I'm back from being gone for... I think its been about a year. I'm pretty sure nobody remembers me, but hello anybody who does!

Posted

1. Show your code and define "moves randomly"

2. Yes. But that ID is only valid as long as the entity is loaded. As soon as it unloads on the server (chunk unloads) that ID changes.

1.

Heres my code. And I mean how a zombie just moves his head to look around, the whole thing moves around sometimes.

public class EntityGoldMine extends EntityLiving{
public int level;
public int effeciancy;
public int capacity;
public int full;
public int tick;
public boolean isUpgrading;

public String name;

public EntityGoldMine(World p_i1582_1_) {
	super(p_i1582_1_);

}
public void setOwnerName(String par1){
	this.name=par1;
}
  
public void entityInit(){
	this.effeciancy=1;
	this.level=1;
	this.capacity=500;
	this.full=0;
	this.tick=0;
	this.isUpgrading=false;
	super.entityInit();

}
protected void applyEntityAttributes()
    {
        super.applyEntityAttributes();
        this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(30.0D);
        
    }
public boolean canDespawn(){
	return false;
}
  public void writeEntityToNBT(NBTTagCompound tag)
    {
	super.writeEntityToNBT(tag);

	tag.setInteger("Level", this.level);
	tag.setInteger("Effeciany", this.effeciancy);
	tag.setInteger("Capacity", this.capacity);
	tag.setInteger("Full",this.full);
	tag.setString("Owner", this.name);

    }
public void readEntityFromNBT(NBTTagCompound tag) {
	super.readEntityFromNBT(tag);
	this.level=tag.getInteger("Level");
	this.effeciancy=tag.getInteger("Effeciany");
	this.capacity=tag.getInteger("Capacity");
	this.full=tag.getInteger("Full");
	this.name=tag.getString("Owner");
}

public void onEntityUpdate(){
	System.out.println(this.full);
	switch(level){
		case 1:this.capacity=500;
		this.effeciancy=1;
		break;

		case 2:this.capacity=1000;
		this.effeciancy=3;
	}
	if(this.full<this.capacity){
		if(this.isUpgrading==false){
			tick++;
		}
		if(tick==20){
			this.full++;
			this.tick=0;
		}
	}

	super.onEntityUpdate();
}
public void collect(EntityPlayer par1){
	EntityPlayer player=par1;
	if(this.isUpgrading==false){
		 if(player.worldObj.isRemote==true){
			 player.inventory.addItemStackToInventory(new ItemStack(Items.gold_ingot,this.full));
		 }
		 this.full=0;

	 }
}
 protected boolean interact(EntityPlayer player)
 {	

	 player.openGui(ClashOfCraft.instance, 20, player.worldObj, (int)player.posX, (int)player.posY,(int) player.posZ);



     return true;
 }
 public boolean attackEntityFrom(DamageSource p_70097_1_, float damage){
	if(p_70097_1_.getEntity().worldObj.isRemote==false){
	 if(p_70097_1_.getEntity()!= null && p_70097_1_.getEntity() instanceof EntityPlayer){
		 EntityPlayer player=(EntityPlayer) p_70097_1_.getEntity();


		 if(player.getGameProfile().getId().toString()==name){
			 this.heal(30.0F);

		 }
		 else{
			 if(this.full!=0 && this.full>damage*6 && damage!=2){

				 if(p_70097_1_.getEntity().worldObj.isRemote==true){
					 player.inventory.addItemStackToInventory(new ItemStack(Items.gold_ingot,(int) (damage*6)));
				 }

				this.full=(int) (this.full-damage*6);

			 }else if(this.full>= 10 && this.full<damage*6){
				 int num=this.full-this.full/3;
				 int num2=(int) (num/damage);
				 this.full=num2;
				 if(p_70097_1_.getEntity().worldObj.isRemote==true){
					 player.inventory.addItemStackToInventory(new ItemStack(Items.gold_ingot,num2));
				}
			 }

		 }
	 }
	}
	 return true;

}








}

2. But the player is not going to move with a gui so that shouldn't matter, right?

I'm back from being gone for... I think its been about a year. I'm pretty sure nobody remembers me, but hello anybody who does!

Posted

1. So you mean after the Entity is spawned? Show your Entity registration.

2. True.

1. Yes I mean after the entity gets spawned.

EntityRegistry.registerModEntity(EntityGoldMine.class, "EntityGoldMine", 0 ,instance,64, 1, true);

That is in my  preInit.

2. Thats good.

I'm back from being gone for... I think its been about a year. I'm pretty sure nobody remembers me, but hello anybody who does!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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