Jump to content

Recommended Posts

Posted

If you want to manipulate vanilla blocks you have two ways - replace vanilla and write whatever you want, or use Events.

 

To change hardness of block you can use PlayerEvent.BreakSpeed, but that will be only for players, not e.g explosions.

1.7.10 is no longer supported by forge, you are on your own.

Posted

I had a reason to replace obsidian with a custom version in order for it to work properly in a dimension mod I have.  My custom obsidian had the exact same properties as original obsidian but it enabled me to have it respond differently for portal creation. 

 

I watched events to see when a block was placed or interacted with in any way.  Then if the block was vanilla obsidian, i would change it to my custom version as well as do a small iterative search that replicated itself for each obsidian in the area found.

 

This worked very well, but the world isn't very populated with obsidian.  In your case if the block you are changing is very common, this might get ugly the first time it propagates.

Long time Bukkit & Forge Programmer

Happy to try and help

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.