Search Unity

unity script for minecraft worlds

Discussion in 'Assets and Asset Store' started by bieberloveis2013, Jan 1, 2023.

  1. bieberloveis2013

    bieberloveis2013

    Joined:
    Jan 1, 2023
    Posts:
    2
    This code will create a grid of grass blocks with the specified width and height. The blocks will be spaced according to the blockSize variable, and they will be created using the grassBlockPrefab prefab.

    To use this code in your Unity project, you will need to do the following:

    1. Create a new script and paste the code into it.
    2. Attach the script to an empty GameObject in your scene.
    3. Drag a prefab for a grass block from your project hierarchy into the "grassBlockPrefab" field in the inspector.
    4. Set the values for worldWidth, worldHeight, and blockSize to the desired values for your world.
    When you play the game, the grass blocks should be generated in a grid. You can modify the code to add different types of blocks, or to generate the blocks using different algorithms (e.g. Perlin noise).

    you can get it here.
    https://www.piecex.com/source-code/Minecraft-World-Generation-Tool-For-Unity-3D-5689
     
  2. DragonCoder

    DragonCoder

    Joined:
    Jul 3, 2015
    Posts:
    1,698
    Uhm, it's probably cheaper to have someone on Fiverr program you a whole mini minecraft than to buy this asset...