Jump to content

Need help rendering a custom projectile


Mystery04

Recommended Posts

Hello,

I want to add a dynamite to minecraft that can be thrown and explode on impact.

I've succesfully created  the item but when it come to the projectile entity i seem to have a problem.

The entity exist, can be summon and explode on impact but i can't see it and furthermore when i tried to add one when you right click with the dynamite item ,it does nothing apart of applying the cooldown.

I've created a Renderer and a class that bind it to my entity but it just does not work

Can someon explain what i'm doing wrong ?

Here's my code Below:

-Dynamite Item class:

https://postimg.cc/62nhHJYK

-Dynamite Entity class:

https://postimg.cc/t7H09X0h

-Dynamite Renderer class:

https://postimg.cc/DmQ9ZtFR

-Binder class:

https://postimg.cc/jnh4bHpk

-Main class:

https://postimg.cc/q6rxSb53

Edited by Mystery04
Spelling mistake
Link to comment
Share on other sites

  • Mystery04 changed the title to Need help rendering a custom projectile

DO NOT post text as images.

DO put ALL the relevant code on github so we can reproduce your problem.

 

As for the little information you posted, you seem to be asking the same old FAQs answered many times before in this forum.

This tells me you did little to no research for yourself. So I will spend about the same amount of time answering it.

If this wasn't your first post, personally I would just have ignored this lazy incomplete question.

 

For your main problem (sided success): https://forums.minecraftforge.net/topic/123627-solved-1182-levelexplode-doesnt-trigger-block-updates-correct-method-to-launch-player/?do=findComment&comment=537138

and you should register your renderer using this event: https://github.com/MinecraftForge/MinecraftForge/blob/c8f9e59fef4c52875601014c9fa18e41be619d0f/src/main/java/net/minecraftforge/client/event/EntityRenderersEvent.java#L93 not FMLClientSetUpEvent

 

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Link to comment
Share on other sites

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.



×
×
  • Create New...

Important Information

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