Jump to content

Replaying Lived Entities


BoredPerson

Recommended Posts

I am attempting to create a mod which allow me to record entities such as tnt and sand, then allow me to replay the event. I have managed to do the recording part however I am not sure how I would go about the replaying part as I cannot manage to render fake entities. I thought I could do it with a the implementation of IRenderFactory, however I think that only works with real living entities. 

Link to comment
Share on other sites

2 hours ago, BoredPerson said:

I think an easier explanation is that I want to render ghost entities

Ok use the RenderTickEvent to render the entities. Use Minecraft#getRenderManager() then call EntityRenderManager#renderEntity

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

18 minutes ago, Animefan8888 said:

Ok use the RenderTickEvent to render the entities. Use Minecraft#getRenderManager() then call EntityRenderManager#renderEntity

I have already tried this to no success;

public void renderent(EntityTNTPrimed a) {
    rendermanager.doRenderEntity(a, -2000, 10, 20, 0, (float) 0.1, false);
    }

I have fixed coordinates, yaw and partial ticks for testing purposes I.E so I can find it in game however this did not work

Link to comment
Share on other sites

1 minute ago, BoredPerson said:

I have already tried this to no success;

Post all of the related code.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

5 minutes ago, Animefan8888 said:

Post all of the related code.

Spoiler

public class renderingtickevent {

    Minecraft mc = Minecraft.getMinecraft();
    RenderManager rendermanager = mc.getRenderManager();

    @SubscribeEvent
    public void onrenderupdate(RenderTickEvent event) {
    
    if (mc.theWorld != null && config.config.ShowAmountOfTNTbeingMinimalized == true) {
        FontRenderer fr = mc.fontRendererObj;
        fr.drawStringWithShadow("Amount of tnt being minimalized = " + rendertnt.duplications.size(), 0, 0, -1);
    }
    if (Recorder.AllowRecording == true) {
        FontRenderer fr = mc.fontRendererObj;
        fr.drawStringWithShadow("Recording TNT AND FALLINGBLOCKS", 0, 20, -1);
    }
    if (playback.AllowPlayBack == true) {
        FontRenderer fr = mc.fontRendererObj;
        fr.drawStringWithShadow("Playing back footage gt = " + playback.playbackgt, 0, 20, -1);
    }
    if(mc.theWorld != null) {
    EntityTNTPrimed tempent = new EntityTNTPrimed(mc.theWorld);
    renderent(tempent);
    
    }
    }

    public void renderent(EntityTNTPrimed a) {
    rendermanager.doRenderEntity(a, -2000, 10, 200, 0, (float) 0.1, false);
    System.out.println("test2");
    }
}

Spoiler

FMLCommonHandler.instance().bus().register(new renderingtickevent());

Perhaps it is the yaw or the partialticks

Link to comment
Share on other sites

3 minutes ago, BoredPerson said:

FMLCommonHandler.instance().bus().register(new renderingtickevent());

What Minecraft version are you using?

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

I am using 1.8.9 and understand if you do not feel like helping however do not lock this thread as I plan on posting the answer to this question if I figure it out. Therefore if anyone with a similar problem doesn't have to repeat this process.

 

Yes 1.8.9 is still very relevant if you are wondering.

Link to comment
Share on other sites

2 minutes ago, BoredPerson said:

Yes 1.8.9 is still very relevant if you are wondering.

Not to us.

 

2 minutes ago, BoredPerson said:

I am using 1.8.9 and understand if you do not feel like helping however do not lock this thread as I plan on posting the answer to this question if I figure it out.

I don't have the power to lock threads and I don't have the power to stop the people that do have the power to lock it. They will lock it. I don't remember much about 1.8.9 in enough substance to help you.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

  • Guest locked this topic
Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Make a test without chameleon or storagedrawers
    • In August, during one of the most challenging periods of my life, I was introduced to REMOTE CYBAR RECOVERY by Mr. Johnny. I had recently experienced a devastating loss involving $760,000 worth of Bitcoin. This significant amount of money had been acquired by selling my shares, and I had invested it in Bitcoin, only to have it stolen. Each day felt like a battle as I faced the overwhelming possibility of losing everything I had worked so hard to accumulate. It was an emotional and financial crisis that left me feeling hopeless and desperate, Mr.. Johnny, who had faced a similar situation himself, shared his experience with me. he had also lost access to his digital wallet and had turned to REMOTE CYBAR RECOVERY for assistance. To his relief, they were able to help him recover the wallet password and regain access to his funds. Hearing her positive account of their service provided me with a glimmer of hope, and I decided to reach out to REMOTE CYBAR RECOVERY. From the moment I made contact with them, I knew I had made the right decision. Their response was prompt and professional, which immediately put my mind at ease. The team demonstrated exceptional expertise and dedication throughout the process. They worked tirelessly to address my concerns and meticulously followed up on every detail related to my case. In less than 4 days, a period that felt both incredibly short and incredibly long due to the stress I was under, my funds were fully deposited back into my account. The speed and efficiency with which REMOTE CYBAR RECOVERY handled my case were nothing short of remarkable. Their success in recovering my stolen funds was a relief beyond words and significantly alleviated the financial and emotional strain I had been enduring. The expertise and professionalism exhibited by REMOTE CYBAR RECOVERY. were beyond measure. They provided not only a solution to a complex problem but also restored my confidence in the possibility of recovering from such a dire situation. Their service was a beacon of hope during one of the darkest times in my life, and I am deeply grateful I cannot recommend REMOTE CYBAR RECOVERY highly enough. Their knowledge, responsiveness, and effectiveness in handling cases of this nature are truly commendable. If you ever face a situation where you have lost access to your digital assets or find yourself in need of recovery services, REMOTE CYBAR RECOVERY is a resource you should definitely consider. Their support can make a world of difference, as it did for me. EMAIL S U P P O R T @ R E M O T E C Y B A R R E C O V E R Y . C O M WHATS/APP + 1 7 2 5 2 2 4 2 5 9 7 WEBSITE https:// remote cybarrecovery . com/
    • That might be saved in the NBT of the villager? I'm not sure.
    • That would work too, I guess.
  • Topics

×
×
  • Create New...

Important Information

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