Ejemplo n.º 1
0
    public void OnPlace(Vector3i normal, int x, int y, int z)
    {
        switch (ID)
        {
        case BlockID.Water:
            FluidLevel = FluidSimulator.MaxFluidLevel;
            FluidSimulator.AddFluidAndFlow(x, y, z, this);
            break;

        case BlockID.Pumpkin:
        case BlockID.StoneSlope:
        case BlockID.GrassSlope:
            BlockDirection = Direction.GetOpposite(Player.GetRotation());
            break;

        default:
            return;
        }
    }