Jump to content

Recommended Posts

Posted (edited)

Good Morning,

 

After messing about with AbstractArrowEntity and all it's associated delights I decided to turn to ThrowableEntity's "shoot" function the laser gun in my mod. I've fixed all errors raised in the crash report and the result is that the gun does not fire at all, in fact the entity cannot even be summoned, I've been staring at this for 2 day's now with no luck and I feel like I'm missing something really obvious, if anyone spots anything wrong with com.kybercraft.nrm.entities.LaserBoltEntity, please let me know :)

 

https://github.com/CyDoesHybrid/NewRepublicModAlpha

 

Thanks

Cyanideee

Edited by Cyanideee
Posted
1 minute ago, poopoodice said:

What makes you think it doesn't work? Is it not being rendered, or if it's like you've said that it can't even be summoned, what did the log printed out?

The log doesn't mention any errors at all. I don't think it works because I'm about 70% sure I registered the renderer correctly but if I'm wrong that would be embarrassing xD

Posted

Override createSpawnPacket and return NetworkHooks.createEntityPacket or something to notify the client.

What I mean by ”is it not being rendered” is I want you to check if the entity does exist but just not being rendered on client.

Posted
2 hours ago, poopoodice said:

Override createSpawnPacket and return NetworkHooks.createEntityPacket or something to notify the client.

What I mean by ”is it not being rendered” is I want you to check if the entity does exist but just not being rendered on client.

I can confirm that the entity does exist in game, it appears in the summon menu but upon running the command, nothing happens. I've also done what you suggest (Overriding createSpawnPacket ext.)

Posted

First of all you have to do as dice suggested, and add this to your LaserBoltEntity:

 

    @Override
	public IPacket<?> createSpawnPacket() {
		return NetworkHooks.getEntitySpawningPacket(this);
	}

 

Second, it seems like your renderer does nothing. You could look at for example ShulkerBulletRenderer to see how you could render your model.

Posted
5 hours ago, vemerion said:

First of all you have to do as dice suggested, and add this to your LaserBoltEntity:

 


    @Override
	public IPacket<?> createSpawnPacket() {
		return NetworkHooks.getEntitySpawningPacket(this);
	}

 

Second, it seems like your renderer does nothing. You could look at for example ShulkerBulletRenderer to see how you could render your model.

Sorry I forgot to push the updated version but I entered that as suggested yesterday, as for the render, I'll defo look into it, thanks :)

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.