Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Hi, so im trying to generate a world gen structure whenever i use an item. for example, if i right click with my item i want it to generate a mine shaft right there.

Does anybody have any tips for where to start?

Will be fairly easy.

 

In the method, just call something like this

 

@Override
    public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
    {
        WorldGenFileYouWant gen = new WorldGenFileYouWant();
        gen.genereateStructureMethod();
        return par1ItemStack;
    }

 

Are you also trying to make your own structure?

 

If you need help with that i can help

I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes.

 

I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there xD

Sure go ahead. xD

I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes.

 

I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there xD

  • Author

Ok, so Im attempting to generate a village and im running into some problems, i cant seem to figure out what the Array Of Bytes is for and also i dont really see how to go about generating the village, heres my code:

	@Override
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World,
		EntityPlayer par3EntityPlayer) {
	IChunkProvider chunk = par2World.getChunkProvider();
	MapGenVillage gen = new MapGenVillage();
	byte[] par5ArrayOfByte;
	gen.generate(chunk, par2World, 10, 10, par5ArrayOfByte);
	return par1ItemStack;
}

Any idea??

Make your own generation file for a village? That way you can make it a lot easier...

I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes.

 

I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there xD

Make your own village WorldGen file and call that instead.

I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes.

 

I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there xD

  • Author

Ive looked into the classes, I dont understand how to make a class that will generate a village :/ Can you point me in the right direction?

Go on youtube and search how to make structures. Especially the tutorial by theinstitutions. He shows you how to do structure generation and such. Then all you have to do is find the places where specific parts of the village you want and past it into the generate() method in the world gen file you create :D

I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes.

 

I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there xD

Your welcome for what help i HAVE given you, thank theinstitutions for the rest xD

I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes.

 

I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there xD

Yeah that one will do. But you only need to worry about the WorldGen file. The rest is not really that relavent to what you are doing. But its good to know anyway :D

I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes.

 

I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there xD

  • Author

ok, so villages, they are using "components" and what not, so how do i go about getting those to generate? Because in his tutorial he uses world.setBlockWithNotify

Hmm..

 

While I look at the Vanilla code, I would suggest using world.setBlock() and make your own replica of a village!

 

Im looking through the vanilla code now and it is a little confusing...

I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes.

 

I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there xD

  • Author

Ok, well, if it starts making any sense to you just let me know, please :DD And thank you for all of your help so far

Or use world edit to make a copy of the village as a schematic and then look at wimpy's 1.4.6 tutitrals for the converter to change that to .set blocks and there you go.

  • Author

I can't seem to find the video you are talking about, think you could post a link?

Wuppy29*

 

But yeah, there is that too :P

I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes.

 

I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there xD

its in his 1.3.2 tutorials. Try them xD

I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes.

 

I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there xD

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.