Help with weird lighting bug

Started by iateglue7390 on

Topic category: Help with Minecraft modding (Java Edition)

Active 8 months ago
Joined Sep 2017
Points:
746

User statistics:

  • Modifications: 1
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 9
Help with weird lighting bug

Hey there, I've created a feature for my upcoming magic mod wherein a traveling projectile will place an invisible light block over any air it crosses over, which will replace itself with air after two ticks. this works fine 98% of the time, but for some reason occasionally while using it one of the light blocks will persist and not despawn at all. Anyone come across this issue before?

Active 1 year ago
Joined Sep 2023
Points:
128

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 13
Can you send a SS of…
Sun, 09/10/2023 - 11:58

Can you send a SS of procedure?

Active 8 months ago
Joined Sep 2017
Points:
746

User statistics:

  • Modifications: 1
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 9
Sure! This is the procedure…
Sun, 09/10/2023 - 23:28

Sure! This is the procedure on the projectile that places the light block

And this is the one for it to be replaced by air

I think it may be possible to fix it by force updating the block when it ticks, but i haven't tried that out yet.