Jump to content

[1.8][SOLVED] Proper way to remove blocks from the world and replace with others


Recommended Posts

Posted

Simple noob here (1st post)....

 

I've been searching for the proper (if there is one) way of removing blocks (say 3x3x3 blocks at the cursor) and replacing them with other blocks (some may be the same, some might not) using all vanilla (in game) blocks...

 

I've got the basic stuff down (mod structure etc) now I'm getting to the nitty-gritty of actually doing STUFF to the world....

 

Any help would be appreciated (code snippets would be best)......

I don't keep an open mind lest someone try to fill it with garbage - Mark Twain

Posted

Thanks ! Now to experiment with raytrace Vec3 stuff to get where the heck I'm looking at when replacing stuff...

 

Fun times indeed..... :D

I don't keep an open mind lest someone try to fill it with garbage - Mark Twain

Posted

Yet another stupid question on the same topic...

 

Do I set the area where I'm placing the blocks to "AIR" so that the ones I'm placing overwrite any of the non-air ones that are there ?

 

If not what is the proper process to replace blocks that already exist (e.g. non-air blocks) ?

I don't keep an open mind lest someone try to fill it with garbage - Mark Twain

Posted

Sweet. Seemed I was getting some wierd stuff when I replaced some generated villages then dug through them to see if it was replacing stuff or just air, but I can't seem to repeat it now for some reason......

 

Seems to be working right now though....

 

Onward ! :D

I don't keep an open mind lest someone try to fill it with garbage - Mark Twain

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.