Jump to content

[1.8] Brickfix WorldGen - Adding new Structures to the game :)


Brickfix

Recommended Posts

Hi Guys,

I have played a little with the minecraft structure generation and now present you the first parts of an early alpha Mod:

 

BrickfixWorldGen

 

This mod is about adding some structures to the worldgen, making exploring more interesting and sometimes even a challange!

I always felt that exploring the minecraft world was a lot of fun, and when finding a structure it was generally very rewarding. I always build my bases close to some structure, when not inside. But I felt that there just weren't enough structures. So this is my attempt of adding structures to minecraft, that fit into the  a general theme and do not spawn to close to each other.

 

Currently, there are three types of structures:

- Abandomned buildings: Not to long ago, somebody still lived there.

- Dungeons: A building crawling with monsters, but rewarding concerning loot.

- Ruins: There is not much left, but sometimes there is something interesting to be found.

 

Screenshot

 

 

 

For now, only eight structures are added, but it will be more over time.

You can download the mod here:

 

 

 

Changelog

 

 

Alpha7

+ Added a bigger Tower

+ Added some kind of Ruin

+ Added 'molten Obsidian' Block

+ Added 'lightning Block' Block

 

- Removed unnessecary events

 

*Reorganised the generation yet again!

*Generation finally stable

 

Alpha5:

+ Added Beach Rubble

+ Added Underwater Ruin

 

*Changed the way structures are generated, preventing a rare crash

 

Alpha3:

+ Added lonely Farm

+ Added a complex Dungeon

+ Made Corrupted Temples more rare

 

Alpha2:

+ Added Corrupted Temple

+ Added randomized Chest Content

+ Added randomized Furnace Content

 

Alpha1:

+ Added abandomned Tower

 

 

 

If you have any feedback, I am happy to heare about it :)

You can leave suggestions for future structures, as well as other ideas, in a comment.

 

I on my side have a question: Is the structure spawning too frequent or too rarely?

 

And of course please report any kind of Bugs :P

 

~Brickfix

 

PS: This mod is in an early alpha stage, of course more content will come soon!

Link to comment
Share on other sites

Hi Guys,

I have played a little with the minecraft structure generation and now present you the first parts of an early alpha Mod:

 

BrickfixWorldGen

 

Screenshot

 

 

 

For now, only one structure is added, but it will be more over time.

You can download the mod here:

 

 

 

If you have any feedback, I am happy to here about it :)

You can leave suggestions for future structures, as well as other ideas, in a comment.

 

I on my side have a question: Is the structure spawning to frequent or to rarely?

 

And of course please report any kind of Bugs :P

 

~Brickfix

 

PS: This is in an early alpha stage, of course more content will come soon!

 

Open source? or not?

 

Structures are cool, they make minecraft less boring :P

Do they have any loot inside? Or is that a future plan?

Maybe you could make some traps too ;)

Link to comment
Share on other sites

Thanks for showing interest - of course I will also add traps and stuff.

 

For the moment this mod is not open source, but it will be after I found some time messing with github or some other way to make the code public.

 

In this version (Alpha 1.0), there is no chest content, but I already have a newer version almost finished where there is random chest and even furnace content!

 

I also have messed around with the TileEntity of the BeaconBlock - expect some nasty surprises there :)

 

Did you download the mod? Could you give me any feedback on the generation?

 

~Brickfix

Link to comment
Share on other sites

Thanks for showing interest - of course I will also add traps and stuff.

 

For the moment this mod is not open source, but it will be after I found some time messing with github or some other way to make the code public.

 

In this version (Alpha 1.0), there is no chest content, but I already have a newer version almost finished where there is random chest and even furnace content!

 

I also have messed around with the TileEntity of the BeaconBlock - expect some nasty surprises there :)

 

Did you download the mod? Could you give me any feedback on the generation?

 

~Brickfix

 

Sounds awesome :)

No I haven't tried the mod yet unfortunately but I will as soon as I have time.

 

Link to comment
Share on other sites

  • 4 weeks later...

And another Update!

If some of you wonder why there is no version 4, this is because a crash I fixed emideatly afterwords, and so I skipped releasing it.

 

The new update features two rather small, but fun structures:

At first, there is an underwater ruin, perhaps once a tower, made out of prismarine blocks, with a small loot chest. It is only found in the ocean biome and quite rarely.

Secondly, I have added a structure for beaches: some wood, a chest. It is not mutch, but I think it really adds some athmosphere when traveling along an ocean.

 

I hope you have fun with these additions

 

~Brickfix

Link to comment
Share on other sites

Hi -- we appear to be approaching the same rough target from different direction.  I'm writing a separate mod ( here ) that focusses on on-demand in-world generation of customisable user-defined structures, with a possibility of in the future making them auto-generate via the World Generator.  Your mod is apparently handling the World Generation piece first, then looking at adding new structures to its repertoire.

 

I'm really interested in seeing how you're achieving your outcome -- are you planning on releasing the current beta sourcecode as open source at all, either via a simple zip archive or via something like Github?  If you're interested, you can grab a copy of my code in the latest package under my module's thread.  I'd also be interested in collaboration on a common structure definition file format.

 

-Steve

Link to comment
Share on other sites

  • 1 month later...

Hey, I am quite interested in using the source code as a base for personal-use mods. It's difficult to find any references or tutorials for world generation for 1.8, and I'd really like to play around in that particular sandbox. If you could post a download location for any of the versions, I'd be extremely grateful.

Link to comment
Share on other sites

  • 3 months later...

That's very doable...

 

Here's the chunk of "chest-writing" code I use:

 

public static void genChest(World world, BlockPos pos, ArrayList<ItemStack> items)

{

world.setBlockState(pos, Blocks.chest.getDefaultState(), 2);

        TileEntity tileentity = world.getTileEntity(pos);

       

        int incrementer = 0;

        if (tileentity instanceof TileEntityChest)

        {

        for(int i = 0; i < items.size(); i++)

        {

        ((TileEntityChest)tileentity).setInventorySlotContents(incrementer, items.get(i));

        incrementer++;

        }

        }

}

Link to comment
Share on other sites

jup, that's how you do it.

 

I can't really upload any source right now, as I am constantly trying and changing things, even though there has not been any update for a while.

Also, up to now there is nothing really complicated I have done, you can ask me how certain things in my mod work any time :)

Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...

Hello Brickfix, I am new, but i wanted to point out some balancing issues.

 

1- Make the dungeons a little more common. I took me 2 worlds to find a structure.

 

2- Remove the corrupted temple. On a test Survival world, I got a beacon in only a few minutes, and the spawners weren't working properly. In my opinion, its too OP.

 

Thanks, drybones967  :)

Link to comment
Share on other sites

  • 2 weeks later...

Hi

I haven't had the chance to code for quite a while, and no update will turn up anytime soon.

But actually I thought I had it balanced out quite well...

 

What where the coords of the beacon you found? If any value is smaller +/- 1000, I recommend to use the newest version ;D

Link to comment
Share on other sites

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I have done this now but have got the error:   'food(net.minecraft.world.food.FoodProperties)' in 'net.minecraft.world.item.Item.Properties' cannot be applied to                '(net.minecraftforge.registries.RegistryObject<net.minecraft.world.item.Item>)' public static final RegistryObject<Item> LEMON_JUICE = ITEMS.register( "lemon_juice", () -> new Item( new HoneyBottleItem.Properties().stacksTo(1).food( (new FoodProperties.Builder()) .nutrition(3) .saturationMod(0.25F) .effect(() -> new MobEffectInstance(MobEffects.DAMAGE_RESISTANCE, 1500), 0.01f ) .build() ) )); The code above is from the ModFoods class, the one below from the ModItems class. public static final RegistryObject<Item> LEMON_JUICE = ITEMS.register("lemon_juice", () -> new Item(new Item.Properties().food(ModFoods.LEMON_JUICE)));   I shall keep going between them to try and figure out the cause. I am sorry if this is too much for you to help with, though I thank you greatly for your patience and all the effort you have put in to help me.
    • I have been following these exact tutorials for quite a while, I must agree that they are amazing and easy to follow. I have registered the item in the ModFoods class, I tried to do it in ModItems (Where all the items should be registered) but got errors, I think I may need to revert this and figure it out from there. Once again, thank you for your help! 👍 Just looking back, I have noticed in your code you added ITEMS.register, which I am guessing means that they are being registered in ModFoods, I shall go through the process of trial and error to figure this out.
    • ♈+2349027025197ஜ Are you a pastor, business man or woman, politician, civil engineer, civil servant, security officer, entrepreneur, Job seeker, poor or rich Seeking how to join a brotherhood for protection and wealth here’s is your opportunity, but you should know there’s no ritual without repercussions but with the right guidance and support from this great temple your destiny is certain to be changed for the better and equally protected depending if you’re destined for greatness Call now for enquiry +2349027025197☎+2349027025197₩™ I want to join ILLUMINATI occult without human sacrificeGREATORLDRADO BROTHERHOOD OCCULT , Is The Club of the Riches and Famous; is the world oldest and largest fraternity made up of 3 Millions Members. We are one Family under one father who is the Supreme Being. In Greatorldrado BROTHERHOOD we believe that we were born in paradise and no member should struggle in this world. Hence all our new members are given Money Rewards once they join in order to upgrade their lifestyle.; interested viewers should contact us; on. +2349027025197 ۝ஐℰ+2349027025197 ₩Greatorldrado BROTHERHOOD OCCULT IS A SACRED FRATERNITY WITH A GRAND LODGE TEMPLE SITUATED IN G.R.A PHASE 1 PORT HARCOURT NIGERIA, OUR NUMBER ONE OBLIGATION IS TO MAKE EVERY INITIATE MEMBER HERE RICH AND FAMOUS IN OTHER RISE THE POWERS OF GUARDIANS OF AGE+. +2349027025197   SEARCHING ON HOW TO JOIN THE Greatorldrado BROTHERHOOD MONEY RITUAL OCCULT IS NOT THE PROBLEM BUT MAKE SURE YOU'VE THOUGHT ABOUT IT VERY WELL BEFORE REACHING US HERE BECAUSE NOT EVERYONE HAS THE HEART TO DO WHAT IT TAKES TO BECOME ONE OF US HERE, BUT IF YOU THINK YOU'RE SERIOUS MINDED AND READY TO RUN THE SPIRITUAL RACE OF LIFE IN OTHER TO ACQUIRE ALL YOU NEED HERE ON EARTH CONTACT SPIRITUAL GRANDMASTER NOW FOR INQUIRY +2349027025197   +2349027025197 Are you a pastor, business man or woman, politician, civil engineer, civil servant, security officer, entrepreneur, Job seeker, poor or rich Seeking how to join
    • Hi, I'm trying to use datagen to create json files in my own mod. This is my ModRecipeProvider class. public class ModRecipeProvider extends RecipeProvider implements IConditionBuilder { public ModRecipeProvider(PackOutput pOutput) { super(pOutput); } @Override protected void buildRecipes(Consumer<FinishedRecipe> pWriter) { ShapedRecipeBuilder.shaped(RecipeCategory.MISC, ModBlocks.COMPRESSED_DIAMOND_BLOCK.get()) .pattern("SSS") .pattern("SSS") .pattern("SSS") .define('S', ModItems.COMPRESSED_DIAMOND.get()) .unlockedBy(getHasName(ModItems.COMPRESSED_DIAMOND.get()), has(ModItems.COMPRESSED_DIAMOND.get())) .save(pWriter); ShapelessRecipeBuilder.shapeless(RecipeCategory.MISC, ModItems.COMPRESSED_DIAMOND.get(),9) .requires(ModBlocks.COMPRESSED_DIAMOND_BLOCK.get()) .unlockedBy(getHasName(ModBlocks.COMPRESSED_DIAMOND_BLOCK.get()), has(ModBlocks.COMPRESSED_DIAMOND_BLOCK.get())) .save(pWriter); ShapedRecipeBuilder.shaped(RecipeCategory.MISC, ModItems.COMPRESSED_DIAMOND.get()) .pattern("SSS") .pattern("SSS") .pattern("SSS") .define('S', Blocks.DIAMOND_BLOCK) .unlockedBy(getHasName(ModItems.COMPRESSED_DIAMOND.get()), has(ModItems.COMPRESSED_DIAMOND.get())) .save(pWriter); } } When I try to run the runData client, it shows an error:  Caused by: java.lang.IllegalStateException: Duplicate recipe compressed:compressed_diamond I know that it's caused by the fact that there are two recipes for the ModItems.COMPRESSED_DIAMOND. But I need both of these recipes, because I need a way to craft ModItems.COMPRESSED_DIAMOND_BLOCK and restore 9 diamond blocks from ModItems.COMPRESSED_DIAMOND. Is there a way to solve this?
  • Topics

×
×
  • Create New...

Important Information

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