Thanks to you replies. I am amazed by your so fast response speed. Now it works !!
Posts by xsun
-
-
Hello guys.
For some reason, I don't want the 1.12.2 IC2 E-net explosion to break other blocks. I want to keep the damage on entities and the break of the origin machine. I used Sponge plugin to filter event and prevent block break, but although the blocks are not broke, it still dropped items! Then I want to solve this problem by using forge mod and IC2 API. I found the ic2.api.tile.ExplosionWhitelist, which said
QuoteBlocks on this whitelist will not resist an explosion but won't be destroyed.
So I added almost all blocks to the whitelist, but it not worked. I wondered whether I misunderstood the meaning of this API. In my view, if a block is in the ExplosionWhitelist, it will not be broke by any type of IC2 explosion, include E-net explosion.
I am terribly sorry for my poor English, but I really need your help. Thanks a lot.
-
Hello guys, for some reason, I don't want the 1.12.2 IC2 E-net explosion to break other blocks. I want to keep the damage on entities and the break of the origin machine. I used Sponge plugin to filter event and prevent block break, but although the blocks are not broke, it still dropped items! Then I want to solve this problem by using forge mod and IC2 API. I found the ic2.api.tile.ExplosionWhitelist, which said
QuoteBlocks on this whitelist will not resist an explosion but won't be destroyed.
So I added almost all blocks to the whitelist, but it not worked. I wondered whether I misunderstood the meaning of this API. In my view, if a block is in the ExplosionWhitelist, it will not be broke by any type of IC2 explosion, include E-net explosion.
When I was debugging the game, I found this code in IC2 (source code decompiled automatically by Intellij IDEA):
Java: ic2.core.ExplosionIC2.java
Display Moreif (absorption > 1000.0D && !ExplosionWhitelist.isBlockWhitelisted(block)) { absorption = 0.5D; } else { if (absorption > power1) { break; } if (block == Blocks.STONE || block != Blocks.AIR && !block.isAir(state, this.worldObj, tmpPos)) { this.destroyUnchecked(blockX, blockY, blockZ, power1 > 8.0D); } }
I think in the else branch, there should be a check of the whitelist. And in the first line, I cannot understand the meaning very well.
I am terribly sorry for my poor English, but I really need your help. Thanks a lot.
-
I found the zh_CN.lang in the IC2 for minecraft 1.9+ is incorrecti,so I fixed it in two days.
It is useful for mc 1.9 and 1.10.
Translation can not be completely accurate,please report the mistakes to me.Thanks.
Enjoy it!