Started by
sprits2000
on
Topic category: Help with modding (Java Edition)
Okey I have a problem. I would like my entity to burn during the day and not burn at night. The code works halfway, my entity burns and takes flame damage during the day but at night it also burns but takes no damage (it's just the texture of the flames).
Edited by sprits2000 on Sat, 03/23/2024 - 14:08
Picture code
https://1drv.ms/i/s!Aq6mSRcVQGujgYZbYyoQ5bwBatT7vw
I have run into this myself in the past, and I found a solution.
You need to put the entire procedure in an "if" block, then attach a "not" block, then "is provided world client-side" That fixes a lot of visual glitches, including 'ghost' fire, 'ghost' blocks, and 'ghost' potion effects, so you can use this same method if you run into any of those other problems.
Thank you very much for your reply.
The problem persists, could you tell me if the changes made to my code follow your advice?
Is there anything left to modify?
Code image 2 : https://1drv.ms/i/s!Aq6mSRcVQGujgYZck6a8HEUMIt0VsA?e=u4CvFH
I've got the solution