Block World Inspector


You can download Block System from the Unity Asset store Here

Block System FAQs

The Block System full description can be found Here

-- Blocks --

How at add a new block type

Upate the enum BlockTypes with the new name
Create a new block in the Blocks folder, inherit from BlockDetailsBase, and just fill out the detils for the block.

-- Player --

Where to set the player mode (Normal, Creative, Adventure)

In the playerDetails class

PlayerActions.PlayerMode = PlayerModes.Normal;
More modes can be added to the PlayerModes enum.
Can be modifiyed at any time and will take effect imminently.

Where to set the player hit range for effecting blocks

In the playerDetails class

HitRange = 5;
Can be modifiyed at any time and will take effect imminently.

How to get the player Details

You can get the player details from anywhere in code, but you will need your player index.

var playerDetails = PlayerHub.Instance.GetPlayer(PlayerIndex);
PlayerIndex is set in the BlockMiner class

-- Help --

Should you still need help you can email me at Wolf@electricwolf.co.uk