elbaslito
Members-
Posts
3 -
Joined
-
Last visited
Converted
-
Gender
Undisclosed
-
Personal Text
I am new!
elbaslito's Achievements
Tree Puncher (2/8)
0
Reputation
-
So during modding, I came across a problem, whereby I wanted a block to change if its struck by lightning. However, due to Forge not having an event for Blocks Struck by lightning I am not able to do so. Forge only contains an EntityStruckByLightning Event. So can you please add an event for BlockStruckByLightning? It would be really Beneficial for my mod and maybe many other mods Thanks in advance
-
Do something if item/items are struck by lightning
elbaslito replied to elbaslito's topic in Modder Support
Alright, Thanks!!! I will try the subscribe to event thing, its a really good way to handle this (pun not intended). But what if I want it if the block is struck by lightning. The problem here is that there is no BlockStruckByLightning Event, only EntityStruckByLightning. So what do I do in this case? -
Hi, So I am facing some trouble, whereby if item x is struck by lightning the item transforms into another. Basically the item is destroyed and the other item to be transformed into takes its place. I also want to do this with two items, say item a and item b are together and if they are struck by lightning (they are in the same position) they transform into another item. I have managed to do this with blocks, but only through the means of a rod, whereby on right click it summons lightning and through that code it checks if the block struck at the position is what I want it then it transforms it. But I want the block or item itself to check if it has been struck by lightning then transform. That way any lightning bolt from any source can transform it. Thanks for your support