Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by scruffee · Apr 03, 2011 at 05:15 AM · positiongridcubecloneminecraft

Minecraft style grid and block placement?

Ok, so I want to make a minecraft clone. It seems so simple but its actually insanely hard.

All I want is to know how to make a grid, and then place cubes on it.

Note: Cubes are default size.

I am using the FirstPersonController and I need to know where to put the scripts as well.

Hope someone can help me with this.

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Jesse Anders · Apr 03, 2011 at 06:21 AM 0
Share

Also posted to forums here: http://forum.unity3d.com/threads/84258-How-to-place-blocks-like-$$anonymous$$ecraft-on-a-grid.

avatar image Owen-Reynolds · Apr 03, 2011 at 05:00 PM 1
Share

Start with getting the Fire button to just spit out a cube where you are. Then try to get it to pop out 3 units ahead of you. After that, draw several pictures of exactly where you want the cube to be and how it should be lined up, depending where you are when you drop it. "If my x/z is this, cube should be at that x/z."

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by Bunny83 · Jan 26, 2014 at 12:08 PM

Can't believe there's such an old thread about that topic. Anyways I'll post it here as well:

The minecraft starter package

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image AlucardJay · Jan 26, 2014 at 01:29 PM 1
Share

For future readers, there is also Unity Voxel Tutorial

avatar image WizzDE · May 02, 2014 at 06:22 PM 0
Share

If you want to have a good point to start off developing your voxel game you might want to check out my voxel engine at the unity assetstore: https://www.assetstore.unity3d.com/#/content/17470

avatar image
0

Answer by JiffyJuff · Apr 20, 2013 at 07:19 AM

Make a "sensor" first. It's basically an empty gameobject with 6 planes added in to make it look like a cube. Then make scripts for the planes to create blocks. For example, the y negative plane would Instantiate a new block 0.5 y lower when clicked. Then put scripts in the original block to teleport the sensor to it's position when mouseovered. Now when you put your mouse over a block, a sensor appears and if you click on one of the sides a block will appear on the same side. The sensing script should be copied too.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Place block script 1 Answer

Snap blocks that aren't cubes. 1 Answer

transform.position error 1 Answer

Moving the cube in a grid cell by cell 0 Answers

Place block script ? help please :) 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges