Jump to content

Recommended Posts

Posted (edited)

hello ,
i made a new tnt called godtnt, i manage to change the radius of the new tnt ,but not the damage it do (like destroying obsidian block)
i copyed BlockTNT EntitiyTNT and Explosaion to the mod ,and called them godTNT, EnitityTNTPrimedGod,GodExplosion( i changed inside them 2 everytime i saw the vanila name of the class , to the modded name )

GodExplosion had alot of errors so i had to extend it to Explosion ,example: world class useing Explosion objects and not GodExplosion

 

i saw in Explosion the function doExplosionA (),if i did understand ,its making an array of the blocks that going to get destoryed ,and its the only function useing the getExplosionResistance,
i tryed to change the getresistance to 0 , so no matter what block it will always be destoyed , but in the game nothing seems to change,its seems its not even useing GodExplosion class and insted its useing explosion class(even with @override)
 

is there a simple way to do it(without coping world class ,and the entire game lol and start changing each class )

thx

Edited by macshower

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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